Was creating a screenshot for the order balance comparison rule and got hit by the minor units vs. major units problem. I entered "12" thinking it would be "12.00" if I wanted to be extra precise. Where in fact it expects no decimal and I should have entered "1200" because "12" means $0.12.

Just added a quick explanation here.

#1 minor-units-1621506-1.patch823 bytesjoshmiller
PASSED: [[SimpleTest]]: [MySQL] 3,567 pass(es). View
Members fund testing for the Drupal project. Drupal Association Learn more


joshmiller’s picture

Status: Active » Needs review
823 bytes
PASSED: [[SimpleTest]]: [MySQL] 3,567 pass(es). View
joshmiller’s picture


vasike’s picture

Status: Needs review » Reviewed & tested by the community

the patch does its job.

What about in the case Data comparison condition for the Commerce price amount?

rszrama’s picture

Assigned: joshmiller » Unassigned
Status: Reviewed & tested by the community » Fixed

Sure thing - I put this in with a little tweak to the format to keep it on one line.

As for the data comparison, I'm not sure what we can do about that. It's a generic form supplied by the Rules module, and I don't know if we can tap into it or not. Might be we can swing it through a form alter - if you're up for it, feel free to research it and post a patch in a follow-up issue. I'd be interested in the same thing for the set a data value action on price amount columns.

Status: Fixed » Closed (fixed)

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