project QadFinancials > class BCInvoice > business logic query CInvoiceForLinkedCInvoice

Description

This query return the invoice(s) which linked to the invoice with input CInvoice_ID


Parameters


iiCompanyIdintegerCompany id
iiCInvoiceIdintegerId of the original invoice which will also be stored in the Invoice correction credit note or reversed invoice


query condition


  each CInvoice where
CInvoice.Company_Id = iiCompanyId AND
CInvoice.LinkedCInvoice_ID = iiCInvoiceId


query resultset tqCInvoiceForLinkedCInvoice


field namedata typedb fielddescription
tiCInvoice_IDintegerCInvoice.CInvoice_IDRecord ID
tiLinkedCInvoice_IDintegerCInvoice.LinkedCInvoice_IDReference


Internal usage


QadFinancials
method BCInvoice.ReplaceCInvoice