Table
MarkupPeriodChargeInvoiceLineBase
Line invoice base
Holds the line invoice base for period charge calculation. Each record links to a period charge rule line, and to a posted sales invoice or a free text invoice line. It also stores a copy of the rule and rule line settings: scope, site, warehouse, validity dates, thresholds, charge code and currencies.
- Table name
MarkupPeriodChargeInvoiceLineBase- Module
Accounts receivable- Table group
Miscellaneous- Table type
Regular- Data per company
Yes- Configuration key
Markup- Primary index
None- Replacement key
None- Key fields
None- Model
Foundation
Fields (30)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
FreeTextInvoiceLineRecIdSystem record ID of the related free text invoice line. | Int64MarkupPeriodChargeFreeTextInvoiceLineRecId | No | CustInvoiceLine.RecId | None |
InstanceRelationTypeNumber that gives the relation type of the record.low confidence | Int64 | No | None | |
InvoiceLineBaseIdUnique text key of the line invoice base record within the company. | String (255)MarkupPeriodChargeInvoiceLineBaseId | Yes | None | |
MarkupPeriodChargeRuleLineRecIdSystem record ID of the related period charge rule line. | Int64MarkupPeriodChargeRuleLineRecId | Yes | MarkupPeriodChargeRuleLine.RecId | 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 | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
RuleAccountCodeScope of customers for the rule: all customers or one customer. | EnumMarkupPeriodChargeRuleAccountCodeTableAll (enum) | No | None | |
RuleAccountRelationCustomer account the rule applies to when the scope is a single customer. | String (20)MarkupPeriodChargeRuleAccountRelation | No | CustTable.AccountNum | None |
RuleDescriptionFree text explaining what the period charge rule is for. | String (255)MarkupPeriodChargeRuleDescription | No | None | |
RuleInventLocationIdWarehouse the rule applies to. Blank means all warehouses. | StringMarkupPeriodChargeRuleInventLocationId | No | InventLocation.InventLocationId | None |
RuleInventSiteIdSite the rule applies to. Blank means all sites. | StringMarkupPeriodChargeRuleInventSiteId | No | InventSite.SiteId | None |
RuleLineAmountCurrencyCodeCurrency of the charge amount for quantity threshold lines, pointing to a currency record. | String (3)MarkupPeriodChargeRuleAmountCurrencyCode | No | Currency.CurrencyCode | None |
RuleLineChargeAmountFixed fee billed to the customer for a rule line when the quantity target is missed in a period. It is shown on the free text invoice line. | RealMarkupPeriodChargeRuleChargeAmount | No | None | |
RuleLineChargeCodeCharge code the rule line applies to. | StringMarkupPeriodChargeRuleChargeCode | No | None | |
RuleLineCurrencyCodeCurrency of the monetary threshold, pointing to a currency record. | String (3)MarkupPeriodChargeRuleCurrencyCode | No | Currency.CurrencyCode | None |
RuleLineDebitChargeAmountOnlyYes/No setting to include only debit charge amounts. | EnumMarkupPeriodChargeRuleDebitChargeAmountOnlyNoYes (enum) | No | None | |
RuleLineDebitQuantityOnlyYes/No setting to include only debit quantities. | EnumMarkupPeriodChargeRuleDebitQuantityOnlyNoYes (enum) | No | None | |
RuleLineMonetaryThresholdMoney value that the rule line uses as its threshold. | RealMarkupPeriodChargeRuleMonetaryThreshold | No | None | |
RuleLineQuantityThresholdQuantity that the rule line uses as its threshold. | RealMarkupPeriodChargeRuleQuantityThreshold | No | None | |
RuleLineTypeType of rule line, such as monetary threshold or quantity threshold. | EnumMarkupPeriodChargeRuleLineTypeIdMarkupPeriodChargeRuleLineType (enum) | No | None | |
RuleLineUnitSymbolUnit of measure for the quantity threshold, pointing to a unit record. | StringMarkupPeriodChargeRuleUnitSymbol | No | UnitOfMeasure.Symbol | None |
RuleNameName of the period charge rule. | String (20)MarkupPeriodChargeRuleName | No | MarkupPeriodChargeRule.RuleName | None |
RuleValidFromFirst invoice date on which the rule is valid. | DateMarkupPeriodChargeRuleValidFrom | No | None | |
RuleValidToLast invoice date on which the rule is valid. | DateMarkupPeriodChargeRuleValidTo | No | None | |
SalesInvoiceJourRecIdSystem record ID of the posted sales invoice in the customer invoice journal. | Int64MarkupPeriodChargeCustInvoiceJourRecId | Yes | CustInvoiceJour.RecId | None |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (3)
InvoiceLineBaseIdxUnique.
FreeTextInvoiceRuleLineIdxNot unique.
SalesInvoiceJourIdxSalesInvoiceJourRecId,MarkupPeriodChargeRuleLineRecIdNot unique.
Relations (11)
Each relation joins MarkupPeriodChargeInvoiceLineBase to another table on the fields shown.
MarkupPeriodChargeRuleLine→MarkupPeriodChargeRuleLineJoin on
MarkupPeriodChargeRuleLineRecId = MarkupPeriodChargeRuleLine.RecIdMany MarkupPeriodChargeInvoiceLineBase records → exactly one MarkupPeriodChargeRuleLine record
FreeTextInvoiceLine→CustInvoiceLineJoin on
FreeTextInvoiceLineRecId = CustInvoiceLine.RecIdMany MarkupPeriodChargeInvoiceLineBase records → zero or one CustInvoiceLine record
SalesInvoiceJour→CustInvoiceJourJoin on
SalesInvoiceJourRecId = CustInvoiceJour.RecIdMany MarkupPeriodChargeInvoiceLineBase records → exactly one CustInvoiceJour record
PeriodChargeRule→MarkupPeriodChargeRuleJoin on
RuleName = MarkupPeriodChargeRule.RuleNameMany MarkupPeriodChargeInvoiceLineBase records → zero or one MarkupPeriodChargeRule record
CustTable→CustTableJoin on
RuleAccountCode = null,RuleAccountRelation = CustTable.AccountNumMany MarkupPeriodChargeInvoiceLineBase records → zero or one CustTable record
InventLocation→InventLocationJoin on
RuleInventLocationId = InventLocation.InventLocationIdMany MarkupPeriodChargeInvoiceLineBase records → zero or one InventLocation record
InventSite→InventSiteJoin on
RuleInventSiteId = InventSite.SiteIdMany MarkupPeriodChargeInvoiceLineBase records → zero or one InventSite record
CustomerMarkupTable→MarkupTableJoin on
RuleLineChargeCode = MarkupTable.MarkupCode,MarkupTable.ModuleType = MarkupModuleType::CustMany MarkupPeriodChargeInvoiceLineBase records → zero or one MarkupTable record
CurrencyCode→CurrencyJoin on
RuleLineCurrencyCode = Currency.CurrencyCodeMany MarkupPeriodChargeInvoiceLineBase records → zero or one Currency record
AmountCurrencyCode→CurrencyJoin on
RuleLineAmountCurrencyCode = Currency.CurrencyCodeMany MarkupPeriodChargeInvoiceLineBase records → zero or one Currency record
UnitOfMeasure→UnitOfMeasureJoin on
RuleLineUnitSymbol = UnitOfMeasure.SymbolMany MarkupPeriodChargeInvoiceLineBase records → zero or one UnitOfMeasure record
Get this data out
No public entity reads from MarkupPeriodChargeInvoiceLineBase. Its data is only reachable through the application, a custom entity or a database export.
Need help with MarkupPeriodChargeInvoiceLineBase in a report, an integration or a migration? Talk to Dr Dynamics.