No replies
stewey's picture
Offline
Bug Finder
Joined: 05/14/2008
Juice: 54
Was this information Helpful?

Line 482 of uc_taxes.module (the uc_taxes_calculate function), is commented out:

//$order->line_items[] = array('type' => 'tax', 'amount' => $_SESSION['taxes'][$tax->id]['amount']);

This appears to cause taxes (and ultimately the total) to be miscalculated on the order review page. Specifically, with this line commented out the taxes do not take uc_coupon discounts into account. Note that the taxes displayed on the checkout page do correctly account for the discount. Likewise, the admin shows the correct totals.

If I uncomment the line, the review page also shows the correct totals. I am reluctant to modify uc code for a number of reasons. Mainly, I don't know what the consequences of this change are and I don't want to be locked into my own custom 'build'.

Can anyone shed light on this problem?

Thanks!
Stewart