Table
CustInvoiceTemplate
Free text invoice template
Free text invoice templates, identified by template name. Each template holds default values for a free text invoice, such as currency, payment terms, tax groups, posting profile and dimensions. It links to many setup tables, for example payment, tax, delivery terms and language.
- Table name
CustInvoiceTemplate- Module
Accounts receivable- Table group
Group- Table type
Regular- Data per company
Yes- Configuration key
LedgerBasic- Primary index
None- Replacement key
TemplateNameIdx- Key fields
TemplateName- Model
Foundation
Fields (31)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
TemplateNameName that identifies the template. This is the table key. | StringCustInvoiceTemplateName | Yes | None | |
AccountingDistributionTemplateAccounting distribution template used by this invoice template. | Int64AccountingDistributionTemplateRecId | No | AccountingDistributionTemplate.RecId | None |
BillingClassificationBilling classification, pointing to a customer billing classification record. | Int64RefRecId | No | CustBillingClassification.RecId | None |
CashDiscCodeCash discount code to apply on invoices created from the template. | StringCustCashDiscCode | No | CashDisc.CashDiscCode | None |
CashDiscPercentDiscount percentage value. | RealDiscPct | No | None | |
CurrencyCodeCurrency code for invoices created from the template. | String (3)CustCurrencyCode | Yes | Currency.CurrencyCode | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultDimensionDefault financial dimension values, stored as a dimension value set. | Int64LedgerDimensionValueSet | No | DimensionAttributeValueSet.RecId | None |
DlvTermTerms of delivery code. | StringCustDlvTermId | No | DlvTerm.Code | None |
FinTagFinancial tag, pointing to a financial tag record. | Int64FinTagRecId | No | FinTag.RecId | None |
GiroTypeType of payment attachment for the free text invoice. Values include FIK, BBS, slips and Finnish types. | EnumPaymentStubInvoiceIdPaymentStub (enum) | No | None | |
InclTaxShows whether prices include sales tax (Yes or No). | EnumInclTaxNoYes (enum) | No | None | |
InclTax_WSecond Yes or No flag for prices that include sales tax. The metadata does not say how it differs from InclTax.low confidence | EnumInclTaxNoYes (enum) | No | None | |
LanguageIdLanguage code for the invoice. | String (7)CustLanguageId | Yes | LanguageTable.LanguageId | None |
ListcodeList code for EU trade reporting, for example EU trade or triangular trade. | EnumListcodeIdListcode (enum) | No | None | |
OverrideSalesTaxYes or No flag that allows the sales tax result to be overridden. | EnumTaxIntegrationOverrideSalesTaxNoYes (enum) | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PaymentTerms of payment code. | String (100)CustPaymTermId | No | PaymTerm.PaymTermId | None |
PaymentSchedPayment schedule name. | String (30)PaymSchedId | No | PaymSched.Name | None |
PaymModeMethod of payment for customers. | StringCustPaymMode | No | CustPaymModeTable.PaymMode | None |
PaymSpecPayment specification, linked to the payment method. | StringPaymSpec | No | CustPaymModeSpec.Specification | None |
PostingProfileCustomer posting profile code. | StringCustPostingProfile | No | CustLedger.PostingProfile | None |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxGroupSales tax group code. | StringTaxGroup | No | TaxGroupHeading.TaxGroup | None |
TaxItemGroupItem sales tax group code. | StringTaxItemGroup | No | TaxItemGroupHeading.TaxItemGroup | None |
TemplateDescriptionShort description of the template. | String (60)Description | No | None | |
VATOnPayment_RUShows whether VAT is on payment. Used for Russia. | EnumVATOnPayment_RUNoYes (enum) | No | None | |
WorkerSalesTakerWorker who is the recipient, pointing to a worker record. | Int64SalesTaker | No | HcmWorker.RecId | None |
Indexes (2)
TemplateNameIdxReplacement keyUnique, alternate key.
WorkerSalesTakerIdxNot unique.
Relations (16)
Each relation joins CustInvoiceTemplate to another table on the fields shown.
AccountingDistributionTemplate→AccountingDistributionTemplateJoin on
AccountingDistributionTemplate = AccountingDistributionTemplate.RecIdMany CustInvoiceTemplate records → zero or one AccountingDistributionTemplate record
CashDisc→CashDiscJoin on
CashDiscCode = CashDisc.CashDiscCodeMany CustInvoiceTemplate records → zero or one CashDisc record
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany CustInvoiceTemplate records → exactly one Currency record
CustBillingClassification→CustBillingClassificationJoin on
BillingClassification = CustBillingClassification.RecIdMany CustInvoiceTemplate records → exactly one CustBillingClassification record
CustLedger→CustLedgerJoin on
PostingProfile = CustLedger.PostingProfileMany CustInvoiceTemplate records → zero or one CustLedger record
CustPaymModeSpec→CustPaymModeSpecJoin on
PaymSpec = CustPaymModeSpec.Specification,PaymMode = CustPaymModeSpec.PaymModeMany CustInvoiceTemplate records → zero or one CustPaymModeSpec record
CustPaymModeTable→CustPaymModeTableJoin on
PaymMode = CustPaymModeTable.PaymModeMany CustInvoiceTemplate records → zero or one CustPaymModeTable record
DefaultDimension→DimensionAttributeValueSetJoin on
DefaultDimension = DimensionAttributeValueSet.RecIdMany CustInvoiceTemplate records → zero or one DimensionAttributeValueSet record
DlvTerm→DlvTermJoin on
DlvTerm = DlvTerm.CodeMany CustInvoiceTemplate records → zero or one DlvTerm record
LanguageTable→LanguageTableJoin on
LanguageId = LanguageTable.LanguageId,LanguageTable.LabelFile = 1Many CustInvoiceTemplate records → exactly one LanguageTable record
PaymentSched→PaymSchedJoin on
PaymentSched = PaymSched.NameMany CustInvoiceTemplate records → zero or one PaymSched record
PaymTerm→PaymTermJoin on
Payment = PaymTerm.PaymTermIdMany CustInvoiceTemplate records → zero or one PaymTerm record
TaxGroupHeading→TaxGroupHeadingJoin on
TaxGroup = TaxGroupHeading.TaxGroupMany CustInvoiceTemplate records → zero or one TaxGroupHeading record
TaxItemGroupHeading→TaxItemGroupHeadingJoin on
TaxItemGroup = TaxItemGroupHeading.TaxItemGroupMany CustInvoiceTemplate records → zero or one TaxItemGroupHeading record
WorkerSalesTaker_FK→HcmWorkerJoin on
WorkerSalesTaker = HcmWorker.RecIdMany CustInvoiceTemplate records → zero or one HcmWorker record
FinTag→FinTagJoin on
FinTag = FinTag.RecIdMany CustInvoiceTemplate records → zero or one FinTag record
Get this data out
No public entity reads from CustInvoiceTemplate. Its data is only reachable through the application, a custom entity or a database export.
Need help with CustInvoiceTemplate in a report, an integration or a migration? Talk to Dr Dynamics.