Rounding converted currency values
Posted by ka_ on September 3, 2011 at 7:21am
I have just created a rule that converts a value from one currency to another for Drupal Commerce
The rule is triggered by "Calculating the sell price of a product"
with the condition "Data compare" on [commerce-line-item:commerce-unit-price:currency-code] = "
and actions: "Convert the unit price to a different currency" and "Multiply the unit price by some amount".
So far so good, however I intend to ensure the value is always rounded upwards to the next value without decimals.
Read more