Page 1 of 1

Making ordered by mandatory

Posted: Mon Jan 22, 2018 3:54 pm
by Garry
I have been asked to find out how to set up Capital so that the Ordered by field, in the Purchase Order screen, is mandatory.

Please advise.

Posted: Mon Jan 22, 2018 4:04 pm
by COBS Tech Support
Create a text file containing this content:

Code: Select all

If IsEmpty(ReadTranValue("ORDEREDBY"))
   Echo("Sorry, please fill in the 'Ordered By' field.")
   Return FALSE
Endif

Return TRUE


Rename it to R-PURTOT.MAC and save it in your ..\CAPITAL folder to affect all companies or in your ..\CAPITAL\<data> folder to only affect a particular company.