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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CashRegisterTerminalPoints to the cash register terminal record linked to the journal line. | Int64CashRegisterTerminalRecId_W | No | CashRegisterTerminal_W.RecId | None |
CategoryPurposePoints to the payment format code chosen as the category purpose. | Int64CategoryPurposeRecId_W | No | PaymentFormatCodeSets_W.RecId | None |
CFDIBeneficiaryRetains_MXYes/No flag showing whether the payment beneficiary is the one who retains the tax; used for Mexico. | EnumCFDIBeneficiaryRetains_MXNoYes (enum) | No | None | |
CFDIFinancialSystem_MXYes/No flag for the financial system setting in CFDI withholding; used for Mexico. | EnumCFDIFinancialSystem_MXNoYes (enum) | No | None | |
CFDIInterestBelongsDerivedFinOp_MXYes/No flag showing whether the interest relates to derived financial operations; used for Mexico. | EnumCFDIInterestBelongsDerivedFinOp_MXNoYes (enum) | No | None | |
CFDIInterestCashedInTheCurrentPeriod_MXYes/No flag showing whether the interest was cashed in the current period; used for Mexico. | EnumCFDIInterestCashedInTheCurrentPeriod_MXNoYes (enum) | No | None | |
CFDIInterestLossAmount_MXAmount of interest loss reported on the CFDI; used for Mexico. | RealCFDIInterestLossAmount_MX | No | None | |
CFDIInterestNominalAmount_MXNominal interest amount reported on the CFDI; used for Mexico. | RealCFDIInterestNominalAmount_MX | No | None | |
CFDIInterestRealAmount_MXReal interest amount reported on the CFDI; used for Mexico. | RealCFDIInterestRealAmount_MX | No | None | |
ChargeBearerPoints to the payment format code chosen as the charge bearer. | Int64ChargeBearerRecId_W | No | PaymentFormatCodeSets_W.RecId | None |
CustomerDeliveryAddressPoints to the postal address where the customer receives delivery. | Int64LogisticsPostalAddressRecId | No | LogisticsPostalAddress.RecId | None |
CustomerDeliveryAddressNameName given to the customer's delivery address. | String (160)CustName | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
EPaymCFDIConfirmNumber_MXFive-character confirmation number returned by the certification provider for a CFDI; used for Mexico. | String (5)EInvoiceCFDIConfirmNumber_MX | No | None | |
EstablishmentPoints to the operating unit that acts as the establishment within the legal entity for this record. | Int64EstablishmentRefRecId | No | OMOperatingUnit.RecId | None |
LedgerJournalTransPoints to the ledger journal line history record that this row extends. | Int64LedgerJournalTransRefRecId | Yes | LedgerJournalTransHistory.RecId | None |
LocalInstrumentPoints to the payment format code chosen as the local instrument. | Int64LocalInstrumentRecId_W | No | PaymentFormatCodeSets_W.RecId | None |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
OrigPaymRefRecId_RUSystem record ID of the original prepayment, related to customer transactions; used for Russia. | Int64RefRecId | No | None | |
OrigPaymRefTableId_RUID of the table that the original prepayment reference points to; used for Russia. | IntegerRefTableId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PSPrefixTRSerial prefix, a set of leading characters that marks the document type; links to the e-invoice serial table. | StringPSPrefixTR | No | 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 | |
RefPurchInvoiceDate_INDate of the referenced purchase invoice; used for India. | DateTransDate | No | None | |
RefPurchInvoiceId_INNumber of the referenced purchase invoice; used for India. | String (50)InvoiceId | No | None | |
RefSalesInvoiceDate_INDate of the referenced sales invoice; used for India. | DateTransDate | No | None | |
RefSalesInvoiceId_INNumber of the referenced sales invoice; used for India. | String (50)InvoiceId | No | None | |
ServiceLevelPoints to the payment format code chosen as the service level. | Int64ServiceLevelRecId_W | No | PaymentFormatCodeSets_W.RecId | None |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
VendorShipFromAddressPoints to the postal address the vendor ships from. | Int64LogisticsPostalAddressRecId | No | LogisticsPostalAddress.RecId | None |
VendorShipFromAddressNameName given to the vendor's ship-from address. | String (160)VendName | No | None | |
WithholdingTypeCode_MXCode of the withholding type, pointing to the CFDI withholding type record; used for Mexico. | String (5)CFDIWithholdingTypeCode_MX | No | CFDIWithholdingType_MX.Code | None |
Indexes (1)
TransIdxUnique, alternate key.
Relations (14)
Each relation joins LedgerJournalTransHistory_W to another table on the fields shown.
LedgerJournalTrans→LedgerJournalTransHistoryJoin on
LedgerJournalTrans = LedgerJournalTransHistory.RecIdZero or one LedgerJournalTransHistory_W record → exactly one LedgerJournalTransHistory record
PaymentFormatCodeSets_CategoryPurpose→PaymentFormatCodeSets_WJoin on
PaymentFormatCodeSets_W.Type = PaymentFormatCodeType_W::CategoryPurpose,CategoryPurpose = PaymentFormatCodeSets_W.RecIdMany LedgerJournalTransHistory_W records → zero or one PaymentFormatCodeSets_W record
PaymentFormatCodeSets_ChargeBearer→PaymentFormatCodeSets_WJoin on
PaymentFormatCodeSets_W.Type = PaymentFormatCodeType_W::ChargeBearer,ChargeBearer = PaymentFormatCodeSets_W.RecIdMany LedgerJournalTransHistory_W records → zero or one PaymentFormatCodeSets_W record
PaymentFormatCodeSets_LocalInstrument→PaymentFormatCodeSets_WJoin on
PaymentFormatCodeSets_W.Type = PaymentFormatCodeType_W::LocalInstrument,LocalInstrument = PaymentFormatCodeSets_W.RecIdMany LedgerJournalTransHistory_W records → zero or one PaymentFormatCodeSets_W record
PaymentFormatCodeSets_ServiceLevel→PaymentFormatCodeSets_WJoin on
PaymentFormatCodeSets_W.Type = PaymentFormatCodeType_W::ServiceLevel,ServiceLevel = PaymentFormatCodeSets_W.RecIdMany LedgerJournalTransHistory_W records → zero or one PaymentFormatCodeSets_W record
CashRegisterTerminal_W→CashRegisterTerminal_WJoin on
CashRegisterTerminal = CashRegisterTerminal_W.RecIdMany LedgerJournalTransHistory_W records → zero or one CashRegisterTerminal_W record
CFDIWithholdingType_MX→CFDIWithholdingType_MXJoin on
WithholdingTypeCode_MX = CFDIWithholdingType_MX.CodeMany LedgerJournalTransHistory_W records → zero or one CFDIWithholdingType_MX record
CustTrans→CustTransJoin on
OrigPaymRefTableId_RU = CustTrans.TableId,OrigPaymRefRecId_RU = CustTrans.RecIdZero or one LedgerJournalTransHistory_W record → zero or one CustTrans record
VendTrans→VendTransJoin on
OrigPaymRefTableId_RU = VendTrans.TableId,OrigPaymRefRecId_RU = VendTrans.RecIdZero or one LedgerJournalTransHistory_W record → zero or one VendTrans record
PSSerialTableTR→PSSerialTableTRJoin on
PSPrefixTR = PSSerialTableTR.PrefixMany LedgerJournalTransHistory_W records → zero or one PSSerialTableTR record
VendorShipFromAddress_FK→LogisticsPostalAddressJoin on
VendorShipFromAddress = LogisticsPostalAddress.RecIdMany LedgerJournalTransHistory_W records → zero or one LogisticsPostalAddress record
Establishment→OMOperatingUnitJoin on
Establishment = OMOperatingUnit.RecIdMany LedgerJournalTransHistory_W records → zero or one OMOperatingUnit record
Establishment_FK→OMOperatingUnitJoin on
Establishment = OMOperatingUnit.RecIdCardinality not set in the metadata.
CustomerDeliveryAddress_FK→LogisticsPostalAddressJoin on
CustomerDeliveryAddress = LogisticsPostalAddress.RecIdMany 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.