project QadFinancials > class BDInvoice > method GetNatureKeyOfInstance
Description
get nature key of instance based on id
Parameters
| iiDInvoiceID | input | integer | DInvoice ID |
| oiDInvoicePostingYear | output | integer | Posting year of the customer invoice |
| ocJournalCode | output | character | Daybook |
| oiDInvoiceVoucher | output | integer | Voucher |
| oiReturnStatus | output | integer | Return status of the method. |
Internal usage
unused
program code (program6/bdinvoice.p)
for each tDInvoice where
tDInvoice.tc_Status = "N":U and
tDInvoice.DInvoice_ID = iiDInvoiceID
no-lock :
assign oiDInvoicePostingYear = tDInvoice.DInvoicePostingYear
ocJournalCode = tDInvoice.tcJournalCode
oiDInvoiceVoucher = tDInvoice.DInvoiceVoucher.
end. /* for each tDInvoice where */