Force Entry of Required Date on Sales Orders
Posted: Mon Nov 20, 2023 2:57 pm
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