sorry but i don't understand why the line total incl tax can't be caculated by dividing the invoice total / number of lines (as written in the patch). Can you give an example?
Line 1 subtotal = 100, tax =20
Line 2 subtotal = 200, tax =40
invoice total incl tax= 360
calculated total per line = 360/2 = 180 for each line , which obviously is wrong
total line 1 = 100+20=120
total line 2 = 200+40=240
sorry but i don't understand why the line total incl tax can't be caculated by dividing the invoice total / number of lines (as written in the patch). Can you give an example?
Line 1 subtotal = 100, tax =20
Line 2 subtotal = 200, tax =40
invoice total incl tax= 360
calculated total per line = 360/2 = 180 for each line , which obviously is wrong
total line 1 = 100+20=120
total line 2 = 200+40=240