project QadFinancials > class BJournalEntry > method UpdatePostingHeaderInInstance
Description
update posting header in instance based on posting rowid, called by UI when posting date, posting year or posting period has changed
Parameters
icPostingRowId | input | character | RowId of Posting |
iiPeriodYear | input | integer | Year of Accounting Period |
iiPeriodPeriod | input | integer | Period of Accounting Period |
itPostingDate | input | date | posting date |
icPostingText | input | character | Header Description |
oiReturnStatus | output | integer | Return status of the method. |
Internal usage
QadFinancials
program code (program4/bjournalentry.p)
if icPostingRowId = ? then assign icPostingRowId = "":U.
if iiPeriodYear = ? then assign iiPeriodYear = 0.
if iiPeriodPeriod = ? then assign iiPeriodPeriod = 0.
if icPostingText = ? then assign icPostingText = "":U. /*Defect: 10333-0184*/
find tPosting where
tPosting.tc_Rowid = icPostingRowId and
tPosting.tc_Status <> "D":U
no-error.
if available tPosting
then assign tPosting.PostingYear = iiPeriodYear
tPosting.PostingPeriod = iiPeriodPeriod
tPosting.PostingDate = itPostingDate
tPosting.PostingText = icPostingText. /*Defect: 10333-0184*/