The sales order could be created via the GUI, the REST API, file watcher
The value is dependent upon a characteristic of the debtor, in this case the value for Category5.
Obviously (!) I need to write the plugin in the business logic section.
However which event should I use?
salesOrder.Created
salesOrder.CreateEnd
salesOrder.Creating
salesOrder.Created works well for orders raised via the Jiwa GUI. The user clicks save when ready.
Is that event still applicable for imported orders via REST API etc?
For now, I am doing the stuff on SaveStart and testing for
- Code: Select all
if (salesOrder.InvoiceNo =="")