project QadFinancials > class BJournalEntry > method CheckIfPostingExistInInstance
Description
Check if the posting exist in the instance, based on posting id
Parameters
iiPostingId | input | integer | Posting ID |
olPostingExists | output | logical | does posting exists ? |
oiReturnStatus | output | integer | Return status of the method. |
Internal usage
QadFinancials
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.