Description
This method returns instance data (BCInvoice, BCInvoiceMovement)
Parameters
Internal usage
QadFinancials
program code (program6/bcinvoice.p)
/* ====================================================================================== *
* Method : GetInstanceData *
* Description : This method returns instance data of the Supplier invoice *
* -------------------------------------------------------------------------------------- *
* Parameters : tAPICInvoiceIns Invoice details *
* tAPICInoviceMovementIns Invoice movement details *
* ====================================================================================== */
assign oiReturnStatus = -98.
MAIN_BLOCK:
do on error undo, return:
/* Copy instance data into REF tables */
empty temp-table tApiCInvoiceIns.
empty temp-table tApiCInvoiceMovementIns.
temp-table tApiCInvoiceIns:handle:copy-temp-table(temp-table tCInvoice:handle).
temp-table tApiCInvoiceMovementIns:handle:copy-temp-table(temp-table tCInvoiceMovement:handle).
end. /* MAIN_BLOCK */
if oiReturnStatus = -98 then assign oiReturnStatus = 0.