Page 1 of 1

R-CLIMIT.MAC Hook Usage Example

Posted: Sun May 30, 2021 11:54 am
by COBS Tech Support
The following script demonstrates how to customise the credit checking system by adding a rule to fail credit approval if a customer owes more than $50 in a 90 day or greater time period. The script must be pasted into a text file with the name: R-CLIMIT.MAC

Code: Select all

* If over 50 dollars in 90 days or more, credit limit has been exceeded
If Custrec->Pay90 > 50
   Echo("Sorry, customer credit limit over 90+ days exceeds $50.")
   Return False

Return True