Table
MarkupPeriodChargeRule
Period charge rule
Defines a period charge rule, identified by its name. It has a validity range by invoice date. It applies to all customers or one customer, and can be limited to a site or warehouse. Rule lines are held in a separate table.
- Table name
MarkupPeriodChargeRule- Module
Accounts receivable- Table group
Miscellaneous- Table type
Regular- Data per company
Yes- Configuration key
Markup- Primary index
PeriodChargeRuleIdx- Replacement key
RuleNameIdx- Key fields
RuleName- Model
Foundation
Fields (16)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
RuleNameName of the period charge rule. | String (20)MarkupPeriodChargeRuleName | Yes | MarkupPeriodChargeRuleCustomerEntityMarkupPeriodChargeRuleLineCustomerEntity | |
AccountCodeScope of customers for the rule: all customers, or one customer. | EnumMarkupPeriodChargeRuleAccountCodeTableAll (enum) | No | MarkupPeriodChargeRuleCustomerEntity | |
AccountRelationCustomer account the rule applies to when the scope is a single customer. Points to a customer record. | String (20)MarkupPeriodChargeRuleAccountRelation | No | CustTable.AccountNum | MarkupPeriodChargeRuleCustomerEntity |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DescriptionShort description of the rule. | String (255)MarkupPeriodChargeRuleDescription | No | MarkupPeriodChargeRuleCustomerEntity | |
InventLocationIdWarehouse the rule is limited to. If blank, it applies to all warehouses. | StringMarkupPeriodChargeRuleInventLocationId | No | InventLocation.InventLocationId | MarkupPeriodChargeRuleCustomerEntity |
InventSiteIdSite the rule is limited to. If blank, it applies to all sites. | StringMarkupPeriodChargeRuleInventSiteId | No | InventSite.SiteId | MarkupPeriodChargeRuleCustomerEntity |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | 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 | MarkupPeriodChargeRuleCustomerEntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
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 | |
ValidFromFirst invoice date on which the rule is valid. | DateMarkupPeriodChargeRuleValidFrom | No | MarkupPeriodChargeRuleCustomerEntity | |
ValidToLast invoice date on which the rule is valid. | DateMarkupPeriodChargeRuleValidTo | No | MarkupPeriodChargeRuleCustomerEntity |
Indexes (2)
RuleNameIdxReplacement keyUnique, alternate key.
PeriodChargeRuleIdxPrimary indexValidTo,ValidFrom,AccountCode,AccountRelation,InventSiteId,InventLocationIdUnique, alternate key.
Relations (3)
Each relation joins MarkupPeriodChargeRule to another table on the fields shown.
CustTable→CustTableJoin on
AccountCode = null,AccountRelation = CustTable.AccountNumMany MarkupPeriodChargeRule records → zero or one CustTable record
InventLocation→InventLocationJoin on
InventLocationId = InventLocation.InventLocationIdMany MarkupPeriodChargeRule records → zero or one InventLocation record
InventSite→InventSiteJoin on
InventSiteId = InventSite.SiteIdMany MarkupPeriodChargeRule records → zero or one InventSite record
Get this data out
Tables are not exposed directly. These public entities read from MarkupPeriodChargeRule; use one of them in Power BI, Power Platform or a data management project.
MarkupPeriodChargeRuleCustomerEntity· 9 fields from this tableMarkupPeriodChargeRuleLineCustomerEntity· 1 field from this table
Need help with MarkupPeriodChargeRule in a report, an integration or a migration? Talk to Dr Dynamics.