project QadFinancials > class BYearClosing > method StopExternalInstances

Description

Stop instances that are started in AdditionalUpdates as part of current transaction


Parameters


oiReturnStatusoutputintegerReturn status of the method.


Internal usage


QadFinancials
method BYearClosing.AdditionalUpdates
method BYearClosing.ValidateComponent


program code (program/byearclosing.p)

/* ============ */
/* Stop BPeriod */
/* ============ */
if viBPeriodYearClosingID <> 0 and viBPeriodYearClosingID <> ?
then do:
    <I-1 {bFcStopInstance
            &CLASS           = "BPeriod"}>
    assign viBPeriodYearClosingID = 0.                      
end. /* if viBPeriodYearClosingID <> 0 ... */
    
/* ================== */                        
/* Stop BJournalEntry */
/* ================== */                  
if viBJournalEntryYearClosingID <> 0 and viBJournalEntryYearClosingID <> ?
then do:
    <I-2 {bFcStopInstance
            &CLASS           = "BJournalEntry"}>
    assign viBJournalEntryYearClosingID = 0.                      
end. /* if viBJournalEntryYearClosingID <> 0 ... */                                     

<ANCESTOR-CODE>