The Direct Invoicing program actually creates a temporary sales order record, and assigns a ticket number for the Direct Invoice being created. This allows the IRA (Invoicing Routine, Automated) to be called to process the order and convert it to an invoice when the Save key is pressed.
IRA is responsible for updating the Inventory, Customer and other information as required based on the Invoice being processed.
The Direct Invoicing program calls the Invoicing routine in Invoice Mode, passing the routine the Invoice Document Type (DI), the Temp order and the Ticket number being used. The Direct Invoicing program Begins a Transaction before calling the routine so that the invoice can be backed out if any errors are encountered during processing.
More: