project QadFinancials > class BDDocument > method GetPostingInfoOfInstance
Description
get the posting info of the instance
Parameters
| ocPostingLineIDs | output | character | PostingLineIDs; List with the IDs of the posting-lines linked to all new cdocuments |
| oiReturnStatus | output | integer | Return status of the method. |
Internal usage
QadFinancials
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).