Parameters
| ilisCustomer | input | logical | |
| itPostingDate | input | date | |
| itInvoiceDate | input | date | |
| icInvoiceType | input | character | |
| otExchangeRateDate | output | date | |
| oiReturnStatus | output | integer | Return status of the method. |
Internal usage
QadFinancials
program code (program1/bopenitemadjustment.p)
assign oiReturnStatus = 0.
if ilisCustomer then do:
assign otExchangeRateDate = itPostingDate.
end.
else do: /* Supplier */
if icInvoiceType = {&INVOICETYPE-PREPAYMENT} then do:
assign otExchangeRateDate = itPostingDate.
end.
else if vlCompanyPropertyIsAPUseInvDt then do:
assign otExchangeRateDate = itInvoiceDate.
end.
else do:
assign otExchangeRateDate = itPostingDate.
end.
end.