Code: Select all
* Don't allow saving of a negative value invoice transaction
* unless the user has an access level of at least 8
If ReadTranValue("TOTAL") < 0 .And. .Not. Security(8, FALSE)
Echo("Sorry you don't have clearance to create a credit note or negative invoice.")
Return FALSE
Endif
Return TRUE
Users browsing this forum: No registered users and 2 guests
Copyright © 1985 - 2019 Capital Office Business Software. All Rights Reserved.