Please, i wrote a code to assign a certain value to credit limit base on certain condition but it gave me defferent thing. It is assigning the same amount to all the Customer disregarding the condition. Please do check below .
Thanks
Gbenga
Customer.SETRANGE(Customer.“No.”, Customer.“No.”);
IF Customer.FINDFIRST THEN BEGIN
IF ((Customer.“Balance (LCY)” = 0) AND (Customer.“Credit Limit (LCY)” = 0)) THEN BEGIN
Customer.“Credit Limit (LCY)” := 100000;
Customer.MODIFY
END
ELSE
CurrReport.SKIP;
END;
Customer.CALCFIELDS(Customer.“Balance (LCY)”);
IF((Customer.“Balance (LCY)”=0) AND (Customer.“Credit Amount (LCY)”=0))THEN BEGIN
Customer.“Credit Amount (LCY)”:=100000;
Customer.MODIFY
END