I'm seeing almost the same problem described in this issue: http://drupal.org/node/1678076 . The difference is I don't have a VAT component-- rather, I'm using the Commerce Mulitcurrency module. The discount formatting works as expected when prices are displayed in the default currency, but when viewed in another currency (that is, after they've been converted), some of them show a 0% discount. Similar to the other issue, it's the prices that are rounded down when they get converted that have the problem.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

remydenton’s picture

Oops, I attached the same screenshot twice. The ones I attached show it working fine (in dollars); this one shows the problem (in pounds).

remydenton’s picture

Attached is a patch that at least seems to solve my issue, and could presumably solve others like it.

recrit’s picture

The $item['amount'] is the calculated total already. I believe the cause is more of a rounding issue as we seen in #1678076: Showing 0% discount when there is no discount..
The attached patch add better handling of round with respect to the currency. Please test and report back.

recrit’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.