project QadFinancials > class BJournalEntry > method CheckIfPostingExistInInstance

Description

Check if the posting exist in the instance, based on posting id


Parameters


iiPostingIdinputintegerPosting ID
olPostingExistsoutputlogicaldoes posting exists ?
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


QadFinancials
method BBankEntry.LoadBEPosting


program code (program6/bjournalentry.p)

/* replace unknown value */
    if iiPostingId = ? then assign iiPostingId = 0.

    /* search posting */
    assign olPostingExists = if can-find(first tPosting where
                                               tPosting.Posting_ID = iiPostingId and
                                               tPosting.tc_Status  <> "D":U)
                             then true
                             else false.