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 descriptionType / EDT / enumMandatoryReferencesIn public entities
TableRecIdSystem record ID of the parent auto charge record.Int64
MarkupAutoLineRefRecId
NoNone
TableTableIdID of the table that the parent auto charge record belongs to.Integer
MarkupAutoLineTableRefRecId
NoNone
LineNumNumber that orders the lines within the parent record.Real
LineNum
NoGUPSalesAutomaticSalesDocumentLineChargeV2EntityPurchAutomaticPurchaseDocumentHeaderChargeV2EntityPurchAutomaticPurchaseDocumentLineChargeV2Entityand 5 more
CurrencyCodeCurrency of the amount range on the line.String (3)
CurrencyCode
YesCurrency.CurrencyCodeGUPSalesAutomaticSalesDocumentLineChargeV2EntityPurchAutomaticPurchaseDocumentHeaderChargeV2EntityPurchAutomaticPurchaseDocumentLineChargeV2Entityand 3 more
CustomsAssessableValue_INYes or no flag for assessable value. Used for India.low confidenceEnum
NoYesId
NoYes (enum)
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
FromAmountLower limit of the amount range for which the charge line applies.Real
MarkupFromAmount
NoPurchAutomaticPurchaseDocumentHeaderChargeV2EntityGUPSalesAutomaticSalesDocumentHeaderChargeEntitySalesAutomaticSalesDocumentHeaderChargeEntity
FromDateFirst date on which the charge line is valid.Date
FromDate
NoGUPSalesAutomaticSalesDocumentLineChargeV2EntityGUPSalesAutomaticSalesDocumentHeaderChargeEntityGUPSalesAutomaticSalesDocumentLineChargeEntity
InventLocationIdWarehouse that the charge line is limited to.String
InventLocationId
NoInventLocation.InventLocationIdGUPSalesAutomaticSalesDocumentLineChargeV2EntityPurchAutomaticPurchaseDocumentHeaderChargeV2EntityPurchAutomaticPurchaseDocumentLineChargeV2Entityand 2 more
InventSiteIdSite that the charge line is limited to.String
InventSiteId
NoInventSite.SiteIdGUPSalesAutomaticSalesDocumentLineChargeV2EntityPurchAutomaticPurchaseDocumentHeaderChargeV2EntityPurchAutomaticPurchaseDocumentLineChargeV2Entityand 2 more
IsCompoundYes or no flag that says whether earlier header charges are added to the base for a percentage header charge.Enum
MarkupIsCompound
NoYes (enum)
NoGUPSalesAutomaticSalesDocumentHeaderChargeEntitySalesAutomaticSalesDocumentHeaderChargeEntity
KeepYes or no flag called Keep. Its exact effect is not stated in the metadata.low confidenceEnum
MarkupKeep
NoYes (enum)
NoGUPSalesAutomaticSalesDocumentLineChargeV2EntityGUPSalesAutomaticSalesDocumentHeaderChargeEntityGUPSalesAutomaticSalesDocumentLineChargeEntityand 1 more
MarkupCategoryHow the charge is worked out, for example fixed, percent or specific unit.Enum
MarkupCategoryType
MarkupCategory (enum)
NoGUPSalesAutomaticSalesDocumentLineChargeV2EntityPurchAutomaticPurchaseDocumentHeaderChargeV2EntityPurchAutomaticPurchaseDocumentLineChargeV2Entityand 3 more
MarkupCodeCode of the charge that the line applies.String
MarkupCode
YesMarkupTable.MarkupCodeGUPSalesAutomaticSalesDocumentLineChargeV2EntityPurchAutomaticPurchaseDocumentHeaderChargeV2EntityPurchAutomaticPurchaseDocumentLineChargeV2Entityand 4 more
MarkupCurrencyCodeCurrency of the charge itself.String (3)
MarkupCurrencyCode
NoCurrency.CurrencyCodeGUPSalesAutomaticSalesDocumentLineChargeV2EntityPurchAutomaticPurchaseDocumentHeaderChargeV2EntityPurchAutomaticPurchaseDocumentLineChargeV2Entityand 3 more
MCRReturnMarkupYes or no flag that marks the charge as a return charge.Enum
NoYesId
NoYes (enum)
NoNone
ModuleCategoryShows whether the charge is for a header or for a line.Enum
MarkupModuleCategory
HeadingLine (enum)
NoNone
ModuleTypeArea the charge belongs to: inventory, customer, vendor or delivery.Enum
MarkupModule
MarkupModuleType (enum)
NoMarkupTable.ModuleTypeNone
NotionalCharges_INYes or no flag for assessable value. Used for India.low confidenceEnum
NoYesId
NoYes (enum)
NoNone
NotionalPct_INPercentage of assessable value. Used for India.low confidenceReal
NotionalPct_IN
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PriceAttributeGroupCombinationRecIdSystem record ID of the price attribute group combination linked to the line.Int64
RecId
NoGUPPriceComponentCodePriceAttributeGroupCombination.RecIdNone
PricingAttributesHeaderAreMatchedYes or no flag for whether pricing attributes on the header are matched.Enum
GUPPricingAttributesAreMatched
NoYes (enum)
NoNone
PricingAttributesLineAreMatchedYes or no flag for whether pricing attributes on the line are matched.Enum
GUPPricingAttributesAreMatched
NoYes (enum)
NoNone
PricingGroupCodeHeaderWhether the header pricing applies to a group or to all.Enum
GUPPricingAttributeGroupCodeHeader
GUPGroupAll (enum)
NoNone
PricingGroupCodeLineWhether the line pricing applies to a group or to all.Enum
GUPPricingAttributeGroupCodeLine
GUPGroupAll (enum)
NoGUPSalesAutomaticSalesDocumentLineChargeV2EntityGUPSalesAutomaticSalesDocumentLineChargeEntity
PricingRuleHeaderSystem record ID of the price rule used for the header.Int64
GUPRefRecId
NoGUPPricingRule.RecIdNone
PricingRuleLineSystem record ID of the price rule used for the line.Int64
GUPRefRecId
NoGUPPricingRule.RecIdGUPSalesAutomaticSalesDocumentLineChargeV2EntityGUPSalesAutomaticSalesDocumentLineChargeEntity
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
SequenceOrder number that sets which header charge comes first. It matters mainly for compound charges.Integer
MarkupSequence
NoGUPSalesAutomaticSalesDocumentHeaderChargeEntitySalesAutomaticSalesDocumentHeaderChargeEntity
SpecificUnitSymbolUnit of measure for charges set by specific unit or specific unit match.String
MarkupSpecificUnitSymbol
NoUnitOfMeasure.SymbolGUPSalesAutomaticSalesDocumentLineChargeV2Entity
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
TaxGroupSales tax group that applies to the charge.String
TaxGroup
NoTaxGroupHeading.TaxGroupGUPSalesAutomaticSalesDocumentLineChargeV2EntityPurchAutomaticPurchaseDocumentHeaderChargeV2EntityPurchAutomaticPurchaseDocumentLineChargeV2Entityand 3 more
TaxItemGroupItem sales tax group that applies to the charge.String
TaxItemGroup
NoTaxItemGroupHeading.TaxItemGroupNone
ToAmountUpper limit of the amount range for which the charge line applies.Real
MarkupToAmount
NoPurchAutomaticPurchaseDocumentHeaderChargeV2EntityGUPSalesAutomaticSalesDocumentHeaderChargeEntitySalesAutomaticSalesDocumentHeaderChargeEntity
ToDateLast date on which the charge line is valid.Date
ToDate
NoGUPSalesAutomaticSalesDocumentLineChargeV2EntityGUPSalesAutomaticSalesDocumentHeaderChargeEntityGUPSalesAutomaticSalesDocumentLineChargeEntity
TxtDescription text of the charge line.String (60)
TransTxt
NoNone
ValueValue of the charge, such as an amount or percentage.Real
MarkupValue
NoGUPSalesAutomaticSalesDocumentLineChargeV2EntityPurchAutomaticPurchaseDocumentHeaderChargeV2EntityPurchAutomaticPurchaseDocumentLineChargeV2Entityand 3 more

Indexes (4)

Relations (12)

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

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many MarkupAutoLine records → exactly one Currency record

  • MarkupAutoTable → MarkupAutoTable

    Join on TableRecId = MarkupAutoTable.RecId, TableTableId = MarkupAutoTable.TableId

    Many MarkupAutoLine records → exactly one MarkupAutoTable record

  • MarkupCurrency → Currency

    Join on MarkupCurrencyCode = Currency.CurrencyCode

    Many MarkupAutoLine records → zero or one Currency record

  • MarkupTable → MarkupTable

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

    Many MarkupAutoLine records → zero or one MarkupTable record

  • TaxGroupHeading → TaxGroupHeading

    Join on TaxGroup = TaxGroupHeading.TaxGroup

    Many MarkupAutoLine records → zero or one TaxGroupHeading record

  • TaxItemGroupHeading → TaxItemGroupHeading

    Join on TaxItemGroup = TaxItemGroupHeading.TaxItemGroup

    Many MarkupAutoLine records → zero or one TaxItemGroupHeading record

  • InventSite → InventSite

    Join on InventSiteId = InventSite.SiteId

    Many MarkupAutoLine records → zero or one InventSite record

  • InventLocation → InventLocation

    Join on InventLocationId = InventLocation.InventLocationId

    Many MarkupAutoLine records → zero or one InventLocation record

  • SpecificUnit → UnitOfMeasure

    Join on SpecificUnitSymbol = UnitOfMeasure.Symbol

    Many MarkupAutoLine records → zero or one UnitOfMeasure record

  • GUPPricingRuleHeader → GUPPricingRule

    Join on PricingRuleHeader = GUPPricingRule.RecId

    Many MarkupAutoLine records → exactly one GUPPricingRule record

  • GUPPricingRuleLine → GUPPricingRule

    Join on PricingRuleLine = GUPPricingRule.RecId

    Zero or one MarkupAutoLine record → exactly one GUPPricingRule record

  • GUPPriceComponentCodePriceAttributeGroupCombination → GUPPriceComponentCodePriceAttributeGroupCombination

    Join on PriceAttributeGroupCombinationRecId = GUPPriceComponentCodePriceAttributeGroupCombination.RecId

    Many 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.

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

Email sales@drdynamics.co.uk