project QadFinancials > class BBankEntry > method AdditionalUpdatesInvInstanceClose
Description
AdditionalUpdatesInvInstanceClose: method that takes care of the Closing of instances
Parameters
ilBCInvoiceOpened | input | logical | Is BCInvoice already opened ? |
ilBDInvoiceOpened | input | logical | Is BDInvoice already opened ? |
ilBCDocumentOpened | input | logical | Is BCDocument already opened ? |
ilBDDocumentOpened | input | logical | Is BDDocument Already opened ? |
ilBWithHoldingTaxOpened | input | logical | Is BWithHoldingTax component opened? |
oiReturnStatus | output | integer | Return status of the method. |
Internal usage
QadFinancials
program code (program4/bbankentry.p)
/* ======================================================= */
/* Set default return-status */
/* ======================================================= */
assign oiReturnStatus = -98.
/* =========================== */
/* Close the opened instances */
/* =========================== */
/* ========================================================================================================= */
/* Normally we would here close BCInvoice, BDInvoice, BCDocument, BDDocument and BWithholdingTax in case */
/* they were opened before (see input params) - but we will not do it for performance reasons as this way */
/* the Commit of the transaction does not have to re-open the instance to commit it. */
/* And in all other scenario's the instance of the class ill be closed by the de-activiate procedure of the */
/* appserver that is executed after each call to the appserver */
/* ========================================================================================================= */
/* ======================================================= */
/* Set return-status = OK */
/* ======================================================= */
if oiReturnStatus = -98
then assign oiReturnStatus = 0.