Hello!
I made a new Page Function on Page41 Sales Quote, and I added this code to its OnAction() trigger:
SalesLine.SETFILTER(“Document No.”, “No.”);
IF SalesLine.FIND(’-’)
THEN REPEAT
SalesLine.VALIDATE(“Line Discount Amount”,(“Total Discount”/“Total Line Amount”)*SalesLine.“Line Amount Excl. Discount”);
SalesLine.MODIFY;
UNTIL SalesLine.NEXT = 0;
There are some new field in this code, it works right, except one thing. I need some filter in the code, because I want this validation only on those lines, where Sales Line type is not blank.
Can anyone help me how to alter my code?
Thanks in advance.