project QadFinancials > class BDInvoice > business logic query DInvoiceVatForSuspTax

Description

Query on DI to retrieve the tax records with suspended taxes


Parameters


iiCompanyIdintegerCompany id
iiDInvoiceIdinteger
ilDInvoiceVatIsSuspDellogical


query condition


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

      first CostCentre (conditional-join) where
CostCentre.SharedSet_Id = vi_COSTCENTRE_sharedset(iiCompanyId) AND
CostCentre.CostCentre_ID = DInvoice.CostCentre_ID AND

      each DInvoiceVat (inner-join) where
DInvoiceVat.DInvoice_ID = DInvoice.DInvoice_ID AND
DInvoiceVat.DInvoiceVatIsSuspDel = ilDInvoiceVatIsSuspDel

      first Division (conditional-join) where
Division.SharedSet_Id = vi_DIVISION_sharedset(iiCompanyId) AND
Division.Division_ID = DInvoice.Division_ID AND

      first Project (conditional-join) where
Project.SharedSet_Id = vi_PROJECT_sharedset(iiCompanyId) AND
Project.Project_ID = DInvoice.Project_ID AND


query resultset tqDInvoiceVatForSuspTax


field namedata typedb fielddescription
tiCompany_IDintegerDInvoice.Company_IDLink to Company
tcCostCentreCodecharacterCostCentre.CostCentreCodeCost Center: A code that identifies the cost center.
tiDInvoice_IDintegerDInvoice.DInvoice_IDRecord ID
tdDInvoiceBalanceCreditTCdecimalDInvoice.DInvoiceBalanceCreditTCTC Balance Amount CR. This field displays the sum of the credit amounts of all posting lines in transaction currency.
tdDInvoiceBalanceDebitTCdecimalDInvoice.DInvoiceBalanceDebitTCTC Balance Amount DR. This field displays the sum of the debit amounts of all posting lines in transaction currency.
tdDInvoiceExchangeRatedecimalDInvoice.DInvoiceExchangeRateExchange Rate. The accounting exchange rate used by the invoice.
The BC Invoice Amount is calculated based on the exchange rate.
If user modify the TC Invoice Amount, the BC invoice amount is automatically adjusted.
tdDInvoiceOriginalCreditTCdecimalDInvoice.DInvoiceOriginalCreditTCTC Invoice Amount CR. This field displays the credit total invoice amount in the transaction currency.
If you modify this field, the system automatically recalculates the exchange rate to ensure that the BC Invoice Amount remains the same.
tdDInvoiceOriginalDebitTCdecimalDInvoice.DInvoiceOriginalDebitTCTC AP Amount. This field displays the debit total invoice amount in the transaction currency.
If you modify this field, the system automatically recalculates the exchange rate to ensure that the TC Invoice Amount remains the same.
tdDInvoiceRateScaledecimalDInvoice.DInvoiceRateScaleScale Factor.This field indicates the scale factor applying to the exchange rate in use for foreign currency payments.
The exchange rate is multiplied by the scale factor to determine the actual exchange rate.
api annotation:The value for the scale factor defaults from the exchange rate definition, but it can be modified.
tcDInvoiceTypecharacterDInvoice.DInvoiceTypeInvoice Type. This field displays the invoice type.
Invoice Correction and Credit Note Correction display as choices only when the appropriate daybook types have already been defined.
api annotation:PartialUpdate = yes - defaults to Invoice
tiDInvoiceVat_IDintegerDInvoiceVat.DInvoiceVat_IDRecord ID
tdDInvoiceVatBaseCreditTCdecimalDInvoice.DInvoiceVatBaseCreditTCTC Base Amount CR. This field displays the credit base amount in the transaction currency.
This field is calculated by the system using the total invoice amount (TC) and the applicable tax rate code.
tdDInvoiceVatBaseDebitTCdecimalDInvoice.DInvoiceVatBaseDebitTCTC Base Amount DR. This field displays the debit base amount in the transaction currency.
This field is calculated by the system using the total invoice amount (TC) and the applicable tax rate code.
tdDInvoiceVatCreditTCdecimalDInvoice.DInvoiceVatCreditTCTC Tax Amount CR. This field displays the credit tax amount (TC) calculated by the system using the total invoice amount (TC) and the applicable tax rate code.
tdDInvoiceVatDebitTCdecimalDInvoice.DInvoiceVatDebitTCTC Tax Amount DR. This field displays the debit tax amount (TC) calculated by the system using the total invoice amount (TC) and the applicable tax rate code.
tlDInvoiceVatIsSuspDellogicalDInvoiceVat.DInvoiceVatIsSuspDelCInvoiceVatIsSuspDel Tax line is for Suspended or Delayed tax. This is a parameter of the tax rate code in GTM.
api annotation:PartialUpdate = yes - defaults to false
tlDInvoiceVatIsTaxablelogicalDInvoiceVat.DInvoiceVatIsTaxableTaxable. This field indicates if the invoice is taxable.
api annotation:This field defaults to true if the customer is taxable.
tdDInvoiceVatSuspDelTaxAmtTCdecimalDInvoiceVat.DInvoiceVatSuspDelTaxAmtTCTax Amount on Delayed Account TC. This field display the tax amount in the delayed account of the invoice in Transaction currency.
tcDivisionCodecharacterDivision.DivisionCodeSub-Account
tcProjectCodecharacterProject.ProjectCodeProject


Internal usage


QadFinancials
method BCDocument.AdditionalUpdatesPostingXrefDI
method BDDocument.AdditionalUpdatesPostingXrefDI