project QadFinancials > class BPosting > method GetPostingIDBasedOnPostingRowid

Description

Get the Posting_ID based on the posting-rowid. This convertion is done on the instance-data; this functionality will only work for loaded are newly added instances.


Parameters


icPostingRowidinputcharacterRowid of the posting
oiPostingIDoutputintegerPostingID
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


QadFinancials
method BCDocument.AdditionalUpdatesPostingRounding
method BCInvoice.CreateCInvoiceMovementsCrossCy
method BDDocument.AdditionalUpdatesPostingRounding
method BDInvoice.CreateDInvoiceMovementsCrossCy


program code (program6/bposting.p)

/* =============== */
    /* get the posting */
    /* =============== */
    find first tPosting where
               tPosting.tc_Rowid = icPostingRowid
               no-error.
    if not available tPosting or
       tPosting.tc_Status = "D":U
    then return.

    /* ======================= */
    /* Return the ID           */
    /* ======================= */
    assign oiPostingID = tPosting.Posting_ID.