Description
This method returns instance data (BDInvoice, BDInvoiceMovement)
Parameters
Internal usage
QadFinancials
program code (program6/bdinvoice.p)
/* ====================================================================================== *
* Method : GetInstanceData *
* Description : This method returns instance data of the Customer invoice *
* -------------------------------------------------------------------------------------- *
* Parameters : tAPIDInvoiceIns Invoice details *
* tAPIDInoviceMovementIns Invoice movement details *
* ====================================================================================== */
assign oiReturnStatus = -98.
MAIN_BLOCK:
do on error undo, return:
/* Copy instance data into REF tables */
empty temp-table tApiDInvoiceIns.
empty temp-table tApiDInvoiceMovementIns.
temp-table tApiDInvoiceIns:handle:copy-temp-table(temp-table tDInvoice:handle).
temp-table tApiDInvoiceMovementIns:handle:copy-temp-table(temp-table tDInvoiceMovement:handle).
end. /* MAIN_BLOCK */
if oiReturnStatus = -98 then assign oiReturnStatus = 0.