Closed (fixed)
Project:
UC Desjardins
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2011 at 19:48 UTC
Updated:
26 Aug 2011 at 18:22 UTC
Jump to comment: Most recent file
Hi,
Due to taxes and other fractional amounts that makes up an order, the order total may end up being different from what you get by adding up the individual line items.
My own experience with this: the amount indicated on Desjardins's site was off by 1 cent from the order total shown to the client on our site.
I will submit my patch to get around this, but I suspect that this may be an Ubercart/uc_order issue... The order total should not be fractional.
Otherwise I can imagine cases where the sum of rounded line items may differ by more than 1 cent from the order total.
-Patrick
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | uc_desjardins-rouding-order-amount-1245448-1.patch | 774 bytes | Patrick Hubert |
Comments
Comment #1
Patrick Hubert commentedThis is my trivial patch for the issue.
As stated before, I may be barking up the wrong tree... As it may be more an uc_order issue.
-Patrick
Comment #2
samuelsov commentedPatch applied. Thanks !
Comment #3.0
(not verified) commentedRemoved my extra signature