Table

LedgerJournalTransHistory_W

LedgerJournalTrans_W history data.

Holds history copies of extra journal line data, linked to a ledger journal line history record. It has no defined key. It stores payment format codes, a cash register terminal, addresses and an establishment. It also stores country-specific tax details used for Mexico, India and Russia, and a Turkish serial prefix.

Table name
LedgerJournalTransHistory_W
Module
General ledger
Table group
WorksheetLine
Table type
Regular
Data per company
Yes
Configuration key
LedgerBasic
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (33)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CashRegisterTerminalPoints to the cash register terminal record linked to the journal line.Int64
CashRegisterTerminalRecId_W
NoCashRegisterTerminal_W.RecIdNone
CategoryPurposePoints to the payment format code chosen as the category purpose.Int64
CategoryPurposeRecId_W
NoPaymentFormatCodeSets_W.RecIdNone
CFDIBeneficiaryRetains_MXYes/No flag showing whether the payment beneficiary is the one who retains the tax; used for Mexico.Enum
CFDIBeneficiaryRetains_MX
NoYes (enum)
NoNone
CFDIFinancialSystem_MXYes/No flag for the financial system setting in CFDI withholding; used for Mexico.Enum
CFDIFinancialSystem_MX
NoYes (enum)
NoNone
CFDIInterestBelongsDerivedFinOp_MXYes/No flag showing whether the interest relates to derived financial operations; used for Mexico.Enum
CFDIInterestBelongsDerivedFinOp_MX
NoYes (enum)
NoNone
CFDIInterestCashedInTheCurrentPeriod_MXYes/No flag showing whether the interest was cashed in the current period; used for Mexico.Enum
CFDIInterestCashedInTheCurrentPeriod_MX
NoYes (enum)
NoNone
CFDIInterestLossAmount_MXAmount of interest loss reported on the CFDI; used for Mexico.Real
CFDIInterestLossAmount_MX
NoNone
CFDIInterestNominalAmount_MXNominal interest amount reported on the CFDI; used for Mexico.Real
CFDIInterestNominalAmount_MX
NoNone
CFDIInterestRealAmount_MXReal interest amount reported on the CFDI; used for Mexico.Real
CFDIInterestRealAmount_MX
NoNone
ChargeBearerPoints to the payment format code chosen as the charge bearer.Int64
ChargeBearerRecId_W
NoPaymentFormatCodeSets_W.RecIdNone
CustomerDeliveryAddressPoints to the postal address where the customer receives delivery.Int64
LogisticsPostalAddressRecId
NoLogisticsPostalAddress.RecIdNone
CustomerDeliveryAddressNameName given to the customer's delivery address.String (160)
CustName
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
EPaymCFDIConfirmNumber_MXFive-character confirmation number returned by the certification provider for a CFDI; used for Mexico.String (5)
EInvoiceCFDIConfirmNumber_MX
NoNone
EstablishmentPoints to the operating unit that acts as the establishment within the legal entity for this record.Int64
EstablishmentRefRecId
NoOMOperatingUnit.RecIdNone
LedgerJournalTransPoints to the ledger journal line history record that this row extends.Int64
LedgerJournalTransRefRecId
YesLedgerJournalTransHistory.RecIdNone
LocalInstrumentPoints to the payment format code chosen as the local instrument.Int64
LocalInstrumentRecId_W
NoPaymentFormatCodeSets_W.RecIdNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
OrigPaymRefRecId_RUSystem record ID of the original prepayment, related to customer transactions; used for Russia.Int64
RefRecId
NoNone
OrigPaymRefTableId_RUID of the table that the original prepayment reference points to; used for Russia.Integer
RefTableId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PSPrefixTRSerial prefix, a set of leading characters that marks the document type; links to the e-invoice serial table.String
PSPrefixTR
NoNone
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
RefPurchInvoiceDate_INDate of the referenced purchase invoice; used for India.Date
TransDate
NoNone
RefPurchInvoiceId_INNumber of the referenced purchase invoice; used for India.String (50)
InvoiceId
NoNone
RefSalesInvoiceDate_INDate of the referenced sales invoice; used for India.Date
TransDate
NoNone
RefSalesInvoiceId_INNumber of the referenced sales invoice; used for India.String (50)
InvoiceId
NoNone
ServiceLevelPoints to the payment format code chosen as the service level.Int64
ServiceLevelRecId_W
NoPaymentFormatCodeSets_W.RecIdNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
VendorShipFromAddressPoints to the postal address the vendor ships from.Int64
LogisticsPostalAddressRecId
NoLogisticsPostalAddress.RecIdNone
VendorShipFromAddressNameName given to the vendor's ship-from address.String (160)
VendName
NoNone
WithholdingTypeCode_MXCode of the withholding type, pointing to the CFDI withholding type record; used for Mexico.String (5)
CFDIWithholdingTypeCode_MX
NoCFDIWithholdingType_MX.CodeNone

Indexes (1)

Relations (14)

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

  • LedgerJournalTrans → LedgerJournalTransHistory

    Join on LedgerJournalTrans = LedgerJournalTransHistory.RecId

    Zero or one LedgerJournalTransHistory_W record → exactly one LedgerJournalTransHistory record

  • PaymentFormatCodeSets_CategoryPurpose → PaymentFormatCodeSets_W

    Join on PaymentFormatCodeSets_W.Type = PaymentFormatCodeType_W::CategoryPurpose, CategoryPurpose = PaymentFormatCodeSets_W.RecId

    Many LedgerJournalTransHistory_W records → zero or one PaymentFormatCodeSets_W record

  • PaymentFormatCodeSets_ChargeBearer → PaymentFormatCodeSets_W

    Join on PaymentFormatCodeSets_W.Type = PaymentFormatCodeType_W::ChargeBearer, ChargeBearer = PaymentFormatCodeSets_W.RecId

    Many LedgerJournalTransHistory_W records → zero or one PaymentFormatCodeSets_W record

  • PaymentFormatCodeSets_LocalInstrument → PaymentFormatCodeSets_W

    Join on PaymentFormatCodeSets_W.Type = PaymentFormatCodeType_W::LocalInstrument, LocalInstrument = PaymentFormatCodeSets_W.RecId

    Many LedgerJournalTransHistory_W records → zero or one PaymentFormatCodeSets_W record

  • PaymentFormatCodeSets_ServiceLevel → PaymentFormatCodeSets_W

    Join on PaymentFormatCodeSets_W.Type = PaymentFormatCodeType_W::ServiceLevel, ServiceLevel = PaymentFormatCodeSets_W.RecId

    Many LedgerJournalTransHistory_W records → zero or one PaymentFormatCodeSets_W record

  • CashRegisterTerminal_W → CashRegisterTerminal_W

    Join on CashRegisterTerminal = CashRegisterTerminal_W.RecId

    Many LedgerJournalTransHistory_W records → zero or one CashRegisterTerminal_W record

  • CFDIWithholdingType_MX → CFDIWithholdingType_MX

    Join on WithholdingTypeCode_MX = CFDIWithholdingType_MX.Code

    Many LedgerJournalTransHistory_W records → zero or one CFDIWithholdingType_MX record

  • CustTrans → CustTrans

    Join on OrigPaymRefTableId_RU = CustTrans.TableId, OrigPaymRefRecId_RU = CustTrans.RecId

    Zero or one LedgerJournalTransHistory_W record → zero or one CustTrans record

  • VendTrans → VendTrans

    Join on OrigPaymRefTableId_RU = VendTrans.TableId, OrigPaymRefRecId_RU = VendTrans.RecId

    Zero or one LedgerJournalTransHistory_W record → zero or one VendTrans record

  • PSSerialTableTR → PSSerialTableTR

    Join on PSPrefixTR = PSSerialTableTR.Prefix

    Many LedgerJournalTransHistory_W records → zero or one PSSerialTableTR record

  • VendorShipFromAddress_FK → LogisticsPostalAddress

    Join on VendorShipFromAddress = LogisticsPostalAddress.RecId

    Many LedgerJournalTransHistory_W records → zero or one LogisticsPostalAddress record

  • Establishment → OMOperatingUnit

    Join on Establishment = OMOperatingUnit.RecId

    Many LedgerJournalTransHistory_W records → zero or one OMOperatingUnit record

  • Establishment_FK → OMOperatingUnit

    Join on Establishment = OMOperatingUnit.RecId

    Cardinality not set in the metadata.

  • CustomerDeliveryAddress_FK → LogisticsPostalAddress

    Join on CustomerDeliveryAddress = LogisticsPostalAddress.RecId

    Many LedgerJournalTransHistory_W records → zero or one LogisticsPostalAddress record

Get this data out

No public entity reads from LedgerJournalTransHistory_W. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk