project QadFinancials > class BExpenseNote > 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 BExpenseNote.APIExpNoteConfirm
method BExpenseNote.APIExpNoteRegister
method BExpenseNote.ValidateComponent


program code (program/bexpensenote.p)

if viBCInvoice5ID <> 0 and viBCInvoice5ID <> ? and vlBCInvoiceIsStartedFromExpNote
then do:
    <I-1 {bFcStopInstance
            &CLASS           = "BCInvoice"}>
    assign viBCInvoice5ID       = 0
           vlBCInvoiceIsStartedFromExpNote = false.
end.

if viBJournalEntry8ID <> 0 and viBJournalEntry8ID <> ? and vlBJournalEntryIsStartedFromEN
then do:
    <I-2 {bFcStopInstance
            &CLASS           = "BJournalEntry"}>
    assign viBJournalEntry8ID       = 0
           vlBJournalEntryIsStartedFromEN = false.
end.

<ANCESTOR-CODE>