project QadFinancials > class BBankEntry > method AdditionalUpdatesInvInstanceClose

Description

AdditionalUpdatesInvInstanceClose: method that takes care of the Closing of instances


Parameters


ilBCInvoiceOpenedinputlogicalIs BCInvoice already opened ?
ilBDInvoiceOpenedinputlogicalIs BDInvoice already opened ?
ilBCDocumentOpenedinputlogicalIs BCDocument already opened ?
ilBDDocumentOpenedinputlogicalIs BDDocument Already opened ?
ilBWithHoldingTaxOpenedinputlogicalIs BWithHoldingTax component opened?
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


QadFinancials
method BBankEntry.AdditionalUpdatesInv


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.