project QadFinancials > class BJournalEntry > method UpdatePostingOriginAddressCode

Description

Update Posting Origin Address Code of posting header in instance based on posting row id.


Parameters


icPostingRowIdinputcharacterRow Id Of the tposting
icPostingOriginAddressCodeinputcharacterPosting Origin Address Code
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


QadFinancials
method BBankEntry.AdditionalUpdatesInvDeductions
method BBankEntry.AdditionalUpdatesInvPrePayments


program code (program6/bjournalentry.p)

if icPostingRowId = ? then assign icPostingRowId = "":U.
if icPostingOriginAddressCode = ? then assign icPostingOriginAddressCode = "":U.

find tPosting where
     tPosting.tc_Rowid  = icPostingRowId and
     tPosting.tc_Status <> "D":U
     no-error.
if available tPosting
then assign tPosting.PostingOriginAddressCode = icPostingOriginAddressCode.