project QadFinancials > class BDDocument > method GetPostingInfoOfInstance

Description

get the posting info of the instance


Parameters


ocPostingLineIDsoutputcharacterPostingLineIDs; List with the IDs of the posting-lines linked to all new cdocuments
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


QadFinancials
method BBankEntry.StopExternalInstances


program code (program3/bddocument.p)

/* ===================================================== */
    /* Return a list containing all posting-line-ID linked   */
    /* to the newly created cdocument                        */
    /* ===================================================== */
    for each tDDocumentPostingLine where 
             tDDocumentPostingLine.tc_Status = "N":U
             no-lock :    
        assign ocPostingLineIDs = ocPostingLineIDs + ",":U + string(tDDocumentPostingLine.PostingLine_ID).
    end. /* for each tCDocumentPostingLine where */

    if ocPostingLineIDs <> "":U and length(ocPostingLineIDs,"CHARACTER":U) > 1 
    then assign ocPostingLineIDs = substring(ocPostingLineIDs,2,-1,"CHARACTER":U).