Download & Extend

Minor Units for Order Balance Comparison

Project:Drupal Commerce
Version:7.x-1.x-dev
Component:Payment
Category:task
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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.

Comments

#1

Status:active» needs review
AttachmentSizeStatusTest resultOperations
minor-units-1621506-1.patch823 bytesIdlePASSED: [[SimpleTest]]: [MySQL] 3,567 pass(es).View details

#2

bump.

#3

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?

#4

Assigned to:joshmiller» Anonymous
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.

#5

Status:fixed» closed (fixed)

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

nobody click here