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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
TransRecIdRecord ID of the source record that carries the charge. Part of the key. | Int64MarkupTransRefRecId | No | MarkupTrans.TransRecId | None |
TransTableIdID of the table that holds the source record for the charge. Part of the key. | IntegerMarkupTransRefTableId | No | MarkupTrans.TransTableId | None |
LineNumLine number of the charges transaction in the history key. | RealLineNum | No | MarkupTrans.LineNum | None |
ValidToDate and time until which this history row is valid. | UtcDateTimeValidToDateTime | Yes | None | |
ValidFromDate and time from which this history row is valid. | UtcDateTimeValidFromDateTime | Yes | None | |
BankLCImportChargeAllocation_SAPoints to a letter of credit charge allocation record. Used for Saudi Arabia. | Int64BankLCImportChargeAllocationRefRecId_SA | No | BankLCImportChargeAllocation_SA.RecId | None |
CalculatedAmountCalculated charge value, in transaction currency. | RealAmountCur | No | None | |
CalculatedAmountMST_WCharge amount in accounting currency. | RealAmountMST | No | None | |
CorrectedMarkupTransPoints to another history row that this row corrects. | Int64RefRecId | No | MarkupTransHistory.RecId | None |
CurrencyCodeCurrency code of the charge. | String (3)CurrencyCode | Yes | Currency.CurrencyCode | None |
CustInvoiceLineIdRefPoints to a customer transaction line identifier. | Int64CustInvoiceLineIdRefRecId | No | CustInvoiceLineIdRef.RecId | None |
CustInvoiceLineTemplatePoints to a free text invoice template line. | Int64RefRecId | No | CustInvoiceLineTemplate.RecId | None |
CustomsAssessableValue_INYes/No flag for assessable value in customs. Used for India. | EnumNoYesIdNoYes (enum) | No | None | |
CustVendPosted_RUPosted amount for the counteragent. Used for Russia.low confidence | RealAmountCur | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DocumentStatusStatus of the document the charge relates to, such as quotation, confirmation or invoice. | EnumDocumentStatus (enum) | No | None | |
ExchRate_RUExchange rate value. Used for Russia. | RealExchRate | No | None | |
ExchrateSecond_RUSecondary exchange rate value. Used for Russia. | RealExchrateSecondary | No | None | |
FacturedAmount_RUFactured amount. Used for Russia.low confidence | RealFacturedAmount_RU | No | None | |
FromAmountLower limit of the amount range for the charge. | RealMarkupFromAmount | No | None | |
GoodsInRouteId_RUPoints to a journal of passing of property. Used for Russia. | String (20)GoodsInRouteId_RU | No | GoodsInRouteJour_RU.GoodsInRouteId | None |
GoodsInRouteToDelivery_RUYes/No flag showing that passing of property is not registered. Used for Russia. | EnumGoodsInRouteToDelivery_RUNoYes (enum) | No | None | |
InterCompanyCompanyIdCompany that owns the related intercompany charges record. | StringInterCompanyCompanyId | No | MarkupTrans.dataAreaId | None |
InterCompanyInvoiceIdIntercompany invoice number. | String (50)InterCompanyInvoiceId | No | None | |
InterCompanyMarkupUseValueYes/No flag for use of an intercompany charge value. | EnumInterCompanyMarkupUseValueNoYes (enum) | No | None | |
InterCompanyMarkupValueIntercompany charge value. | RealInterCompanyMarkupValue | No | None | |
InterCompanyRefRecIdPoints to the related intercompany charges transaction. | Int64RefRecId | No | MarkupTrans.RecId | None |
InterCompanySkipUpdateYes/No flag for intercompany. Its exact effect is not stated in the metadata.low confidence | EnumTradeSkipUpdateNoYes (enum) | No | None | |
IsCompoundYes/No flag for a compound charge, which builds on earlier header charges. | EnumMarkupIsCompoundNoYes (enum) | No | None | |
ItemPosted_RUPosted amount for the item. Used for Russia.low confidence | RealAmountCur | No | None | |
KeepYes/No flag that marks whether the charge is kept. | EnumMarkupKeepNoYes (enum) | No | None | |
LoadOnInventoryAmount_INAmount loaded on inventory. Used for India. | RealAmount | No | None | |
LoadOnInventoryPct_INPercentage loaded on inventory. Used for India. | RealLoadOnInventoryPct_IN | No | None | |
MarkUpAllocateAfter_INBasis for allocating the charge, such as net amount, quantity, weight or volume. Used for India. | EnumMarkupAllocateAfter (enum) | No | None | |
MarkupAutoTableRecIdPoints to the automatic charge record that created this charge. | Int64RetailMarkupAutoRecId | No | MarkupAutoTable.RecId | None |
MarkupCategoryType of charge, such as fixed, percent, per piece or intercompany percent. | EnumMarkupCategoryTypeMarkupCategory (enum) | No | None | |
MarkupClassification_BRClassification of the charge, such as freight, insurance or Siscomex. Used for Brazil. | EnumMarkupClassification_BR (enum) | No | None | |
MarkupCodeCharges code. It points to the charges code record. | StringMarkupCode | Yes | MarkupTable.MarkupCode | None |
MarkupTaxChargePacked list of sales tax codes included in the charge value base. | ContainerMarkupTaxChargePacked | No | None | |
ModuleCategoryShows whether the charge sits on the header or on a line. | EnumMarkupModuleCategoryHeadingLine (enum) | No | None | |
ModuleTypeShows which area the charge belongs to: inventory, customer, vendor or delivery. | EnumMarkupModuleMarkupModuleType (enum) | No | MarkupTable.ModuleType | None |
NotionalCharges_INYes/No flag for assessable value. Used for India. | EnumNoYesIdNoYes (enum) | No | None | |
NotionalPct_INAssessable value percentage. Used for India. | RealNotionalPct_IN | No | None | |
OrigRecIdRecord ID of the original source record. | Int64MarkupTransOrigRefRecId | No | None | |
OrigTableIdID of the table of the original source record. | IntegerMarkupTransOrigRefTableId | No | None | |
OverrideSalesTaxYes/No flag that lets this charge override the sales tax set by tax calculation. | EnumTaxIntegrationOverrideSalesTaxNoYes (enum) | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PositionNumber showing the actual order in which header charges are worked out. | IntegerMarkupPosition | No | None | |
PostedPosted charge amount, in transaction currency. | RealAmountCur | 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 | |
SATProductCode_MXProduct classification code from the external code table. Used for Mexico. | StringSATProductCode_MX | No | None | |
SATUnitCode_MXUnit classification code from the external code table. Used for Mexico. | StringSATUnitCode_MX | No | None | |
SequenceNumber that sets the order in which header charges are worked out. | IntegerMarkupSequence | No | None | |
SourceDocumentLinePoints to a source document line record. | Int64RefRecId | No | SourceDocumentLine.RecId | None |
SpecificUnitSymbolUnit of measure symbol, used when the charge category is unit specific. | StringMarkupSpecificUnitSymbol | No | UnitOfMeasure.Symbol | None |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxAmountSales tax amount on the charge. | RealTaxAmountCur | No | None | |
TaxAmountExcise_RUExcise amount. Used for Russia. | RealTaxAmountExcise_RU | No | None | |
TaxAmountExciseMST_RUExcise amount in accounting currency. Used for Russia. | RealTaxAmountExciseMST_RU | No | None | |
TaxAmountMST_WSales tax amount in accounting currency. | RealTaxAmount | No | None | |
TaxAmountVAT_RUVAT amount. Used for Russia. | RealTaxAmountVAT_RU | No | None | |
TaxAmountVATMST_RUVAT amount in accounting currency. Used for Russia. | RealTaxAmountVATMST_RU | No | None | |
TaxAutogeneratedYes/No flag that marks whether the tax was generated automatically. | EnumTaxAutoGeneratedNoYes (enum) | No | None | |
TaxGroupSales tax group applied to the charge. | StringTaxGroup | No | TaxGroupHeading.TaxGroup | None |
TaxItemGroupItem sales tax group applied to the charge. | StringTaxItemGroup | No | TaxItemGroupHeading.TaxItemGroup | None |
TaxValueVAT_RUVAT rate value. Used for Russia. | RealTaxValueVAT_RU | No | None | |
TaxVATType_RUVAT type, such as not liable, 0%, 10% or 20%. Used for Russia. | EnumVATType_RU (enum) | No | None | |
TaxWriteCodePrint code for the tax. | StringTaxWriteCode | No | None | |
ToAmountUpper limit of the amount range for the charge. | RealMarkupToAmount | No | None | |
TransDateDate of the transaction. | DateTransDate | No | None | |
TxtShort text describing the transaction. | String (60)TransTxt | No | None | |
ValueValue of the charge. How to read it depends on the charge category. | RealMarkupValue | No | None | |
VATDocumentType_RUVAT document type for the purchase book invoice. Used for Russia. | EnumPurchBookVATDocumentType_Invoice_RU (enum) | No | None | |
VoucherVoucher number linked to the transaction. | String (20)Voucher | No | None | |
WithholdingTypeCode_MXCode for the type of withholding. Used for Mexico. | String (5)CFDIWithholdingTypeCode_MX | No | None |
Indexes (1)
TableRecIdIdxReplacement keyTransRecId,TransTableId,LineNum,ValidTo,ValidFromUnique, alternate key.
Relations (45)
Each relation joins MarkupTransHistory to another table on the fields shown.
BankLCImportChargeAllocation_SA→BankLCImportChargeAllocation_SAJoin on
BankLCImportChargeAllocation_SA = BankLCImportChargeAllocation_SA.RecIdMany MarkupTransHistory records → zero or one BankLCImportChargeAllocation_SA record
Common→CommonJoin on
TransTableId = Common.TableId,TransRecId = Common.RecIdCardinality not set in the metadata.
CommonOrig→CommonJoin on
OrigTableId = Common.TableId,OrigRecId = Common.RecIdCardinality not set in the metadata.
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany MarkupTransHistory records → exactly one Currency record
CustInvoice4PaymJour_RU→CustInvoice4PaymJour_RUJoin on
TransTableId = CustInvoice4PaymJour_RU.TableId,TransRecId = CustInvoice4PaymJour_RU.RecIdMany MarkupTransHistory records → zero or one CustInvoice4PaymJour_RU record
CustInvoice4PaymTrans_RU→CustInvoice4PaymTrans_RUJoin on
TransTableId = CustInvoice4PaymTrans_RU.TableId,TransRecId = CustInvoice4PaymTrans_RU.RecIdMany MarkupTransHistory records → zero or one CustInvoice4PaymTrans_RU record
CustInvoiceJour→CustInvoiceJourJoin on
TransTableId = CustInvoiceJour.TableId,TransRecId = CustInvoiceJour.RecIdMany MarkupTransHistory records → zero or one CustInvoiceJour record
CustInvoiceLineIdRef→CustInvoiceLineIdRefJoin on
CustInvoiceLineIdRef = CustInvoiceLineIdRef.RecIdMany MarkupTransHistory records → zero or one CustInvoiceLineIdRef record
CustInvoiceLineTemplate→CustInvoiceLineTemplateJoin on
CustInvoiceLineTemplate = CustInvoiceLineTemplate.RecIdMany MarkupTransHistory records → zero or one CustInvoiceLineTemplate record
CustInvoiceTable→CustInvoiceTableJoin on
TransTableId = CustInvoiceTable.TableId,TransRecId = CustInvoiceTable.RecIdMany MarkupTransHistory records → zero or one CustInvoiceTable record
CustInvoiceTrans→CustInvoiceTransJoin on
TransTableId = CustInvoiceTrans.TableId,TransRecId = CustInvoiceTrans.RecIdMany MarkupTransHistory records → zero or one CustInvoiceTrans record
GoodsInRouteJour_RU→GoodsInRouteJour_RUJoin on
GoodsInRouteId_RU = GoodsInRouteJour_RU.GoodsInRouteIdMany MarkupTransHistory records → exactly one GoodsInRouteJour_RU record
InterCompanyDataArea→DataAreaJoin on
InterCompanyCompanyId = DataArea.id,DataArea.isVirtual = nullMany MarkupTransHistory records → zero or one DataArea record
InterCompanyMarkupTrans→MarkupTransJoin on
InterCompanyCompanyId = MarkupTrans.dataAreaId,InterCompanyRefRecId = MarkupTrans.RecIdMany MarkupTransHistory records → zero or one MarkupTrans record
MarkupTable→MarkupTableJoin on
MarkupCode = MarkupTable.MarkupCode,ModuleType = MarkupTable.ModuleTypeMany MarkupTransHistory records → zero or one MarkupTable record
MarkupTrans→MarkupTransJoin on
LineNum = MarkupTrans.LineNum,TransTableId = MarkupTrans.TransTableId,TransRecId = MarkupTrans.TransRecIdMany MarkupTransHistory records → zero or one MarkupTrans record
MarkupTrans_Corrected→MarkupTransHistoryJoin on
CorrectedMarkupTrans = MarkupTransHistory.RecIdMany MarkupTransHistory records → zero or one MarkupTransHistory record
PurchLine→PurchLineJoin on
TransTableId = PurchLine.TableId,TransRecId = PurchLine.RecIdMany MarkupTransHistory records → zero or one PurchLine record
PurchLineOrig→PurchLineJoin on
OrigTableId = PurchLine.TableId,OrigRecId = PurchLine.RecIdMany MarkupTransHistory records → zero or one PurchLine record
PurchParmLine→PurchParmLineJoin on
TransTableId = PurchParmLine.TableId,TransRecId = PurchParmLine.RecIdMany MarkupTransHistory records → zero or one PurchParmLine record
PurchParmSubTable→PurchParmSubTableJoin on
TransTableId = PurchParmSubTable.TableId,TransRecId = PurchParmSubTable.RecIdMany MarkupTransHistory records → zero or one PurchParmSubTable record
PurchParmTable→PurchParmTableJoin on
TransTableId = PurchParmTable.TableId,TransRecId = PurchParmTable.RecIdMany MarkupTransHistory records → zero or one PurchParmTable record
PurchReqLine→PurchReqLineJoin on
TransTableId = PurchReqLine.TableId,TransRecId = PurchReqLine.RecIdMany MarkupTransHistory records → zero or one PurchReqLine record
PurchReqLineHistory→PurchReqLineHistoryJoin on
TransRecId = PurchReqLineHistory.RecId,TransTableId = PurchReqLineHistory.TableIdMany MarkupTransHistory records → zero or one PurchReqLineHistory record
PurchReqTableHistory→PurchReqTableHistoryJoin on
TransRecId = PurchReqTableHistory.RecId,TransTableId = PurchReqTableHistory.TableIdMany MarkupTransHistory records → zero or one PurchReqTableHistory record
PurchTable→PurchTableJoin on
TransTableId = PurchTable.TableId,TransRecId = PurchTable.RecIdMany MarkupTransHistory records → zero or one PurchTable record
PurchTableOrig→PurchTableJoin on
OrigTableId = PurchTable.TableId,OrigRecId = PurchTable.RecIdMany MarkupTransHistory records → zero or one PurchTable record
SalesLine→SalesLineJoin on
TransTableId = SalesLine.TableId,TransRecId = SalesLine.RecIdMany MarkupTransHistory records → zero or one SalesLine record
SalesLineOrig→SalesLineJoin on
OrigTableId = SalesLine.TableId,OrigRecId = SalesLine.RecIdMany MarkupTransHistory records → zero or one SalesLine record
SalesQuotationLine→SalesQuotationLineJoin on
TransTableId = SalesQuotationLine.TableId,TransRecId = SalesQuotationLine.RecIdMany MarkupTransHistory records → zero or one SalesQuotationLine record
SalesQuotationTable→SalesQuotationTableJoin on
TransTableId = SalesQuotationTable.TableId,TransRecId = SalesQuotationTable.RecIdMany MarkupTransHistory records → zero or one SalesQuotationTable record
SalesTable→SalesTableJoin on
TransTableId = SalesTable.TableId,TransRecId = SalesTable.RecIdMany MarkupTransHistory records → zero or one SalesTable record
SalesTableOrig→SalesTableJoin on
OrigTableId = SalesTable.TableId,OrigRecId = SalesTable.RecIdMany MarkupTransHistory records → zero or one SalesTable record
SourceDocumentLine→SourceDocumentLineJoin on
SourceDocumentLine = SourceDocumentLine.RecIdMany MarkupTransHistory records → zero or one SourceDocumentLine record
TaxGroupHeading→TaxGroupHeadingJoin on
TaxGroup = TaxGroupHeading.TaxGroupMany MarkupTransHistory records → zero or one TaxGroupHeading record
TaxItemGroupHeading→TaxItemGroupHeadingJoin on
TaxItemGroup = TaxItemGroupHeading.TaxItemGroupMany MarkupTransHistory records → zero or one TaxItemGroupHeading record
VendInvoice4PaymJour_RU→VendInvoice4PaymJour_RUJoin on
TransTableId = VendInvoice4PaymJour_RU.TableId,TransRecId = VendInvoice4PaymJour_RU.RecIdMany MarkupTransHistory records → zero or one VendInvoice4PaymJour_RU record
VendInvoice4PaymTrans_RU→VendInvoice4PaymTrans_RUJoin on
TransTableId = VendInvoice4PaymTrans_RU.TableId,TransRecId = VendInvoice4PaymTrans_RU.RecIdMany MarkupTransHistory records → zero or one VendInvoice4PaymTrans_RU record
VendInvoiceInfoLine→VendInvoiceInfoLineJoin on
TransTableId = VendInvoiceInfoLine.TableId,TransRecId = VendInvoiceInfoLine.RecIdMany MarkupTransHistory records → zero or one VendInvoiceInfoLine record
VendInvoiceInfoSubTable→VendInvoiceInfoSubTableJoin on
TransRecId = VendInvoiceInfoSubTable.RecId,TransTableId = VendInvoiceInfoSubTable.TableIdMany MarkupTransHistory records → zero or one VendInvoiceInfoSubTable record
VendInvoiceInfoTable→VendInvoiceInfoTableJoin on
TransTableId = VendInvoiceInfoTable.TableId,TransRecId = VendInvoiceInfoTable.RecIdMany MarkupTransHistory records → zero or one VendInvoiceInfoTable record
SATProductCode_MX→EInvoiceExtCodeTable_MXJoin on
SATProductCode_MX = EInvoiceExtCodeTable_MX.CodeId,EInvoiceExtCodeTable_MX.CodeType = 1Exactly one MarkupTransHistory record → exactly one EInvoiceExtCodeTable_MX record
SATUnitCode_MX→EInvoiceExtCodeTable_MXJoin on
SATUnitCode_MX = EInvoiceExtCodeTable_MX.CodeId,EInvoiceExtCodeTable_MX.CodeType = 2Exactly one MarkupTransHistory record → exactly one EInvoiceExtCodeTable_MX record
MarkupAutoTable→MarkupAutoTableJoin on
MarkupAutoTableRecId = MarkupAutoTable.RecIdMany MarkupTransHistory records → zero or one MarkupAutoTable record
SpecificUnit→UnitOfMeasureJoin on
SpecificUnitSymbol = UnitOfMeasure.SymbolMany 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.