by COBS Tech Support » Wed Mar 26, 2008 2:46 pm
You can control whether a transaction can be saved or not if you use the R-ITOTAL.MAC script hook, in conjunction with CBS functions such as ReadItemValue() and ReadTranValue()
I.e.,
If ReadTranValue("TOTAL") < 0
Echo("Sorry negative transactions are not allowed.")
Return FALSE
Endif