R-CLIMIT.MAC Hook Usage Example

Locked
COBS Tech Support
Site Admin
Posts: 118
Joined: Sat May 15, 2021 9:57 am

R-CLIMIT.MAC Hook Usage Example

Post 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
Endif

Return True

Locked