Table

MarkupPeriodChargeRuleLine

Period charge rule line

Holds the lines of a period charge rule. The key is the rule and the line number. A line sets either a monetary or a quantity threshold, with the charge code, currency, unit and charge amount. It can also hold a revenue account and a description.

Table name
MarkupPeriodChargeRuleLine
Module
Accounts receivable
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
Markup
Primary index
RuleLineIdx
Replacement key
RuleLineIdx
Key fields
PeriodChargeRule, LineNum
Model
Foundation

Fields (21)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
PeriodChargeRulePeriod charge rule that this line belongs to. Points to a rule record.Int64
MarkupPeriodChargeRuleRecId
YesMarkupPeriodChargeRule.RecIdNone
LineNumNumber of the line within the rule.Real
LineNum
NoMarkupPeriodChargeRuleLineCustomerEntity
AmountCurrencyCodeCurrency of the charge amount. Points to a currency record.String (3)
MarkupPeriodChargeRuleAmountCurrencyCode
NoCurrency.CurrencyCodeMarkupPeriodChargeRuleLineCustomerEntity
ChargeAmountFixed fee charged to the customer for a period in which the rule line's quantity threshold is missed. It appears on the customer's free text invoice line.low confidenceReal
MarkupPeriodChargeRuleChargeAmount
NoMarkupPeriodChargeRuleLineCustomerEntity
ChargeCodeCharge code the line applies to, such as freight or handling.String
MarkupPeriodChargeRuleChargeCode
NoMarkupPeriodChargeRuleLineCustomerEntity
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CurrencyCodeCurrency of the monetary threshold. Points to a currency record.String (3)
MarkupPeriodChargeRuleCurrencyCode
NoCurrency.CurrencyCodeMarkupPeriodChargeRuleLineCustomerEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DebitChargeAmountOnlyYes/No flag. When Yes, only debit charge amounts count towards the monetary threshold.Enum
MarkupPeriodChargeRuleDebitChargeAmountOnly
NoYes (enum)
NoMarkupPeriodChargeRuleLineCustomerEntity
DebitQuantityOnlyYes/No flag. When Yes, only debit quantities count towards the quantity threshold.Enum
MarkupPeriodChargeRuleDebitQuantityOnly
NoYes (enum)
NoMarkupPeriodChargeRuleLineCustomerEntity
DefaultRevenueAccountRevenue account placed on the free text invoice line that the rule line creates. It points to a dimension code combination.Int64
MarkupPeriodChargeRuleDefaultRevenueAccount
YesDimensionAttributeValueCombination.RecIdMarkupPeriodChargeRuleLineCustomerEntity
DescriptionText placed on the free text invoice line that the rule line creates.String (255)
MarkupPeriodChargeRuleLineDescription
NoMarkupPeriodChargeRuleLineCustomerEntity
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
MonetaryThresholdMonetary threshold at which the line applies.Real
MarkupPeriodChargeRuleMonetaryThreshold
NoMarkupPeriodChargeRuleLineCustomerEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
QuantityThresholdQuantity threshold at which the line applies.Real
MarkupPeriodChargeRuleQuantityThreshold
NoMarkupPeriodChargeRuleLineCustomerEntity
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
RuleLineTypeType of rule line, such as monetary threshold or quantity threshold.Enum
MarkupPeriodChargeRuleLineTypeId
MarkupPeriodChargeRuleLineType (enum)
YesMarkupPeriodChargeRuleLineCustomerEntity
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
UnitSymbolUnit of measure of the quantity threshold. Points to a unit record.String
MarkupPeriodChargeRuleUnitSymbol
NoUnitOfMeasure.SymbolMarkupPeriodChargeRuleLineCustomerEntity

Indexes (1)

Relations (6)

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

  • CustomerMarkupTable → MarkupTable

    Join on ChargeCode = MarkupTable.MarkupCode, MarkupTable.ModuleType = MarkupModuleType::Cust

    Many MarkupPeriodChargeRuleLine records → zero or one MarkupTable record

  • PeriodChargeRule → MarkupPeriodChargeRule

    Join on PeriodChargeRule = MarkupPeriodChargeRule.RecId

    Many MarkupPeriodChargeRuleLine records → exactly one MarkupPeriodChargeRule record

  • DefaultRevenueAccount → DimensionAttributeValueCombination

    Join on DefaultRevenueAccount = DimensionAttributeValueCombination.RecId

    Many MarkupPeriodChargeRuleLine records → zero or one DimensionAttributeValueCombination record

  • CurrencyCode → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many MarkupPeriodChargeRuleLine records → exactly one Currency record

  • UnitOfMeasure → UnitOfMeasure

    Join on UnitSymbol = UnitOfMeasure.Symbol

    Many MarkupPeriodChargeRuleLine records → zero or one UnitOfMeasure record

  • AmountCurrencyCode → Currency

    Join on AmountCurrencyCode = Currency.CurrencyCode

    Many MarkupPeriodChargeRuleLine records → zero or one Currency record

Get this data out

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

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

Email sales@drdynamics.co.uk