Page 1 of 1

Adjustment Notes (Credits) and $0.00 items

Posted: Tue Mar 25, 2008 12:19 pm
by coldrick
Using Enterprise Version is there any way to

1. Disallow a user from entering adjustment notes (sales with a negative value).

2. Disallow a user from selecting a transaction type of "Adjustment Note" but entering a positive sale value

3. Suspend invoices that include items of $0.00 value


Rgds
Barry

Posted: Wed Mar 26, 2008 2:46 pm
by COBS Tech Support
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