Table
RetailTransactionMarkupTransHistory
Archived commerce charge transactions
Archived charges (markups) applied to retail transactions or their sales lines. Each record holds the charge code, category and value, the related sales tax details and the currency. It also has fields used for India, such as HSN code and service accounting code.
- Table name
RetailTransactionMarkupTransHistory- Module
Commerce transactions and orders- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
None- Replacement key
None- Key fields
None- Model
Foundation
Fields (40)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CalculatedAmountCalculated value of the charge; the currency is probably the one in the currency code field. | RealAmountCur | No | None | |
ChannelRecord ID of the channel the transaction belongs to. | Int64RefRecId | No | None | |
CurrencyCodeCode of the currency used for the charge. | String (3)CurrencyCode | Yes | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DescriptionFree text describing the charge. | String (512)TransactionTextLarge | No | None | |
Exempt_INYes or No flag for tax exemption, used for India. | EnumTaxExemptTaxNoYes (enum) | No | None | |
HSNCode_INHarmonised System (HSN) code of the goods, used for India. | StringHSNCode_IN | No | None | |
IsOverriddenLineYes or No flag showing that a user changed the charge by hand. | EnumRetailIsOverriddenChargeNoYes (enum) | No | None | |
ITCCategory_INInput tax credit category, such as input, capital goods or others, used for India. | EnumITCCategory_IN (enum) | No | None | |
KeepYes or No flag for the charge's Keep setting. | EnumMarkupKeepNoYes (enum) | No | None | |
MarkupAutoLineRecIdRecord ID of the automatic charge line the entry came from. | Int64RetailMarkupAutoLineRecId | No | None | |
MarkupAutoTableRecIdRecord ID of the automatic charge the entry came from. | Int64RetailMarkupAutoRecId | No | None | |
MarkupCodeCode of the charge. | StringMarkupCode | Yes | None | |
markupLineNumLine number of the charge record. | RealLineNum | No | None | |
MethodCategory of the charge, such as fixed, percent or external. | EnumMarkupCategoryTypeMarkupCategory (enum) | No | None | |
ModuleTypeArea the charge belongs to: inventory, customer, vendor or delivery. | EnumMarkupModuleMarkupModuleType (enum) | No | None | |
NonGST_INYes or No flag marking the charge as non-GST, used for India. | EnumNonGST_INNoYes (enum) | No | None | |
OriginNumber of the location the record came from. | String (50)RetailConnDistributionLocationId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | 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 | |
replicationCounterFromOriginCounter value used when the record is replicated from its originating location. | IntegerRetailReplicationCounter | No | None | |
saleLineNumLine number of the sales line the charge applies to. | RealRetailTransactionSalesLineNum | No | None | |
ServiceAccountingCode_INService accounting code (SAC), used for India. | StringSAC_IN | No | None | |
ServiceCategory_INService category, such as inward or inter-unit, used for India. | EnumServiceCategory_IN (enum) | No | None | |
storeNumber of the store where the transaction took place. | StringRetailStoreId | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
SysRowVersionNumberRow version number kept by the system to track changes to the record.low confidence | Int64SysRowVersionNumber | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxAmountSales tax amount on the charge; currency not stated in the metadata. | RealTaxAmountCur | No | None | |
TaxAmountExclusiveTax amount field labelled as the inclusive tax amount; the name and label disagree. Currency not stated in the metadata.low confidence | RealTaxAmountCur | No | None | |
TaxAmountInclusiveTax amount field labelled as the exclusive tax amount; the name and label disagree. Currency not stated in the metadata.low confidence | RealTaxAmountCur | No | None | |
TaxExemptPriceInclusiveOriginalPriceLine price before the tax exemption, for prices that include tax. | RealRetailTaxExemptOriginalPrice | No | None | |
TaxExemptPriceInclusiveReductionAmountAmount of tax that was exempted, for prices that include tax. | RealRetailTaxExemptReductionAmount | No | None | |
TaxGroupSales tax group applied to the charge. | StringTaxGroup | No | None | |
TaxItemGroupItem sales tax group applied to the charge. | StringTaxItemGroup | No | None | |
TaxRateTypeName of the tax rate type. | String (60)TaxRateTypeName | No | None | |
terminalIdNumber of the register used for the transaction. | StringRetailTerminalId | No | None | |
transactionIdNumber of the retail transaction. | String (44)RetailTransactionId | Yes | None | |
ValueValue of the charge, such as a fixed amount or a percentage depending on the category. | RealMarkupValue | No | None |
Indexes (2)
RetailTransactionSalesTransIdxChannel,store,terminalId,transactionId,saleLineNum,markupLineNum,DataAreaId,PartitionUnique, alternate key.
transactionIdxChannel,store,terminalId,transactionId,DataAreaId,PartitionNot unique.
Get this data out
No public entity reads from RetailTransactionMarkupTransHistory. Its data is only reachable through the application, a custom entity or a database export.
Need help with RetailTransactionMarkupTransHistory in a report, an integration or a migration? Talk to Dr Dynamics.