project QadFinancials > class BAPMatching > method AdditionalUpdatesAllExt

Description

AdditionalUpdatesAllExt


Parameters


oiReturnStatusoutputintegerReturn status of the method.


Internal usage


QadFinancials
method BAPMatching.AdditionalUpdatesAll


program code (program6/bapmatching.p)

/* ======================== */
    /* Set default ReturnStatus */
    /* ======================== */
    assign oiReturnStatus = -98.
    
    /* ============================================================================================= */
    /* Call method in BCInvoice to do the update and run ValidateBC&AdditionalUpdates                */
    /* tExtAllocateCInvoiceAPM-recs were already created in method AdditionalUpdatesAllCreatePLCirec */
    /* Make sure the BJournalEntry-instance is closed because we pass the instance-ID to class       */
    /* BCInvoice because it adds postings to the same posting-class-instance                         */
    /* ============================================================================================= */
    <M-5 run AdditionalUpdatesAllExtCInvoice
       (output viFcReturnSuper (oiReturnStatus)) in BAPMatching>
    if viFcReturnSuper <> 0
    then assign oiReturnStatus = viFcReturnSuper.
    if viFcReturnSuper < 0 
    then Return.
    
    /* ========================================================================================== */
    /* Call method in BQCrossCyPosting to do creation of cross company postings                   */
    /* ========================================================================================== */
    <M-7 run AdditionalUpdatesAllExtQCrossCyPosting
       (output viFcReturnSuper (oiReturnStatus)) in BAPMatching>
    if viFcReturnSuper <> 0
    then assign oiReturnStatus = viFcReturnSuper.
    if viFcReturnSuper < 0 
    then Return.
    
    /* ======================== */
    /* Set ReturnStatus = OK    */
    /* ======================== */
    if oiReturnStatus = -98
    then assign oiReturnStatus = 0.