project QadFinancials > class BDInvoice > method GetNatureKeyOfInstance

Description

get nature key of instance based on id


Parameters


iiDInvoiceIDinputintegerDInvoice ID
oiDInvoicePostingYearoutputintegerPosting year of the customer invoice
ocJournalCodeoutputcharacterDaybook
oiDInvoiceVoucheroutputintegerVoucher
oiReturnStatusoutputintegerReturn 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 */