Generate invoice for a single sales order
Hi,
I want to generate invoice for a sales order. For this i was running the Workflow background process with Item type as 'OM Order Line'. However, this will generate invoices for all sales orders ready to be invoiced.
How can i generate invoice for a particular sales order?
Also i want to generate invoice by code using an API. I got the API for workflow background process but again, how to generate invoice for only one sales order is my question. The API that i got is:
wf_engine.background (itemtype=>'OEOL' ,
minthreshold=>NULL ,
maxthreshold=>NULL ,
process_deferred=>TRUE ,