Page 1 of 1

Sales Order Process - export a CSV file

PostPosted: Wed Aug 10, 2016 11:01 am
by Atronics
I need to export a flat csv file when processing (individually or in a batch) when the sales order is for a specific debtor. Can you point me to what event controls this.

Re: Sales Order Process - export a CSV file

PostPosted: Wed Aug 10, 2016 12:57 pm
by Scott.Pearce
You should hook into the "Processed" event of the sales order object. This will fire for each invoice on a batch process or when an individual invoice is processed.

I've attached a plugin that demonstrates this - use this as your foundation.

Re: Sales Order Process - export a CSV file  Topic is solved

PostPosted: Wed Aug 10, 2016 1:57 pm
by Atronics
Thanks Scott.