Changes

Line 15: Line 15:     
1) If we choose to make the sum of all rounded lines, we get:
 
1) If we choose to make the sum of all rounded lines, we get:
Total here are:
   
* Total without tax: 1.24 + 1.24 = '''2.48'''
 
* Total without tax: 1.24 + 1.24 = '''2.48'''
 
* Total tax 10%: 0.12 + 0.12 = '''0.24''' (we sum the rounded values of tax on each line)
 
* Total tax 10%: 0.12 + 0.12 = '''0.24''' (we sum the rounded values of tax on each line)
Line 23: Line 22:     
2) If we choose to round amount that is sum of all lines, we get:
 
2) If we choose to round amount that is sum of all lines, we get:
Total here are:
   
* Total without tax: 1.24 + 1.24 = '''2.48''' (same than in method 1)
 
* Total without tax: 1.24 + 1.24 = '''2.48''' (same than in method 1)
 
* Total tax 10%: (1.24 + 1.24) * 10% = 0.124 + 0.124 = 0.248 rounded to nearest to have a total on 2 decimals give '''0.25''' (we sum amount for each lines, calculate vat rate and after we round value on 2 decimals)
 
* Total tax 10%: (1.24 + 1.24) * 10% = 0.124 + 0.124 = 0.248 rounded to nearest to have a total on 2 decimals give '''0.25''' (we sum amount for each lines, calculate vat rate and after we round value on 2 decimals)