Force Entry of Required Date on Sales Orders

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

Force Entry of Required Date on Sales Orders

Post by COBS Tech Support »

The following script demonstrates how to require a user to enter a required date on a sales order. The script must be pasted into a text file with the name: R-ORDTOT.MAC

Code: Select all

If IsEmpty(ReadTranValue("REQUIRED"))
   Echo("Sorry, you must specify a required date.",, TRUE)
   Return FALSE
Endif

If ReadTranValue("REQUIRED") <= ReadTranValue("DATE")
   Echo("Sorry, the required date must be greater than the transaction's date.",, TRUE)
   Return FALSE
Endif

Return TRUE
Locked