Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6708 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

This doesn't fall into the "complex calculations" category, but I didn't see a forum for "easy calculations." Here goes...

We have an item which is sold in sets of 25 only. I want to validate the quantity field to allow entry only in those multiples. It's probably something like If(Mod (order_quantity, 25)≠X,1,0). With X being anything but a whole number. It's expressing that correctly that has me stuck.

Thanks!

Posted (edited)

Ummm well this works (enter this whole string in the validation calc box)???

quantity = Ceiling ( quantity / 25 ) * 25

Edited by Guest
Posted (edited)

Quite possibly, thinking outside the box, is this something that can be resolved with a value list? How many sets of (25) might someone order?

The calculation may be in the units ordered, not in the order process.

More info needed, after all, what are you seliing? Sometimes you need to think backwards instead of forwards, if that makes sense.

Edited by Guest
Posted

This is for a runtime (Dev 6) so I'm not familiar with the Ceiling funtion. I'm guessing that's new in 7 or 8?

As for the value list, I'm afraid that could become quite long.

not Mod (Quantity, 25) is simple, elegant and works perfectly!

Thanks so much for everyone's help!

This topic is 6708 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.