Suppose my qty =4.25 and unit price =5.60 .Now with current behavior it will take subtotal =24 and base=26 .
As per current code it will take values like below.
First it will round the value of price unit 6(rounding of 5.60) then it will multiply by qty ,So the value is (4.25*6=26(After float rounding).
After the fix the correct values is 5.6*4.25 = 23.8 and After the rounding takes the base amount 24 which is same as a Subtotal
Hello,
I have checked this issue .It's good improvement.
Let me explain
Suppose my qty =4.25 and unit price =5.60 .Now with current behavior it will take subtotal =24 and base=26 .
As per current code it will take values like below.
First it will round the value of price unit 6(rounding of 5.60) then it will multiply by qty ,So the value is (4.25*6=26(After float rounding).
After the fix the correct values is 5.6*4.25 = 23.8 and After the rounding takes the base amount 24 which is same as a Subtotal
Thanks!!