Table

MarkupTransHistory

Charges transactions history

Keeps a history of charges transactions, with validity dates (ValidFrom and ValidTo). Each row records a charge on a source record, with its code, category, value and amounts. It also has tax fields and several fields used for specific countries.

Table name
MarkupTransHistory
Module
Procurement and sourcing
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
Markup
Primary index
RecId
Replacement key
TableRecIdIdx
Key fields
TransRecId, TransTableId, LineNum, ValidTo, ValidFrom
Model
Foundation

Fields (77)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
TransRecIdRecord ID of the source record that carries the charge. Part of the key.Int64
MarkupTransRefRecId
NoMarkupTrans.TransRecIdNone
TransTableIdID of the table that holds the source record for the charge. Part of the key.Integer
MarkupTransRefTableId
NoMarkupTrans.TransTableIdNone
LineNumLine number of the charges transaction in the history key.Real
LineNum
NoMarkupTrans.LineNumNone
ValidToDate and time until which this history row is valid.UtcDateTime
ValidToDateTime
YesNone
ValidFromDate and time from which this history row is valid.UtcDateTime
ValidFromDateTime
YesNone
BankLCImportChargeAllocation_SAPoints to a letter of credit charge allocation record. Used for Saudi Arabia.Int64
BankLCImportChargeAllocationRefRecId_SA
NoBankLCImportChargeAllocation_SA.RecIdNone
CalculatedAmountCalculated charge value, in transaction currency.Real
AmountCur
NoNone
CalculatedAmountMST_WCharge amount in accounting currency.Real
AmountMST
NoNone
CorrectedMarkupTransPoints to another history row that this row corrects.Int64
RefRecId
NoMarkupTransHistory.RecIdNone
CurrencyCodeCurrency code of the charge.String (3)
CurrencyCode
YesCurrency.CurrencyCodeNone
CustInvoiceLineIdRefPoints to a customer transaction line identifier.Int64
CustInvoiceLineIdRefRecId
NoCustInvoiceLineIdRef.RecIdNone
CustInvoiceLineTemplatePoints to a free text invoice template line.Int64
RefRecId
NoCustInvoiceLineTemplate.RecIdNone
CustomsAssessableValue_INYes/No flag for assessable value in customs. Used for India.Enum
NoYesId
NoYes (enum)
NoNone
CustVendPosted_RUPosted amount for the counteragent. Used for Russia.low confidenceReal
AmountCur
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DocumentStatusStatus of the document the charge relates to, such as quotation, confirmation or invoice.Enum
DocumentStatus (enum)
NoNone
ExchRate_RUExchange rate value. Used for Russia.Real
ExchRate
NoNone
ExchrateSecond_RUSecondary exchange rate value. Used for Russia.Real
ExchrateSecondary
NoNone
FacturedAmount_RUFactured amount. Used for Russia.low confidenceReal
FacturedAmount_RU
NoNone
FromAmountLower limit of the amount range for the charge.Real
MarkupFromAmount
NoNone
GoodsInRouteId_RUPoints to a journal of passing of property. Used for Russia.String (20)
GoodsInRouteId_RU
NoGoodsInRouteJour_RU.GoodsInRouteIdNone
GoodsInRouteToDelivery_RUYes/No flag showing that passing of property is not registered. Used for Russia.Enum
GoodsInRouteToDelivery_RU
NoYes (enum)
NoNone
InterCompanyCompanyIdCompany that owns the related intercompany charges record.String
InterCompanyCompanyId
NoMarkupTrans.dataAreaIdNone
InterCompanyInvoiceIdIntercompany invoice number.String (50)
InterCompanyInvoiceId
NoNone
InterCompanyMarkupUseValueYes/No flag for use of an intercompany charge value.Enum
InterCompanyMarkupUseValue
NoYes (enum)
NoNone
InterCompanyMarkupValueIntercompany charge value.Real
InterCompanyMarkupValue
NoNone
InterCompanyRefRecIdPoints to the related intercompany charges transaction.Int64
RefRecId
NoMarkupTrans.RecIdNone
InterCompanySkipUpdateYes/No flag for intercompany. Its exact effect is not stated in the metadata.low confidenceEnum
TradeSkipUpdate
NoYes (enum)
NoNone
IsCompoundYes/No flag for a compound charge, which builds on earlier header charges.Enum
MarkupIsCompound
NoYes (enum)
NoNone
ItemPosted_RUPosted amount for the item. Used for Russia.low confidenceReal
AmountCur
NoNone
KeepYes/No flag that marks whether the charge is kept.Enum
MarkupKeep
NoYes (enum)
NoNone
LoadOnInventoryAmount_INAmount loaded on inventory. Used for India.Real
Amount
NoNone
LoadOnInventoryPct_INPercentage loaded on inventory. Used for India.Real
LoadOnInventoryPct_IN
NoNone
MarkUpAllocateAfter_INBasis for allocating the charge, such as net amount, quantity, weight or volume. Used for India.Enum
MarkupAllocateAfter (enum)
NoNone
MarkupAutoTableRecIdPoints to the automatic charge record that created this charge.Int64
RetailMarkupAutoRecId
NoMarkupAutoTable.RecIdNone
MarkupCategoryType of charge, such as fixed, percent, per piece or intercompany percent.Enum
MarkupCategoryType
MarkupCategory (enum)
NoNone
MarkupClassification_BRClassification of the charge, such as freight, insurance or Siscomex. Used for Brazil.Enum
MarkupClassification_BR (enum)
NoNone
MarkupCodeCharges code. It points to the charges code record.String
MarkupCode
YesMarkupTable.MarkupCodeNone
MarkupTaxChargePacked list of sales tax codes included in the charge value base.Container
MarkupTaxChargePacked
NoNone
ModuleCategoryShows whether the charge sits on the header or on a line.Enum
MarkupModuleCategory
HeadingLine (enum)
NoNone
ModuleTypeShows which area the charge belongs to: inventory, customer, vendor or delivery.Enum
MarkupModule
MarkupModuleType (enum)
NoMarkupTable.ModuleTypeNone
NotionalCharges_INYes/No flag for assessable value. Used for India.Enum
NoYesId
NoYes (enum)
NoNone
NotionalPct_INAssessable value percentage. Used for India.Real
NotionalPct_IN
NoNone
OrigRecIdRecord ID of the original source record.Int64
MarkupTransOrigRefRecId
NoNone
OrigTableIdID of the table of the original source record.Integer
MarkupTransOrigRefTableId
NoNone
OverrideSalesTaxYes/No flag that lets this charge override the sales tax set by tax calculation.Enum
TaxIntegrationOverrideSalesTax
NoYes (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PositionNumber showing the actual order in which header charges are worked out.Integer
MarkupPosition
NoNone
PostedPosted charge amount, in transaction currency.Real
AmountCur
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
SATProductCode_MXProduct classification code from the external code table. Used for Mexico.String
SATProductCode_MX
NoNone
SATUnitCode_MXUnit classification code from the external code table. Used for Mexico.String
SATUnitCode_MX
NoNone
SequenceNumber that sets the order in which header charges are worked out.Integer
MarkupSequence
NoNone
SourceDocumentLinePoints to a source document line record.Int64
RefRecId
NoSourceDocumentLine.RecIdNone
SpecificUnitSymbolUnit of measure symbol, used when the charge category is unit specific.String
MarkupSpecificUnitSymbol
NoUnitOfMeasure.SymbolNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxAmountSales tax amount on the charge.Real
TaxAmountCur
NoNone
TaxAmountExcise_RUExcise amount. Used for Russia.Real
TaxAmountExcise_RU
NoNone
TaxAmountExciseMST_RUExcise amount in accounting currency. Used for Russia.Real
TaxAmountExciseMST_RU
NoNone
TaxAmountMST_WSales tax amount in accounting currency.Real
TaxAmount
NoNone
TaxAmountVAT_RUVAT amount. Used for Russia.Real
TaxAmountVAT_RU
NoNone
TaxAmountVATMST_RUVAT amount in accounting currency. Used for Russia.Real
TaxAmountVATMST_RU
NoNone
TaxAutogeneratedYes/No flag that marks whether the tax was generated automatically.Enum
TaxAutoGenerated
NoYes (enum)
NoNone
TaxGroupSales tax group applied to the charge.String
TaxGroup
NoTaxGroupHeading.TaxGroupNone
TaxItemGroupItem sales tax group applied to the charge.String
TaxItemGroup
NoTaxItemGroupHeading.TaxItemGroupNone
TaxValueVAT_RUVAT rate value. Used for Russia.Real
TaxValueVAT_RU
NoNone
TaxVATType_RUVAT type, such as not liable, 0%, 10% or 20%. Used for Russia.Enum
VATType_RU (enum)
NoNone
TaxWriteCodePrint code for the tax.String
TaxWriteCode
NoNone
ToAmountUpper limit of the amount range for the charge.Real
MarkupToAmount
NoNone
TransDateDate of the transaction.Date
TransDate
NoNone
TxtShort text describing the transaction.String (60)
TransTxt
NoNone
ValueValue of the charge. How to read it depends on the charge category.Real
MarkupValue
NoNone
VATDocumentType_RUVAT document type for the purchase book invoice. Used for Russia.Enum
PurchBookVATDocumentType_Invoice_RU (enum)
NoNone
VoucherVoucher number linked to the transaction.String (20)
Voucher
NoNone
WithholdingTypeCode_MXCode for the type of withholding. Used for Mexico.String (5)
CFDIWithholdingTypeCode_MX
NoNone

Indexes (1)

Relations (45)

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

  • BankLCImportChargeAllocation_SA → BankLCImportChargeAllocation_SA

    Join on BankLCImportChargeAllocation_SA = BankLCImportChargeAllocation_SA.RecId

    Many MarkupTransHistory records → zero or one BankLCImportChargeAllocation_SA record

  • Common → Common

    Join on TransTableId = Common.TableId, TransRecId = Common.RecId

    Cardinality not set in the metadata.

  • CommonOrig → Common

    Join on OrigTableId = Common.TableId, OrigRecId = Common.RecId

    Cardinality not set in the metadata.

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many MarkupTransHistory records → exactly one Currency record

  • CustInvoice4PaymJour_RU → CustInvoice4PaymJour_RU

    Join on TransTableId = CustInvoice4PaymJour_RU.TableId, TransRecId = CustInvoice4PaymJour_RU.RecId

    Many MarkupTransHistory records → zero or one CustInvoice4PaymJour_RU record

  • CustInvoice4PaymTrans_RU → CustInvoice4PaymTrans_RU

    Join on TransTableId = CustInvoice4PaymTrans_RU.TableId, TransRecId = CustInvoice4PaymTrans_RU.RecId

    Many MarkupTransHistory records → zero or one CustInvoice4PaymTrans_RU record

  • CustInvoiceJour → CustInvoiceJour

    Join on TransTableId = CustInvoiceJour.TableId, TransRecId = CustInvoiceJour.RecId

    Many MarkupTransHistory records → zero or one CustInvoiceJour record

  • CustInvoiceLineIdRef → CustInvoiceLineIdRef

    Join on CustInvoiceLineIdRef = CustInvoiceLineIdRef.RecId

    Many MarkupTransHistory records → zero or one CustInvoiceLineIdRef record

  • CustInvoiceLineTemplate → CustInvoiceLineTemplate

    Join on CustInvoiceLineTemplate = CustInvoiceLineTemplate.RecId

    Many MarkupTransHistory records → zero or one CustInvoiceLineTemplate record

  • CustInvoiceTable → CustInvoiceTable

    Join on TransTableId = CustInvoiceTable.TableId, TransRecId = CustInvoiceTable.RecId

    Many MarkupTransHistory records → zero or one CustInvoiceTable record

  • CustInvoiceTrans → CustInvoiceTrans

    Join on TransTableId = CustInvoiceTrans.TableId, TransRecId = CustInvoiceTrans.RecId

    Many MarkupTransHistory records → zero or one CustInvoiceTrans record

  • GoodsInRouteJour_RU → GoodsInRouteJour_RU

    Join on GoodsInRouteId_RU = GoodsInRouteJour_RU.GoodsInRouteId

    Many MarkupTransHistory records → exactly one GoodsInRouteJour_RU record

  • InterCompanyDataArea → DataArea

    Join on InterCompanyCompanyId = DataArea.id, DataArea.isVirtual = null

    Many MarkupTransHistory records → zero or one DataArea record

  • InterCompanyMarkupTrans → MarkupTrans

    Join on InterCompanyCompanyId = MarkupTrans.dataAreaId, InterCompanyRefRecId = MarkupTrans.RecId

    Many MarkupTransHistory records → zero or one MarkupTrans record

  • MarkupTable → MarkupTable

    Join on MarkupCode = MarkupTable.MarkupCode, ModuleType = MarkupTable.ModuleType

    Many MarkupTransHistory records → zero or one MarkupTable record

  • MarkupTrans → MarkupTrans

    Join on LineNum = MarkupTrans.LineNum, TransTableId = MarkupTrans.TransTableId, TransRecId = MarkupTrans.TransRecId

    Many MarkupTransHistory records → zero or one MarkupTrans record

  • MarkupTrans_Corrected → MarkupTransHistory

    Join on CorrectedMarkupTrans = MarkupTransHistory.RecId

    Many MarkupTransHistory records → zero or one MarkupTransHistory record

  • PurchLine → PurchLine

    Join on TransTableId = PurchLine.TableId, TransRecId = PurchLine.RecId

    Many MarkupTransHistory records → zero or one PurchLine record

  • PurchLineOrig → PurchLine

    Join on OrigTableId = PurchLine.TableId, OrigRecId = PurchLine.RecId

    Many MarkupTransHistory records → zero or one PurchLine record

  • PurchParmLine → PurchParmLine

    Join on TransTableId = PurchParmLine.TableId, TransRecId = PurchParmLine.RecId

    Many MarkupTransHistory records → zero or one PurchParmLine record

  • PurchParmSubTable → PurchParmSubTable

    Join on TransTableId = PurchParmSubTable.TableId, TransRecId = PurchParmSubTable.RecId

    Many MarkupTransHistory records → zero or one PurchParmSubTable record

  • PurchParmTable → PurchParmTable

    Join on TransTableId = PurchParmTable.TableId, TransRecId = PurchParmTable.RecId

    Many MarkupTransHistory records → zero or one PurchParmTable record

  • PurchReqLine → PurchReqLine

    Join on TransTableId = PurchReqLine.TableId, TransRecId = PurchReqLine.RecId

    Many MarkupTransHistory records → zero or one PurchReqLine record

  • PurchReqLineHistory → PurchReqLineHistory

    Join on TransRecId = PurchReqLineHistory.RecId, TransTableId = PurchReqLineHistory.TableId

    Many MarkupTransHistory records → zero or one PurchReqLineHistory record

  • PurchReqTableHistory → PurchReqTableHistory

    Join on TransRecId = PurchReqTableHistory.RecId, TransTableId = PurchReqTableHistory.TableId

    Many MarkupTransHistory records → zero or one PurchReqTableHistory record

  • PurchTable → PurchTable

    Join on TransTableId = PurchTable.TableId, TransRecId = PurchTable.RecId

    Many MarkupTransHistory records → zero or one PurchTable record

  • PurchTableOrig → PurchTable

    Join on OrigTableId = PurchTable.TableId, OrigRecId = PurchTable.RecId

    Many MarkupTransHistory records → zero or one PurchTable record

  • SalesLine → SalesLine

    Join on TransTableId = SalesLine.TableId, TransRecId = SalesLine.RecId

    Many MarkupTransHistory records → zero or one SalesLine record

  • SalesLineOrig → SalesLine

    Join on OrigTableId = SalesLine.TableId, OrigRecId = SalesLine.RecId

    Many MarkupTransHistory records → zero or one SalesLine record

  • SalesQuotationLine → SalesQuotationLine

    Join on TransTableId = SalesQuotationLine.TableId, TransRecId = SalesQuotationLine.RecId

    Many MarkupTransHistory records → zero or one SalesQuotationLine record

  • SalesQuotationTable → SalesQuotationTable

    Join on TransTableId = SalesQuotationTable.TableId, TransRecId = SalesQuotationTable.RecId

    Many MarkupTransHistory records → zero or one SalesQuotationTable record

  • SalesTable → SalesTable

    Join on TransTableId = SalesTable.TableId, TransRecId = SalesTable.RecId

    Many MarkupTransHistory records → zero or one SalesTable record

  • SalesTableOrig → SalesTable

    Join on OrigTableId = SalesTable.TableId, OrigRecId = SalesTable.RecId

    Many MarkupTransHistory records → zero or one SalesTable record

  • SourceDocumentLine → SourceDocumentLine

    Join on SourceDocumentLine = SourceDocumentLine.RecId

    Many MarkupTransHistory records → zero or one SourceDocumentLine record

  • TaxGroupHeading → TaxGroupHeading

    Join on TaxGroup = TaxGroupHeading.TaxGroup

    Many MarkupTransHistory records → zero or one TaxGroupHeading record

  • TaxItemGroupHeading → TaxItemGroupHeading

    Join on TaxItemGroup = TaxItemGroupHeading.TaxItemGroup

    Many MarkupTransHistory records → zero or one TaxItemGroupHeading record

  • VendInvoice4PaymJour_RU → VendInvoice4PaymJour_RU

    Join on TransTableId = VendInvoice4PaymJour_RU.TableId, TransRecId = VendInvoice4PaymJour_RU.RecId

    Many MarkupTransHistory records → zero or one VendInvoice4PaymJour_RU record

  • VendInvoice4PaymTrans_RU → VendInvoice4PaymTrans_RU

    Join on TransTableId = VendInvoice4PaymTrans_RU.TableId, TransRecId = VendInvoice4PaymTrans_RU.RecId

    Many MarkupTransHistory records → zero or one VendInvoice4PaymTrans_RU record

  • VendInvoiceInfoLine → VendInvoiceInfoLine

    Join on TransTableId = VendInvoiceInfoLine.TableId, TransRecId = VendInvoiceInfoLine.RecId

    Many MarkupTransHistory records → zero or one VendInvoiceInfoLine record

  • VendInvoiceInfoSubTable → VendInvoiceInfoSubTable

    Join on TransRecId = VendInvoiceInfoSubTable.RecId, TransTableId = VendInvoiceInfoSubTable.TableId

    Many MarkupTransHistory records → zero or one VendInvoiceInfoSubTable record

  • VendInvoiceInfoTable → VendInvoiceInfoTable

    Join on TransTableId = VendInvoiceInfoTable.TableId, TransRecId = VendInvoiceInfoTable.RecId

    Many MarkupTransHistory records → zero or one VendInvoiceInfoTable record

  • SATProductCode_MX → EInvoiceExtCodeTable_MX

    Join on SATProductCode_MX = EInvoiceExtCodeTable_MX.CodeId, EInvoiceExtCodeTable_MX.CodeType = 1

    Exactly one MarkupTransHistory record → exactly one EInvoiceExtCodeTable_MX record

  • SATUnitCode_MX → EInvoiceExtCodeTable_MX

    Join on SATUnitCode_MX = EInvoiceExtCodeTable_MX.CodeId, EInvoiceExtCodeTable_MX.CodeType = 2

    Exactly one MarkupTransHistory record → exactly one EInvoiceExtCodeTable_MX record

  • MarkupAutoTable → MarkupAutoTable

    Join on MarkupAutoTableRecId = MarkupAutoTable.RecId

    Many MarkupTransHistory records → zero or one MarkupAutoTable record

  • SpecificUnit → UnitOfMeasure

    Join on SpecificUnitSymbol = UnitOfMeasure.Symbol

    Many MarkupTransHistory records → zero or one UnitOfMeasure record

Get this data out

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

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

Email sales@drdynamics.co.uk