project QadFinancials > class BDInvoice > business logic query InvoiceStageByInvoiceID


Parameters


iiCompanyIdintegerCompany id
iiInvoiceIdintegerInvoice ID number


query condition


  each DInvoice where
DInvoice.Company_Id = iiCompanyId AND
DInvoice.DInvoice_ID = iiInvoiceId

      each DInvoiceStage (inner-join) where
DInvoiceStage.DInvoice_ID = DInvoice.DInvoice_ID AND


query resultset tqInvoiceStageByInvoiceID


field namedata typedb fielddescription
tiDInvoice_IDintegerDInvoice.DInvoice_IDRecord ID
tiDInvoiceStage_IDintegerDInvoiceStage.DInvoiceStage_IDRecord ID
tdDInvoiceStageAmountCCdecimalDInvoiceStage.DInvoiceStageAmountCCSC Amount. CInvoiceStageAmountSC Staged payments credit terms details of the invoice. The amount to pay in SC for this stage.
tdDInvoiceStageAmountLCdecimalDInvoiceStage.DInvoiceStageAmountLCBC Amount. CInvoiceStageAmountBC Staged payments credit terms details of the invoice. The amount to pay in BC for this stage.
tdDInvoiceStageAmountTCdecimalDInvoiceStage.DInvoiceStageAmountTCTC Amount. CInvoiceStageAmountTC Staged payments credit terms details of the invoice. The amount to pay in TC for this stage.
tdDInvoiceStageAmtAppliedTCdecimalDInvoiceStage.DInvoiceStageAmtAppliedTCTC Applied Amount. CInvoiceStageAmtAppliedTC Staged payments credit terms details of the invoice. The amount paid in TC for this stage.
ttDInvoiceStageDiscDatedateDInvoiceStage.DInvoiceStageDiscDateCInvoiceDiscDate Payment discount due date. When the invoice is paid before this date a payment discount can be given.
tdDInvoiceStageDiscPercdecimalDInvoiceStage.DInvoiceStageDiscPercCInvoiceDiscPerc Payment discount percent. When the invoice is paid before the discount due date, this is the discount percentage that can be given.
ttDInvoiceStageDueDatedateDInvoiceStage.DInvoiceStageDueDateDue Date. The date when this stage should end.
tdDInvoiceStagePercentagedecimalDInvoiceStage.DInvoiceStagePercentagePercentage. CInvoiceStagePercent Staged payments credit terms details of the invoice. The percentage of the invoice total that this stage stands for.
tiPaymentConditionStaged_IDintegerDInvoiceStage.PaymentConditionStaged_IDCredit Terms Code


Internal usage


QadFinancials
method BDInvoice.ApiInvoiceStagebyInvoiceNbr