I have a boolean field added to the Sales Line table called "Allow Volume Disc.". I want some code that applies a volume discount to execute EVERY time the boolean field is true/checked on the Sales Order, and skip every record that this field is FALSE/unchecked.
Currently everything fires great, except when there is a record in the pack that is unchecked..it applies the volume discount to the unchecked record anyway.
Here's the code I have now:
IF SalesLine2."Allow Volume Disc." THEN REPEAT
UNTIL SalesLine2.NEXT = 0;
What needs to be changed to check for unchecked records?
Thanks for any assistance in this matter. gad1