Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | minor-units-1621506-1.patch | 823 bytes | joshmiller |
Comments
Comment #1
joshmillerComment #2
joshmillerbump.
Comment #3
vasikethe patch does its job.
What about in the case Data comparison condition for the Commerce price amount?
Comment #4
rszrama CreditAttribution: rszrama commentedSure 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.