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 descriptionType / EDT / enumMandatoryReferencesIn public entities
TemplateNameName that identifies the template. It is the key of the table.String
VendInvoiceTemplateName
YesNone
AccountingDistributionTemplatePoints to the accounting distribution template used by this invoice template.Int64
AccountingDistributionTemplateRecId
NoAccountingDistributionTemplate.RecIdNone
CashDiscCodeCash discount code for the template.String
CustCashDiscCode
NoCashDisc.CashDiscCodeNone
CashDiscPercentDiscount percentage for the template.Real
DiscPct
NoNone
CurrencyCodeCurrency used by the template.String (3)
VendCurrencyCode
YesCurrency.CurrencyCodeNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DefaultDimensionPoints to the default financial dimension values for the template.Int64
LedgerDimensionValueSet
NoDimensionAttributeValueSet.RecIdNone
InclTaxShows whether prices include sales tax.Enum
InclTax
NoYes (enum)
NoNone
InstanceRelationTypeRelation type number. The metadata gives no label, so the purpose is not clear.low confidenceInt64
RelationType
NoNone
ListcodeList code category, such as EU trade or triangular trade.Enum
ListcodeId
Listcode (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymentPayment terms for the template.String (100)
CustPaymTermId
NoPaymTerm.PaymTermIdNone
PaymentSchedPayment schedule for the template.String (30)
PaymSchedId
NoPaymSched.NameNone
PaymModeVendor method of payment for the template.String
VendPaymMode
NoVendPaymModeTable.PaymModeNone
PaymSpecPayment specification, chosen together with the method of payment.String
PaymSpec
NoVendPaymModeSpec.SpecificationNone
PostingProfileVendor posting profile for the template.String
VendPostingProfile
NoVendLedger.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
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxGroupSales tax group for the template.String
TaxGroup
NoTaxGroupHeading.TaxGroupNone
TemplateDescriptionShort description of the template.String (60)
Description
NoNone

Indexes (1)

  • TemplateNameIdxReplacement key

    TemplateName

    Unique, alternate key.

Relations (11)

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

  • AccountingDistributionTemplate → AccountingDistributionTemplate

    Join on AccountingDistributionTemplate = AccountingDistributionTemplate.RecId

    Many VendInvoiceTemplate records → zero or one AccountingDistributionTemplate record

  • CashDisc → CashDisc

    Join on CashDiscCode = CashDisc.CashDiscCode

    Many VendInvoiceTemplate records → zero or one CashDisc record

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many VendInvoiceTemplate records → exactly one Currency record

  • VendLedger → VendLedger

    Join on PostingProfile = VendLedger.PostingProfile

    Many VendInvoiceTemplate records → zero or one VendLedger record

  • VendPaymModeSpec → VendPaymModeSpec

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

    Many VendInvoiceTemplate records → zero or one VendPaymModeSpec record

  • VendPaymModeTable → VendPaymModeTable

    Join on PaymMode = VendPaymModeTable.PaymMode

    Many VendInvoiceTemplate records → zero or one VendPaymModeTable record

  • DefaultDimension → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many VendInvoiceTemplate records → zero or one DimensionAttributeValueSet record

  • PaymentSched → PaymSched

    Join on PaymentSched = PaymSched.Name

    Many VendInvoiceTemplate records → zero or one PaymSched record

  • PaymTerm → PaymTerm

    Join on Payment = PaymTerm.PaymTermId

    Many VendInvoiceTemplate records → zero or one PaymTerm record

  • TaxGroupHeading → TaxGroupHeading

    Join on TaxGroup = TaxGroupHeading.TaxGroup

    Many VendInvoiceTemplate records → zero or one TaxGroupHeading record

  • LanguageTable → LanguageTable

    Join on LanguageTable.LabelFile = 1

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

Email sales@drdynamics.co.uk