Table

MarkupAutoTable

Auto charges transactions

Holds the top level of automatic charge rules. Each record sets whether the rule is for a header or line, the module, and which item, account, delivery mode, return code and retail channel it covers. The covered items are given as table, group or all, plus a relation value. Child details are stored in MarkupAutoLine.

Table name
MarkupAutoTable
Module
Procurement and sourcing
Table group
Group
Table type
Regular
Data per company
Yes
Configuration key
Markup
Primary index
MarkupIdx
Replacement key
None
Key fields
ModuleCategory, ModuleType, ItemCode, ItemRelation, AccountCode, AccountRelation, MarkupReturn, ReturnRelation, DlvModeCode, DlvModeRelation, RetailChannelCode, RetailChannelRelation, SHA256Hash
Model
Foundation

Fields (32)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ModuleCategoryShows whether the rule 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)
NoNone
ItemCodeWhether the rule covers one item, a group of items or all items.Enum
MarkupItemCode
TableGroupAll (enum)
NoPurchAutomaticPurchaseDocumentLineChargeV2Entity
ItemRelationItem or item group that the rule covers.String (20)
ItemRelation
NoInventTable.ItemIdPurchAutomaticPurchaseDocumentLineChargeV2Entity
AccountCodeWhether the rule covers one account, a group of accounts or all accounts.Enum
MarkupAccountCode
TableGroupAll (enum)
NoPurchAutomaticPurchaseDocumentHeaderChargeV2EntityPurchAutomaticPurchaseDocumentLineChargeV2EntitySalesAutomaticSalesDocumentHeaderChargeEntityand 1 more
AccountRelationCustomer or vendor account, or group, that the rule covers.String (20)
CustVendRel
NoCustTable.AccountNumVendTable.AccountNumPurchAutomaticPurchaseDocumentHeaderChargeV2EntityPurchAutomaticPurchaseDocumentLineChargeV2EntitySalesAutomaticSalesDocumentHeaderChargeEntityand 1 more
MarkupReturnType of return code the rule uses: none, reason code or disposition code.Enum
MarkupReturnType
ReturnCodeType (enum)
NoNone
ReturnRelationReturn reason code or disposition code that the rule covers.String
ReturnCode
NoReturnDispositionCode.DispositionCodeIdReturnReasonCode.ReasonCodeIdNone
DlvModeCodeWhether the rule covers one delivery mode, a group or all.Enum
MarkupDlvModeCode
TableGroupAll (enum)
NoPurchAutomaticPurchaseDocumentHeaderChargeV2EntityPurchAutomaticPurchaseDocumentLineChargeV2EntitySalesAutomaticSalesDocumentHeaderChargeEntityand 1 more
DlvModeRelationMode of delivery that the rule covers.String (20)
DlvModeRelation
NoDlvMode.CodePurchAutomaticPurchaseDocumentHeaderChargeV2EntityPurchAutomaticPurchaseDocumentLineChargeV2EntitySalesAutomaticSalesDocumentHeaderChargeEntityand 1 more
RetailChannelCodeWhether the rule covers one retail channel, a group or all.Enum
RetailChannelCode
TableGroupAll (enum)
NoNone
RetailChannelRelationRetail channel or channel group that the rule covers.String (60)
RetailChannelRelation
NoRetailChannelTable.RetailChannelIdRetailMarkupAutoChannelGroup.RetailChannelRelationNone
SHA256HashHash code of the record, used as part of its key.String (64)NoNone
AutoChargesConcurrencyModeSetting for how this auto charge works with other charges. The values are cut off in the metadata.low confidenceEnum
GUPAutoChargeConcurrency (enum)
NoGUPSalesAutomaticSalesDocumentLineChargeTableV2EntityGUPSalesAutomaticSalesDocumentLineChargeTableEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DescriptionText that describes the charge.String (60)
MarkupAutoTableDescription
NoGUPSalesAutomaticSalesDocumentHeaderChargeTableV2EntityGUPSalesAutomaticSalesDocumentLineChargeTableV2EntityGUPSalesAutomaticSalesDocumentHeaderChargeTableEntityand 7 more
IsGupMarkupAutoYes or no flag. Its meaning is not stated in the metadata, but the name suggests a link to the pricing feature.low confidenceEnum
NoYesId
NoYes (enum)
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 rule.Int64
RecId
NoGUPPriceComponentCodePriceAttributeGroupCombination.RecIdNone
PriceComponentCodeNameName of the price component code linked to the rule.String (80)
GUPPriceComponentCodeName
NoGUPPriceComponentCode.NameGUPSalesAutomaticSalesDocumentHeaderChargeTableV2EntityGUPSalesAutomaticSalesDocumentLineChargeTableV2EntityGUPSalesAutomaticSalesDocumentHeaderChargeTableEntityand 1 more
PriceComponentTypePrice component that the rule belongs to, such as auto charges, discounts or base price.Enum
GUPPriceComponent (enum)
NoNone
PricingGroupCodeHeaderWhether the header pricing applies to a group or to all.Enum
GUPPricingAttributeGroupCodeHeader
GUPGroupAll (enum)
NoGUPSalesAutomaticSalesDocumentHeaderChargeTableV2EntityGUPSalesAutomaticSalesDocumentHeaderChargeTableEntity
PricingGroupCodeLineWhether the line pricing applies to a group or to all.Enum
GUPPricingAttributeGroupCodeLine
GUPGroupAll (enum)
NoNone
PricingRuleHeaderSystem record ID of the price rule used for the header.Int64
GUPRefRecId
NoGUPPricingRule.RecIdGUPSalesAutomaticSalesDocumentHeaderChargeTableV2EntityGUPSalesAutomaticSalesDocumentLineChargeTableV2EntityGUPSalesAutomaticSalesDocumentHeaderChargeTableEntityand 1 more
PricingRuleLineSystem record ID of the price rule used for the line.Int64
GUPRefRecId
NoGUPPricingRule.RecIdGUPSalesAutomaticSalesDocumentLineChargeTableV2EntityGUPSalesAutomaticSalesDocumentLineChargeTableEntity
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
RetailAdvancedChargesDeliveryProrateYes or no flag for spreading the delivery charge across matching sales lines.Enum
RetailAdvancedChargesDeliveryProrate
NoYes (enum)
NoGUPSalesAutomaticSalesDocumentHeaderChargeTableV2EntityGUPSalesAutomaticSalesDocumentHeaderChargeTableEntity
RetailConcessionFeeYes or no flag that marks the charge as a concession fee.Enum
NoYes (enum)
NoNone
RetailConcessionFeeLegacyYes or no flag that marks the charge as a concession fee. This is an older version of the flag.low confidenceEnum
NoYes (enum)
NoNone
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

Indexes (3)

Relations (18)

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

  • CustGroup → MarkupGroup

    Join on MarkupGroup.Module = MarkupModuleType::Cust, ModuleType = MarkupModuleType::Cust, AccountCode = TableGroupAll::GroupId, AccountRelation = MarkupGroup.GroupId

    Many MarkupAutoTable records → zero or one MarkupGroup record

  • CustTable → CustTable

    Join on ModuleType = MarkupModuleType::Cust, AccountCode = TableGroupAll::Table, AccountRelation = CustTable.AccountNum

    Many MarkupAutoTable records → zero or one CustTable record

  • DeliveryCustGroup → MarkupGroup

    Join on MarkupGroup.Module = MarkupModuleType::Cust, ModuleType = MarkupModuleType::Delivery, AccountCode = TableGroupAll::GroupId, AccountRelation = MarkupGroup.GroupId

    Many MarkupAutoTable records → zero or one MarkupGroup record

  • DeliveryCustTable → CustTable

    Join on ModuleType = MarkupModuleType::Delivery, AccountCode = TableGroupAll::Table, AccountRelation = CustTable.AccountNum

    Many MarkupAutoTable records → zero or one CustTable record

  • DlvModeGroup → MarkupGroup

    Join on DlvModeRelation = MarkupGroup.GroupId, DlvModeCode = TableGroupAll::GroupId, MarkupGroup.Module = MarkupModuleType::Delivery

    Many MarkupAutoTable records → zero or one MarkupGroup record

  • DlvModeTable → DlvMode

    Join on DlvModeRelation = DlvMode.Code, DlvModeCode = TableGroupAll::Table

    Many MarkupAutoTable records → zero or one DlvMode record

  • InventGroup → MarkupGroup

    Join on MarkupGroup.Module = MarkupModuleType::Invent, ItemCode = TableGroupAll::GroupId, ItemRelation = MarkupGroup.GroupId

    Many MarkupAutoTable records → zero or one MarkupGroup record

  • InventTable → InventTable

    Join on ItemCode = TableGroupAll::Table, ItemRelation = InventTable.ItemId

    Many MarkupAutoTable records → zero or one InventTable record

  • ReturnDispositionCode → ReturnDispositionCode

    Join on ModuleCategory = HeadingLine::Line, MarkupReturn = ReturnCodeType::Disposition, ModuleType = MarkupModuleType::Cust, ReturnRelation = ReturnDispositionCode.DispositionCodeId

    Many MarkupAutoTable records → zero or one ReturnDispositionCode record

  • ReturnReasonCode → ReturnReasonCode

    Join on ModuleCategory = HeadingLine::Heading, MarkupReturn = ReturnCodeType::Reason, ModuleType = MarkupModuleType::Cust, ReturnRelation = ReturnReasonCode.ReasonCodeId

    Many MarkupAutoTable records → zero or one ReturnReasonCode record

  • VendGroup → MarkupGroup

    Join on MarkupGroup.Module = MarkupModuleType::Vend, ModuleType = MarkupModuleType::Vend, AccountCode = TableGroupAll::GroupId, AccountRelation = MarkupGroup.GroupId

    Many MarkupAutoTable records → zero or one MarkupGroup record

  • VendTable → VendTable

    Join on ModuleType = MarkupModuleType::Vend, AccountCode = TableGroupAll::Table, AccountRelation = VendTable.AccountNum

    Many MarkupAutoTable records → zero or one VendTable record

  • RetailChannelGroup → RetailMarkupAutoChannelGroup

    Join on RetailChannelRelation = RetailMarkupAutoChannelGroup.RetailChannelRelation, RetailChannelCode = TableGroupAll::GroupId

    Many MarkupAutoTable records → zero or one RetailMarkupAutoChannelGroup record

  • RetailChannelTable → RetailChannelTable

    Join on RetailChannelRelation = RetailChannelTable.RetailChannelId, RetailChannelCode = TableGroupAll::Table

    Many MarkupAutoTable records → zero or one RetailChannelTable record

  • GUPPricingRuleHeader → GUPPricingRule

    Join on PricingRuleHeader = GUPPricingRule.RecId

    Zero or one MarkupAutoTable record → exactly one GUPPricingRule record

  • GUPPricingRuleLine → GUPPricingRule

    Join on PricingRuleLine = GUPPricingRule.RecId

    Zero or one MarkupAutoTable record → exactly one GUPPricingRule record

  • GUPPriceComponentCode → GUPPriceComponentCode

    Join on PriceComponentCodeName = GUPPriceComponentCode.Name

    Many MarkupAutoTable records → exactly one GUPPriceComponentCode record

  • GUPPriceComponentCodePriceAttributeGroupCombination → GUPPriceComponentCodePriceAttributeGroupCombination

    Join on PriceAttributeGroupCombinationRecId = GUPPriceComponentCodePriceAttributeGroupCombination.RecId

    Many MarkupAutoTable records → exactly one GUPPriceComponentCodePriceAttributeGroupCombination record

Get this data out

Tables are not exposed directly. These public entities read from MarkupAutoTable; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk