project QadFinancials > class BPaymentSelection > business logic query PaySelLineByBankNmbrDInvoice

Description

find payment selection lines for a certain banknumber_id , and where the paysellineparentobject_id = dinvoice_id, and where rowid is different from input rowid


Parameters


iiBankNumberIdintegerBank Number ID
icCurrentRowIdcharacterCurrent Row ID
iiCompanyIdintegerCompany id
iiDInvoiceIdintegerCustomer Invoice ID


query condition


  each PaySelLine where
PaySelLine.BankNumber_ID = iiBankNumberId AND
PaySelLine.PaySelLineParentObject_ID = iiDInvoiceId AND
rowid(PaySelLine) <> to-rowid(icCurrentRowId)

      first DInvoice (inner-join) where
DInvoice.Company_Id = iiCompanyId AND
DInvoice.DInvoice_ID = PaySelLine.PaySelLineParentObject_ID AND


query resultset tqPaySelLineByBankNmbrDInvoice


field namedata typedb fielddescription
tiBankNumber_IDintegerPaySelLine.BankNumber_IDLink to BankNumber
tdPaySelLineAmountTCdecimalPaySelLine.PaySelLineAmountTCAmount
tcPaySelLineObjectTypecharacterPaySelLine.PaySelLineObjectTypeType
tiPaySelLineParentObject_IDintegerPaySelLine.PaySelLineParentObject_IDParent Object


Internal usage


QadFinancials
method BDInvoice.UpdateDInvoiceBankNumber