Table
VendInvoiceTemplate
Vendor invoice template
Stores vendor invoice templates, each identified by a template name. A template holds default invoice settings such as currency, payment terms, payment method, cash discount, posting profile, sales tax group and dimensions. It links to the payment and tax setup tables.
- Table name
VendInvoiceTemplate- Module
Accounts payable- 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 (21)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
TemplateNameName that identifies the template. It is the key of the table. | StringVendInvoiceTemplateName | Yes | None | |
AccountingDistributionTemplatePoints to the accounting distribution template used by this invoice template. | Int64AccountingDistributionTemplateRecId | No | AccountingDistributionTemplate.RecId | None |
CashDiscCodeCash discount code for the template. | StringCustCashDiscCode | No | CashDisc.CashDiscCode | None |
CashDiscPercentDiscount percentage for the template. | RealDiscPct | No | None | |
CurrencyCodeCurrency used by the template. | String (3)VendCurrencyCode | Yes | Currency.CurrencyCode | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultDimensionPoints to the default financial dimension values for the template. | Int64LedgerDimensionValueSet | No | DimensionAttributeValueSet.RecId | None |
InclTaxShows whether prices include sales tax. | EnumInclTaxNoYes (enum) | No | None | |
InstanceRelationTypeRelation type number. The metadata gives no label, so the purpose is not clear.low confidence | Int64RelationType | No | None | |
ListcodeList code category, such as EU trade or triangular trade. | EnumListcodeIdListcode (enum) | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PaymentPayment terms for the template. | String (100)CustPaymTermId | No | PaymTerm.PaymTermId | None |
PaymentSchedPayment schedule for the template. | String (30)PaymSchedId | No | PaymSched.Name | None |
PaymModeVendor method of payment for the template. | StringVendPaymMode | No | VendPaymModeTable.PaymMode | None |
PaymSpecPayment specification, chosen together with the method of payment. | StringPaymSpec | No | VendPaymModeSpec.Specification | None |
PostingProfileVendor posting profile for the template. | StringVendPostingProfile | No | VendLedger.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 | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxGroupSales tax group for the template. | StringTaxGroup | No | TaxGroupHeading.TaxGroup | None |
TemplateDescriptionShort description of the template. | String (60)Description | No | None |
Indexes (1)
TemplateNameIdxReplacement keyUnique, alternate key.
Relations (11)
Each relation joins VendInvoiceTemplate to another table on the fields shown.
AccountingDistributionTemplate→AccountingDistributionTemplateJoin on
AccountingDistributionTemplate = AccountingDistributionTemplate.RecIdMany VendInvoiceTemplate records → zero or one AccountingDistributionTemplate record
CashDisc→CashDiscJoin on
CashDiscCode = CashDisc.CashDiscCodeMany VendInvoiceTemplate records → zero or one CashDisc record
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany VendInvoiceTemplate records → exactly one Currency record
VendLedger→VendLedgerJoin on
PostingProfile = VendLedger.PostingProfileMany VendInvoiceTemplate records → zero or one VendLedger record
VendPaymModeSpec→VendPaymModeSpecJoin on
PaymSpec = VendPaymModeSpec.Specification,PaymMode = VendPaymModeSpec.PaymModeMany VendInvoiceTemplate records → zero or one VendPaymModeSpec record
VendPaymModeTable→VendPaymModeTableJoin on
PaymMode = VendPaymModeTable.PaymModeMany VendInvoiceTemplate records → zero or one VendPaymModeTable record
DefaultDimension→DimensionAttributeValueSetJoin on
DefaultDimension = DimensionAttributeValueSet.RecIdMany VendInvoiceTemplate records → zero or one DimensionAttributeValueSet record
PaymentSched→PaymSchedJoin on
PaymentSched = PaymSched.NameMany VendInvoiceTemplate records → zero or one PaymSched record
PaymTerm→PaymTermJoin on
Payment = PaymTerm.PaymTermIdMany VendInvoiceTemplate records → zero or one PaymTerm record
TaxGroupHeading→TaxGroupHeadingJoin on
TaxGroup = TaxGroupHeading.TaxGroupMany VendInvoiceTemplate records → zero or one TaxGroupHeading record
LanguageTable→LanguageTableJoin on
LanguageTable.LabelFile = 1Many VendInvoiceTemplate records → exactly one LanguageTable record
Get this data out
No public entity reads from VendInvoiceTemplate. Its data is only reachable through the application, a custom entity or a database export.
Need help with VendInvoiceTemplate in a report, an integration or a migration? Talk to Dr Dynamics.