Closed (fixed)
Project:
Ubercart Discount Coupons
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
13 Jan 2010 at 23:01 UTC
Updated:
26 Mar 2010 at 14:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
jaydubb181 commentedHere's a patch that will resolve this issue.
Comment #2
jaydubb181 commentedComment #3
longwaveI can see the problem - 8.95 - 0.895 = 8.055, the last two when rounded for display become 0.90 and 8.06 - but uc_order_line_items stores prices to 5dp on purpose so more precision is available.
I suspect there are similar issues in other modules, suggesting this should somehow be fixed elsewhere in Ubercart, but for now I have applied your patch with a change to round it to the store precision (set at /admin/store/settings/store/edit/format under "Currency format") rather than 2.