Table

LTMVendInvoiceJour

The vendor invoice jour table for LATAM

Holds extra LATAM-specific data for vendor invoice journal records. It is identified by the complete document number, document date, number sequence group and a record reference. It links to the standard vendor invoice journal, and to document classification, fiscal register, sales point, taxpayer type and state records.

Table name
LTMVendInvoiceJour
Module
Cross-module and platform
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
RefRecId
Replacement key
VendInvoiceJourIdx
Key fields
CompleteDocumentNum, DocumentDate, NumberSequenceGroupId, RefRecId
Model
GlobalizationLTM

Fields (79)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CompleteDocumentNumFull document number.String (50)
LTMCompleteDocumentNum
YesLTMVendInvoiceJourEntity
DocumentDateDate shown on the document.Date
DocumentDate
YesLTMVendInvoiceJourEntity
NumberSequenceGroupIdNumber sequence group used for the document.String
NumberSequenceGroupId
NoNone
RefRecIdSystem record ID of the related vendor invoice journal record.Int64
RefRecId
YesVendInvoiceJour.RecIdLTMVendInvoiceJourEntity
AmountCURAmount in the transaction currency, as debit or credit.Real
AmountCurDebCred
NoNone
AmountMSTAmount in the company currency.Real
AmountMST
NoNone
BankAccountNumBank account identification.String
BankAccountID
NoNone
BankGroupIdBank group code.String
BankGroupId
NoNone
BeneficiaryName of the person or company that receives the document.String (60)
LTMBeneficiary
NoNone
BussinessNameName of the person or company that issues the document, shown as the company name.String (60)
Name
NoNone
CaiCaeAuthorisation number (CA) given for a batch of invoices or a single invoice.String (50)
LTMCaiCae
NoLTMVendInvoiceJourEntity
CAICAEDueDateDate on which the CA number expires.Date
SysDate
NoLTMVendInvoiceJourEntity
Concept1First free-text field for extra notes.String (250)
LTMConcept1
NoLTMVendInvoiceJourEntity
Concept2Second free-text field for extra notes.String (250)
LTMConcept2
NoLTMVendInvoiceJourEntity
Concept3Third free-text field for extra notes.String (250)
LTMConcept3
NoLTMVendInvoiceJourEntity
ControlCodeControl code stored with the document.String (50)
LTMControlCode
NoLTMVendInvoiceJourEntity
CountryDocNumIdentification number issued at country level.String (40)
LTMCountryDocNum
NoLTMVendInvoiceJourEntity
CountryDocTypeIdCode for the type of country-level identification document. Points to a fiscal register record.String (15)
LTMDocTypeId
NoLTMFiscalRegisterV2.DocTypeIdLTMVendInvoiceJourEntity
CountryRegionIdCountry or region of the document. Together with the state, points to a state record.String
AddressCountryRegionId
NoLogisticsAddressState.CountryRegionIdLTMVendInvoiceJourEntity
CPDActionAction for a collection or payment document, such as entry, exit, re-entry, emission, accrual or cancellation.Enum
LTMCollectPaymDocAction (enum)
NoNone
CPDSourceWhether the check is own or from a third party.Enum
LTMCheckSource (enum)
NoNone
CPDTRXHistoryIDReference to a collection document history record.low confidenceInt64
RefRecId
NoNone
CPDTRXOpenIDReference to an open collection document transaction.low confidenceInt64
RefRecId
NoNone
CurrencyCodeCurrency code of the document.String (3)
CurrencyCode
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DocumentClassificationIdDocument class the document belongs to. Points to a document class record.String (15)
LTMDocumentClassificationId
NoLTMDocumentClassification.DocumentClassificationIdLTMVendInvoiceJourEntity
DocumentNumPlain document number, without the prefix or sales point.String (20)
DocumentNum
NoLTMVendInvoiceJourEntity
DueDateDate by which the document is due.Date
DueDate
NoLTMVendInvoiceJourEntity
ExchRateExchange rate recorded on the document.Real
ExchRate
NoNone
HolderAccountNumBank account number of the holder of the document.String (30)
LTMHolderAccountNum
NoNone
IsCollectPaymDocYes or No flag showing whether the document class is a value document rather than a standard document.Enum
NoYes (enum)
NoNone
IsConceptYes or No flag for concept. Meaning is not stated further.low confidenceEnum
NoYes (enum)
NoNone
LedgerJournalTransIdReference to a ledger journal transaction.low confidenceInt64
RefRecId
NoNone
LedgerVoucherVoucher number linked to the document.String (20)
Voucher
NoLTMVendInvoiceJourEntity
ListField01Description text for the first reference code.String (60)
LTMListFieldCodeDescription
NoLTMVendInvoiceJourEntity
ListField02Description text for the second reference code.String (60)
LTMListFieldCodeDescription
NoLTMVendInvoiceJourEntity
ListField03Description text for the third reference code.String (60)
LTMListFieldCodeDescription
NoLTMVendInvoiceJourEntity
ListField04Description text for the fourth reference code.String (60)
LTMListFieldCodeDescription
NoLTMVendInvoiceJourEntity
ListField05Description text for the fifth reference code.String (60)
LTMListFieldCodeDescription
NoLTMVendInvoiceJourEntity
ListField06Description text for the sixth reference code.String (60)
LTMListFieldCodeDescription
NoLTMVendInvoiceJourEntity
ListField07Description text for the seventh reference code.String (60)
LTMListFieldCodeDescription
NoLTMVendInvoiceJourEntity
ListField08Description text for the eighth reference code.String (60)
LTMListFieldCodeDescription
NoLTMVendInvoiceJourEntity
ListField09Description text for the ninth reference code.String (60)
LTMListFieldCodeDescription
NoLTMVendInvoiceJourEntity
ListField10Description text for the tenth reference code.String (60)
LTMListFieldCodeDescription
NoLTMVendInvoiceJourEntity
ListFieldCode01First reference code.String (30)
LTMListFieldCode
NoLTMVendInvoiceJourEntity
ListFieldCode02Second reference code.String (30)
LTMListFieldCode
NoLTMVendInvoiceJourEntity
ListFieldCode03Third reference code.String (30)
LTMListFieldCode
NoLTMVendInvoiceJourEntity
ListFieldCode04Fourth reference code.String (30)
LTMListFieldCode
NoLTMVendInvoiceJourEntity
ListFieldCode05Fifth reference code.String (30)
LTMListFieldCode
NoLTMVendInvoiceJourEntity
ListFieldCode06Sixth reference code.String (30)
LTMListFieldCode
NoLTMVendInvoiceJourEntity
ListFieldCode07Seventh reference code.String (30)
LTMListFieldCode
NoLTMVendInvoiceJourEntity
ListFieldCode08Eighth reference code.String (30)
LTMListFieldCode
NoLTMVendInvoiceJourEntity
ListFieldCode09Ninth reference code.String (30)
LTMListFieldCode
NoLTMVendInvoiceJourEntity
ListFieldCode10Tenth reference code.String (30)
LTMListFieldCode
NoLTMVendInvoiceJourEntity
NameName of the party on the document.String (60)
Name
NoLTMVendInvoiceJourEntity
OrigRecIdSystem record ID of the original record.Int64
RecId
NoNone
OrigTableIdID of the table that the original record belongs to.Integer
RefTableId
NoNone
ParmIdParameter ID linked to the purchase order update table.String (20)
ParmId
NoLTMVendInvoiceJourEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymTermIdTerms of payment code.String (100)
PaymTermId
NoNone
PreserveNumYes or No flag for preserving the number. Meaning is not stated further.low confidenceEnum
NoYes (enum)
NoNone
PSEnableYes or No flag for showing packing slip information.Enum
NoYes (enum)
NoNone
PurchaseTypeKind of purchase: journal, purchase order or returned order.Enum
PurchaseType (enum)
NoNone
PurchIdPurchase order number related to the invoice.String (20)
PurchId
NoLTMVendInvoiceJourEntity
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
SalesPointIdSales point whose prefix is used in the document numbering. Points to a sales point record.String
LTMSalesPointId
NoLTMSalesPoint.SalesPointIdLTMVendInvoiceJourEntity
SalesPointPrefixPrefix text of the sales point.String
LTMSalesPointPrefix
NoLTMVendInvoiceJourEntity
ShiftIDIdentifier of the shift.String (20)
LTMShiftID
NoNone
StateDocNumIdentification number issued at state level.String (30)
LTMStateDocNum
NoLTMVendInvoiceJourEntity
StateDocTypeIdCode for the type of state-level identification document. Points to a fiscal register record.String (15)
LTMDocTypeId
NoLTMFiscalRegisterV2.DocTypeIdLTMVendInvoiceJourEntity
StateIdRegistered state or jurisdiction. Together with the country or region, points to a state record.String
LogisticsAddressStateId
NoLogisticsAddressState.StateIdLTMVendInvoiceJourEntity
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxPayerTypeIdTaxpayer type of the document issuer. Points to a taxpayer type record.String (15)
LTMTaxPayerTypeId
NoLTMTaxPayerType.TaxPayerTypeIdLTMVendInvoiceJourEntity
WithholdAccruedAmountMSTCumulative amount, in company currency, used for withholding.Real
Amount
NoNone
WithholdAccruedBaseMSTCumulative tax base amount, in company currency, used for withholding.Real
Amount
NoNone
WithholdingBaseMSTTaxable amount for withholding, in company currency.Real
LTMWithholdingAmount
NoNone
WithholdingEffectiveRateEffective withholding tax rate.Real
LTMEffectiveTaxRate
NoNone
WithholdingSetIDWithholding tax group for the document.String (30)
LTMWithholdingSetID
NoLTMVendInvoiceJourEntity

Indexes (2)

Relations (8)

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

  • LTMCountryFiscalRegister → LTMFiscalRegisterV2

    Join on LTMFiscalRegisterV2.CountryDocType = NoYes::Yes, CountryDocTypeId = LTMFiscalRegisterV2.DocTypeId

    Many LTMVendInvoiceJour records → zero or one LTMFiscalRegisterV2 record

  • LTMSalesPoint → LTMSalesPoint

    Join on SalesPointId = LTMSalesPoint.SalesPointId

    Many LTMVendInvoiceJour records → zero or one LTMSalesPoint record

  • LTMStateFiscalRegister → LTMFiscalRegisterV2

    Join on LTMFiscalRegisterV2.StateDocType = NoYes::Yes, StateDocTypeId = LTMFiscalRegisterV2.DocTypeId

    Many LTMVendInvoiceJour records → zero or one LTMFiscalRegisterV2 record

  • LTMTaxPayerType → LTMTaxPayerType

    Join on TaxPayerTypeId = LTMTaxPayerType.TaxPayerTypeId

    Many LTMVendInvoiceJour records → zero or one LTMTaxPayerType record

  • LTMDocumentClassification → LTMDocumentClassification

    Join on DocumentClassificationId = LTMDocumentClassification.DocumentClassificationId

    Many LTMVendInvoiceJour records → zero or one LTMDocumentClassification record

  • LogisticsAddressState → LogisticsAddressState

    Join on StateId = LogisticsAddressState.StateId, CountryRegionId = LogisticsAddressState.CountryRegionId

    Many LTMVendInvoiceJour records → zero or one LogisticsAddressState record

  • PurchParmTable → PurchParmTable

    Join on ParmId = PurchParmTable.ParmId, PurchId = PurchParmTable.PurchId

    Many LTMVendInvoiceJour records → zero or one PurchParmTable record

  • VendInvoiceJour → VendInvoiceJour

    Join on RefRecId = VendInvoiceJour.RecId

    Many LTMVendInvoiceJour records → zero or one VendInvoiceJour record

Get this data out

Tables are not exposed directly. These public entities read from LTMVendInvoiceJour; use one of them in Power BI, Power Platform or a data management project.

Need help with LTMVendInvoiceJour in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk