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 descriptionType / EDT / enumMandatoryReferencesIn public entities
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
FreeTextInvoiceLineRecIdSystem record ID of the related free text invoice line.Int64
MarkupPeriodChargeFreeTextInvoiceLineRecId
NoCustInvoiceLine.RecIdNone
InstanceRelationTypeNumber that gives the relation type of the record.low confidenceInt64NoNone
InvoiceLineBaseIdUnique text key of the line invoice base record within the company.String (255)
MarkupPeriodChargeInvoiceLineBaseId
YesNone
MarkupPeriodChargeRuleLineRecIdSystem record ID of the related period charge rule line.Int64
MarkupPeriodChargeRuleLineRecId
YesMarkupPeriodChargeRuleLine.RecIdNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
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
RuleAccountCodeScope of customers for the rule: all customers or one customer.Enum
MarkupPeriodChargeRuleAccountCode
TableAll (enum)
NoNone
RuleAccountRelationCustomer account the rule applies to when the scope is a single customer.String (20)
MarkupPeriodChargeRuleAccountRelation
NoCustTable.AccountNumNone
RuleDescriptionFree text explaining what the period charge rule is for.String (255)
MarkupPeriodChargeRuleDescription
NoNone
RuleInventLocationIdWarehouse the rule applies to. Blank means all warehouses.String
MarkupPeriodChargeRuleInventLocationId
NoInventLocation.InventLocationIdNone
RuleInventSiteIdSite the rule applies to. Blank means all sites.String
MarkupPeriodChargeRuleInventSiteId
NoInventSite.SiteIdNone
RuleLineAmountCurrencyCodeCurrency of the charge amount for quantity threshold lines, pointing to a currency record.String (3)
MarkupPeriodChargeRuleAmountCurrencyCode
NoCurrency.CurrencyCodeNone
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.Real
MarkupPeriodChargeRuleChargeAmount
NoNone
RuleLineChargeCodeCharge code the rule line applies to.String
MarkupPeriodChargeRuleChargeCode
NoNone
RuleLineCurrencyCodeCurrency of the monetary threshold, pointing to a currency record.String (3)
MarkupPeriodChargeRuleCurrencyCode
NoCurrency.CurrencyCodeNone
RuleLineDebitChargeAmountOnlyYes/No setting to include only debit charge amounts.Enum
MarkupPeriodChargeRuleDebitChargeAmountOnly
NoYes (enum)
NoNone
RuleLineDebitQuantityOnlyYes/No setting to include only debit quantities.Enum
MarkupPeriodChargeRuleDebitQuantityOnly
NoYes (enum)
NoNone
RuleLineMonetaryThresholdMoney value that the rule line uses as its threshold.Real
MarkupPeriodChargeRuleMonetaryThreshold
NoNone
RuleLineQuantityThresholdQuantity that the rule line uses as its threshold.Real
MarkupPeriodChargeRuleQuantityThreshold
NoNone
RuleLineTypeType of rule line, such as monetary threshold or quantity threshold.Enum
MarkupPeriodChargeRuleLineTypeId
MarkupPeriodChargeRuleLineType (enum)
NoNone
RuleLineUnitSymbolUnit of measure for the quantity threshold, pointing to a unit record.String
MarkupPeriodChargeRuleUnitSymbol
NoUnitOfMeasure.SymbolNone
RuleNameName of the period charge rule.String (20)
MarkupPeriodChargeRuleName
NoMarkupPeriodChargeRule.RuleNameNone
RuleValidFromFirst invoice date on which the rule is valid.Date
MarkupPeriodChargeRuleValidFrom
NoNone
RuleValidToLast invoice date on which the rule is valid.Date
MarkupPeriodChargeRuleValidTo
NoNone
SalesInvoiceJourRecIdSystem record ID of the posted sales invoice in the customer invoice journal.Int64
MarkupPeriodChargeCustInvoiceJourRecId
YesCustInvoiceJour.RecIdNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (3)

Relations (11)

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

  • MarkupPeriodChargeRuleLine → MarkupPeriodChargeRuleLine

    Join on MarkupPeriodChargeRuleLineRecId = MarkupPeriodChargeRuleLine.RecId

    Many MarkupPeriodChargeInvoiceLineBase records → exactly one MarkupPeriodChargeRuleLine record

  • FreeTextInvoiceLine → CustInvoiceLine

    Join on FreeTextInvoiceLineRecId = CustInvoiceLine.RecId

    Many MarkupPeriodChargeInvoiceLineBase records → zero or one CustInvoiceLine record

  • SalesInvoiceJour → CustInvoiceJour

    Join on SalesInvoiceJourRecId = CustInvoiceJour.RecId

    Many MarkupPeriodChargeInvoiceLineBase records → exactly one CustInvoiceJour record

  • PeriodChargeRule → MarkupPeriodChargeRule

    Join on RuleName = MarkupPeriodChargeRule.RuleName

    Many MarkupPeriodChargeInvoiceLineBase records → zero or one MarkupPeriodChargeRule record

  • CustTable → CustTable

    Join on RuleAccountCode = null, RuleAccountRelation = CustTable.AccountNum

    Many MarkupPeriodChargeInvoiceLineBase records → zero or one CustTable record

  • InventLocation → InventLocation

    Join on RuleInventLocationId = InventLocation.InventLocationId

    Many MarkupPeriodChargeInvoiceLineBase records → zero or one InventLocation record

  • InventSite → InventSite

    Join on RuleInventSiteId = InventSite.SiteId

    Many MarkupPeriodChargeInvoiceLineBase records → zero or one InventSite record

  • CustomerMarkupTable → MarkupTable

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

    Many MarkupPeriodChargeInvoiceLineBase records → zero or one MarkupTable record

  • CurrencyCode → Currency

    Join on RuleLineCurrencyCode = Currency.CurrencyCode

    Many MarkupPeriodChargeInvoiceLineBase records → zero or one Currency record

  • AmountCurrencyCode → Currency

    Join on RuleLineAmountCurrencyCode = Currency.CurrencyCode

    Many MarkupPeriodChargeInvoiceLineBase records → zero or one Currency record

  • UnitOfMeasure → UnitOfMeasure

    Join on RuleLineUnitSymbol = UnitOfMeasure.Symbol

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

Email sales@drdynamics.co.uk