project QadFinancials > class BDDocument > method StopAllQueries

Description

This method stops all started queries


Parameters


oiReturnStatusoutputintegerReturn status of the method.


Internal usage


QadFinancials
method BDDocument.AdditionalUpdates


program code (program5/bddocument.p)

/* ========================================================================================== *
 * Method:       StopAllQueries                                                               *
 * Desc:         This method stops all started queries                                        *
 * ========================================================================================== */
if vlIsQStartedDInvoiceById
then do:
    <Q-4 run DInvoiceByID  (Stop) in BDInvoice >
    assign vlIsQStartedDInvoiceById = false.
end.

if vlIsQStartedGLByBankInfo
then do:
    <Q-1 run GLByBankInfo  (Stop) in BGL >
    assign vlIsQStartedGLByBankInfo = false.
end.

if vlIsQStartedPostingVatByPosti
then do :
    <Q-2 run PostingVatByPostingLineId  (Stop) in BPosting >
    assign vlIsQStartedPostingVatByPosti = false.
end.

if vlIsQStartedMfgTaxCodeByTaxC
then do:
    <Q-5 run MfgTaxCodeByTaxCode  (Stop) in BMfgTaxCode >
    assign vlIsQStartedMfgTaxCodeByTaxC = false.
end.