Table
MarkupAutoLine
Auto charges
Holds the detailed lines of automatic charge rules. Each line sets a charge code, category, value, amount range and validity dates. It links to a parent record in MarkupAutoTable. Some fields are used for India and for pricing rules.
- Table name
MarkupAutoLine- Module
Procurement and sourcing- Table group
Group- Table type
Regular- Data per company
Yes- Configuration key
Markup- Primary index
TableIdx- Replacement key
TableIdx- Key fields
TableRecId, TableTableId, LineNum- Model
Foundation
Fields (40)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
TableRecIdSystem record ID of the parent auto charge record. | Int64MarkupAutoLineRefRecId | No | None | |
TableTableIdID of the table that the parent auto charge record belongs to. | IntegerMarkupAutoLineTableRefRecId | No | None | |
LineNumNumber that orders the lines within the parent record. | RealLineNum | No | GUPSalesAutomaticSalesDocumentLineChargeV2EntityPurchAutomaticPurchaseDocumentHeaderChargeV2EntityPurchAutomaticPurchaseDocumentLineChargeV2Entityand 5 more | |
CurrencyCodeCurrency of the amount range on the line. | String (3)CurrencyCode | Yes | Currency.CurrencyCode | GUPSalesAutomaticSalesDocumentLineChargeV2EntityPurchAutomaticPurchaseDocumentHeaderChargeV2EntityPurchAutomaticPurchaseDocumentLineChargeV2Entityand 3 more |
CustomsAssessableValue_INYes or no flag for assessable value. Used for India.low confidence | EnumNoYesIdNoYes (enum) | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
FromAmountLower limit of the amount range for which the charge line applies. | RealMarkupFromAmount | No | PurchAutomaticPurchaseDocumentHeaderChargeV2EntityGUPSalesAutomaticSalesDocumentHeaderChargeEntitySalesAutomaticSalesDocumentHeaderChargeEntity | |
FromDateFirst date on which the charge line is valid. | DateFromDate | No | GUPSalesAutomaticSalesDocumentLineChargeV2EntityGUPSalesAutomaticSalesDocumentHeaderChargeEntityGUPSalesAutomaticSalesDocumentLineChargeEntity | |
InventLocationIdWarehouse that the charge line is limited to. | StringInventLocationId | No | InventLocation.InventLocationId | GUPSalesAutomaticSalesDocumentLineChargeV2EntityPurchAutomaticPurchaseDocumentHeaderChargeV2EntityPurchAutomaticPurchaseDocumentLineChargeV2Entityand 2 more |
InventSiteIdSite that the charge line is limited to. | StringInventSiteId | No | InventSite.SiteId | GUPSalesAutomaticSalesDocumentLineChargeV2EntityPurchAutomaticPurchaseDocumentHeaderChargeV2EntityPurchAutomaticPurchaseDocumentLineChargeV2Entityand 2 more |
IsCompoundYes or no flag that says whether earlier header charges are added to the base for a percentage header charge. | EnumMarkupIsCompoundNoYes (enum) | No | GUPSalesAutomaticSalesDocumentHeaderChargeEntitySalesAutomaticSalesDocumentHeaderChargeEntity | |
KeepYes or no flag called Keep. Its exact effect is not stated in the metadata.low confidence | EnumMarkupKeepNoYes (enum) | No | GUPSalesAutomaticSalesDocumentLineChargeV2EntityGUPSalesAutomaticSalesDocumentHeaderChargeEntityGUPSalesAutomaticSalesDocumentLineChargeEntityand 1 more | |
MarkupCategoryHow the charge is worked out, for example fixed, percent or specific unit. | EnumMarkupCategoryTypeMarkupCategory (enum) | No | GUPSalesAutomaticSalesDocumentLineChargeV2EntityPurchAutomaticPurchaseDocumentHeaderChargeV2EntityPurchAutomaticPurchaseDocumentLineChargeV2Entityand 3 more | |
MarkupCodeCode of the charge that the line applies. | StringMarkupCode | Yes | MarkupTable.MarkupCode | GUPSalesAutomaticSalesDocumentLineChargeV2EntityPurchAutomaticPurchaseDocumentHeaderChargeV2EntityPurchAutomaticPurchaseDocumentLineChargeV2Entityand 4 more |
MarkupCurrencyCodeCurrency of the charge itself. | String (3)MarkupCurrencyCode | No | Currency.CurrencyCode | GUPSalesAutomaticSalesDocumentLineChargeV2EntityPurchAutomaticPurchaseDocumentHeaderChargeV2EntityPurchAutomaticPurchaseDocumentLineChargeV2Entityand 3 more |
MCRReturnMarkupYes or no flag that marks the charge as a return charge. | EnumNoYesIdNoYes (enum) | No | None | |
ModuleCategoryShows whether the charge is for a header or for a line. | EnumMarkupModuleCategoryHeadingLine (enum) | No | None | |
ModuleTypeArea the charge belongs to: inventory, customer, vendor or delivery. | EnumMarkupModuleMarkupModuleType (enum) | No | MarkupTable.ModuleType | None |
NotionalCharges_INYes or no flag for assessable value. Used for India.low confidence | EnumNoYesIdNoYes (enum) | No | None | |
NotionalPct_INPercentage of assessable value. Used for India.low confidence | RealNotionalPct_IN | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PriceAttributeGroupCombinationRecIdSystem record ID of the price attribute group combination linked to the line. | Int64RecId | No | GUPPriceComponentCodePriceAttributeGroupCombination.RecId | None |
PricingAttributesHeaderAreMatchedYes or no flag for whether pricing attributes on the header are matched. | EnumGUPPricingAttributesAreMatchedNoYes (enum) | No | None | |
PricingAttributesLineAreMatchedYes or no flag for whether pricing attributes on the line are matched. | EnumGUPPricingAttributesAreMatchedNoYes (enum) | No | None | |
PricingGroupCodeHeaderWhether the header pricing applies to a group or to all. | EnumGUPPricingAttributeGroupCodeHeaderGUPGroupAll (enum) | No | None | |
PricingGroupCodeLineWhether the line pricing applies to a group or to all. | EnumGUPPricingAttributeGroupCodeLineGUPGroupAll (enum) | No | GUPSalesAutomaticSalesDocumentLineChargeV2EntityGUPSalesAutomaticSalesDocumentLineChargeEntity | |
PricingRuleHeaderSystem record ID of the price rule used for the header. | Int64GUPRefRecId | No | GUPPricingRule.RecId | None |
PricingRuleLineSystem record ID of the price rule used for the line. | Int64GUPRefRecId | No | GUPPricingRule.RecId | GUPSalesAutomaticSalesDocumentLineChargeV2EntityGUPSalesAutomaticSalesDocumentLineChargeEntity |
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 | |
SequenceOrder number that sets which header charge comes first. It matters mainly for compound charges. | IntegerMarkupSequence | No | GUPSalesAutomaticSalesDocumentHeaderChargeEntitySalesAutomaticSalesDocumentHeaderChargeEntity | |
SpecificUnitSymbolUnit of measure for charges set by specific unit or specific unit match. | StringMarkupSpecificUnitSymbol | No | UnitOfMeasure.Symbol | GUPSalesAutomaticSalesDocumentLineChargeV2Entity |
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 | |
TaxGroupSales tax group that applies to the charge. | StringTaxGroup | No | TaxGroupHeading.TaxGroup | GUPSalesAutomaticSalesDocumentLineChargeV2EntityPurchAutomaticPurchaseDocumentHeaderChargeV2EntityPurchAutomaticPurchaseDocumentLineChargeV2Entityand 3 more |
TaxItemGroupItem sales tax group that applies to the charge. | StringTaxItemGroup | No | TaxItemGroupHeading.TaxItemGroup | None |
ToAmountUpper limit of the amount range for which the charge line applies. | RealMarkupToAmount | No | PurchAutomaticPurchaseDocumentHeaderChargeV2EntityGUPSalesAutomaticSalesDocumentHeaderChargeEntitySalesAutomaticSalesDocumentHeaderChargeEntity | |
ToDateLast date on which the charge line is valid. | DateToDate | No | GUPSalesAutomaticSalesDocumentLineChargeV2EntityGUPSalesAutomaticSalesDocumentHeaderChargeEntityGUPSalesAutomaticSalesDocumentLineChargeEntity | |
TxtDescription text of the charge line. | String (60)TransTxt | No | None | |
ValueValue of the charge, such as an amount or percentage. | RealMarkupValue | No | GUPSalesAutomaticSalesDocumentLineChargeV2EntityPurchAutomaticPurchaseDocumentHeaderChargeV2EntityPurchAutomaticPurchaseDocumentLineChargeV2Entityand 3 more |
Indexes (4)
TableIdxPrimary indexReplacement keyTableRecId,TableTableId,LineNumUnique, alternate key.
IDX_MarkupCategory_UnitSymbolTableRecId,TableTableId,CurrencyCode,MCRReturnMarkup,InventSiteId,InventLocationId,FromAmount,ToAmount,MarkupCategory,SpecificUnitSymbolNot unique.
GUPChargeLineIndexTableRecId,TableTableId,CurrencyCode,MCRReturnMarkup,InventSiteId,InventLocationId,FromDate,ToDate,FromAmount,ToAmount,PriceAttributeGroupCombinationRecId,Sequence,PricingRuleLineNot unique.
RulePerfIdx1Partition,DataAreaId,TableRecId,TableTableId,CurrencyCode,MCRReturnMarkup,FromAmount,ToAmount,InventSiteId,InventLocationId,FromDate,ToDate,PricingRuleLine,PriceAttributeGroupCombinationRecId,RecIdNot unique.
Relations (12)
Each relation joins MarkupAutoLine to another table on the fields shown.
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany MarkupAutoLine records → exactly one Currency record
MarkupAutoTable→MarkupAutoTableJoin on
TableRecId = MarkupAutoTable.RecId,TableTableId = MarkupAutoTable.TableIdMany MarkupAutoLine records → exactly one MarkupAutoTable record
MarkupCurrency→CurrencyJoin on
MarkupCurrencyCode = Currency.CurrencyCodeMany MarkupAutoLine records → zero or one Currency record
MarkupTable→MarkupTableJoin on
ModuleType = MarkupTable.ModuleType,MarkupCode = MarkupTable.MarkupCodeMany MarkupAutoLine records → zero or one MarkupTable record
TaxGroupHeading→TaxGroupHeadingJoin on
TaxGroup = TaxGroupHeading.TaxGroupMany MarkupAutoLine records → zero or one TaxGroupHeading record
TaxItemGroupHeading→TaxItemGroupHeadingJoin on
TaxItemGroup = TaxItemGroupHeading.TaxItemGroupMany MarkupAutoLine records → zero or one TaxItemGroupHeading record
InventSite→InventSiteJoin on
InventSiteId = InventSite.SiteIdMany MarkupAutoLine records → zero or one InventSite record
InventLocation→InventLocationJoin on
InventLocationId = InventLocation.InventLocationIdMany MarkupAutoLine records → zero or one InventLocation record
SpecificUnit→UnitOfMeasureJoin on
SpecificUnitSymbol = UnitOfMeasure.SymbolMany MarkupAutoLine records → zero or one UnitOfMeasure record
GUPPricingRuleHeader→GUPPricingRuleJoin on
PricingRuleHeader = GUPPricingRule.RecIdMany MarkupAutoLine records → exactly one GUPPricingRule record
GUPPricingRuleLine→GUPPricingRuleJoin on
PricingRuleLine = GUPPricingRule.RecIdZero or one MarkupAutoLine record → exactly one GUPPricingRule record
GUPPriceComponentCodePriceAttributeGroupCombination→GUPPriceComponentCodePriceAttributeGroupCombinationJoin on
PriceAttributeGroupCombinationRecId = GUPPriceComponentCodePriceAttributeGroupCombination.RecIdMany MarkupAutoLine records → exactly one GUPPriceComponentCodePriceAttributeGroupCombination record
Get this data out
Tables are not exposed directly. These public entities read from MarkupAutoLine; use one of them in Power BI, Power Platform or a data management project.
GUPSalesAutomaticSalesDocumentLineChargeV2Entity· 15 fields from this tablePurchAutomaticPurchaseDocumentHeaderChargeV2Entity· 11 fields from this tablePurchAutomaticPurchaseDocumentLineChargeV2Entity· 9 fields from this tableGUPSalesAutomaticSalesDocumentHeaderChargeEntity· 16 fields from this tableGUPSalesAutomaticSalesDocumentLineChargeEntity· 14 fields from this tableSalesAutomaticSalesDocumentHeaderChargeEntity· 12 fields from this tableGUPSalesAutomaticSalesDocumentHeaderTaxChargeEntity· 1 field from this tableSalesAutomaticSalesDocumentHeaderTaxChargeEntity· 2 fields from this table
Need help with MarkupAutoLine in a report, an integration or a migration? Talk to Dr Dynamics.