CoreBOSBB
The way group taxes are stored now - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Development (https://discussions.corebos.org/forumdisplay.php?fid=18)
+--- Forum: coreBOS Development (https://discussions.corebos.org/forumdisplay.php?fid=4)
+--- Thread: The way group taxes are stored now (/showthread.php?tid=928)



The way group taxes are stored now - Guido1982 - 03-06-2018

Am I right to assume (I browsed around the current code) that the group taxes in an inventory module are not actually stored in the module, but on the individual lines (in 'productInventoryRel')?

And when a inventory module's view is prepared, the group tax is calculated by taking all individual taxes and summing them up?


RE: The way group taxes are stored now - joebordes - 03-06-2018

Yes, that sounds correct. At least as far as I remember. In group tax mode all the inventory lines get the same global tax applied and only one set of values are used


RE: The way group taxes are stored now - Guido1982 - 03-07-2018

Yes, if I read the code correctly, the sum of all taxes is calculated and stored on the first line. But the group tax is never stored on the 'parent' record, always on the lines.