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 descriptionType / EDT / enumMandatoryReferencesIn public entities
TemplateNameName that identifies the template. This is the table key.String
CustInvoiceTemplateName
YesNone
AccountingDistributionTemplateAccounting distribution template used by this invoice template.Int64
AccountingDistributionTemplateRecId
NoAccountingDistributionTemplate.RecIdNone
BillingClassificationBilling classification, pointing to a customer billing classification record.Int64
RefRecId
NoCustBillingClassification.RecIdNone
CashDiscCodeCash discount code to apply on invoices created from the template.String
CustCashDiscCode
NoCashDisc.CashDiscCodeNone
CashDiscPercentDiscount percentage value.Real
DiscPct
NoNone
CurrencyCodeCurrency code for invoices created from the template.String (3)
CustCurrencyCode
YesCurrency.CurrencyCodeNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DefaultDimensionDefault financial dimension values, stored as a dimension value set.Int64
LedgerDimensionValueSet
NoDimensionAttributeValueSet.RecIdNone
DlvTermTerms of delivery code.String
CustDlvTermId
NoDlvTerm.CodeNone
FinTagFinancial tag, pointing to a financial tag record.Int64
FinTagRecId
NoFinTag.RecIdNone
GiroTypeType of payment attachment for the free text invoice. Values include FIK, BBS, slips and Finnish types.Enum
PaymentStubInvoiceId
PaymentStub (enum)
NoNone
InclTaxShows whether prices include sales tax (Yes or No).Enum
InclTax
NoYes (enum)
NoNone
InclTax_WSecond Yes or No flag for prices that include sales tax. The metadata does not say how it differs from InclTax.low confidenceEnum
InclTax
NoYes (enum)
NoNone
LanguageIdLanguage code for the invoice.String (7)
CustLanguageId
YesLanguageTable.LanguageIdNone
ListcodeList code for EU trade reporting, for example EU trade or triangular trade.Enum
ListcodeId
Listcode (enum)
NoNone
OverrideSalesTaxYes or No flag that allows the sales tax result to be overridden.Enum
TaxIntegrationOverrideSalesTax
NoYes (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymentTerms of payment code.String (100)
CustPaymTermId
NoPaymTerm.PaymTermIdNone
PaymentSchedPayment schedule name.String (30)
PaymSchedId
NoPaymSched.NameNone
PaymModeMethod of payment for customers.String
CustPaymMode
NoCustPaymModeTable.PaymModeNone
PaymSpecPayment specification, linked to the payment method.String
PaymSpec
NoCustPaymModeSpec.SpecificationNone
PostingProfileCustomer posting profile code.String
CustPostingProfile
NoCustLedger.PostingProfileNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxGroupSales tax group code.String
TaxGroup
NoTaxGroupHeading.TaxGroupNone
TaxItemGroupItem sales tax group code.String
TaxItemGroup
NoTaxItemGroupHeading.TaxItemGroupNone
TemplateDescriptionShort description of the template.String (60)
Description
NoNone
VATOnPayment_RUShows whether VAT is on payment. Used for Russia.Enum
VATOnPayment_RU
NoYes (enum)
NoNone
WorkerSalesTakerWorker who is the recipient, pointing to a worker record.Int64
SalesTaker
NoHcmWorker.RecIdNone

Indexes (2)

Relations (16)

Each relation joins CustInvoiceTemplate to another table on the fields shown.

  • AccountingDistributionTemplate → AccountingDistributionTemplate

    Join on AccountingDistributionTemplate = AccountingDistributionTemplate.RecId

    Many CustInvoiceTemplate records → zero or one AccountingDistributionTemplate record

  • CashDisc → CashDisc

    Join on CashDiscCode = CashDisc.CashDiscCode

    Many CustInvoiceTemplate records → zero or one CashDisc record

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many CustInvoiceTemplate records → exactly one Currency record

  • CustBillingClassification → CustBillingClassification

    Join on BillingClassification = CustBillingClassification.RecId

    Many CustInvoiceTemplate records → exactly one CustBillingClassification record

  • CustLedger → CustLedger

    Join on PostingProfile = CustLedger.PostingProfile

    Many CustInvoiceTemplate records → zero or one CustLedger record

  • CustPaymModeSpec → CustPaymModeSpec

    Join on PaymSpec = CustPaymModeSpec.Specification, PaymMode = CustPaymModeSpec.PaymMode

    Many CustInvoiceTemplate records → zero or one CustPaymModeSpec record

  • CustPaymModeTable → CustPaymModeTable

    Join on PaymMode = CustPaymModeTable.PaymMode

    Many CustInvoiceTemplate records → zero or one CustPaymModeTable record

  • DefaultDimension → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many CustInvoiceTemplate records → zero or one DimensionAttributeValueSet record

  • DlvTerm → DlvTerm

    Join on DlvTerm = DlvTerm.Code

    Many CustInvoiceTemplate records → zero or one DlvTerm record

  • LanguageTable → LanguageTable

    Join on LanguageId = LanguageTable.LanguageId, LanguageTable.LabelFile = 1

    Many CustInvoiceTemplate records → exactly one LanguageTable record

  • PaymentSched → PaymSched

    Join on PaymentSched = PaymSched.Name

    Many CustInvoiceTemplate records → zero or one PaymSched record

  • PaymTerm → PaymTerm

    Join on Payment = PaymTerm.PaymTermId

    Many CustInvoiceTemplate records → zero or one PaymTerm record

  • TaxGroupHeading → TaxGroupHeading

    Join on TaxGroup = TaxGroupHeading.TaxGroup

    Many CustInvoiceTemplate records → zero or one TaxGroupHeading record

  • TaxItemGroupHeading → TaxItemGroupHeading

    Join on TaxItemGroup = TaxItemGroupHeading.TaxItemGroup

    Many CustInvoiceTemplate records → zero or one TaxItemGroupHeading record

  • WorkerSalesTaker_FK → HcmWorker

    Join on WorkerSalesTaker = HcmWorker.RecId

    Many CustInvoiceTemplate records → zero or one HcmWorker record

  • FinTag → FinTag

    Join on FinTag = FinTag.RecId

    Many 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.

Email sales@drdynamics.co.uk