Table

PdsComdPricingMarginLine

Pricing margin lines

Holds the lines of a commodity pricing margin. Each line has an item, a quantity range, and the previous and new cost, margin and price. It can link to a bill of materials, a route and a cost calculation, and it has no defined key.

Table name
PdsComdPricingMarginLine
Module
Sales and marketing
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
PdsCommodity
Primary index
RecId
Replacement key
None
Key fields
None
Model
Foundation

Fields (25)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
BOMIdBill of materials or formula used for the line.String (20)
BOMId
NoBOMTable.BOMIdNone
CostNew cost for the line.Real
PdsCost
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DefaultDimensionDefault financial dimension set for the line.Int64
LedgerDefaultDimensionValueSet
NoDimensionAttributeValueSet.RecIdNone
InventDimIdInventory dimensions for the line.String (20)
InventDimId
NoInventDim.inventDimIdNone
InventQtyQuantity for the line, in the inventory unit.Real
InventQty
NoNone
InventQtyFromStart of the quantity range.Real
PdsInventQtyFrom
NoNone
InventQtyToEnd of the quantity range.Real
PdsInventQtyTo
NoNone
ItemIdItem that the line relates to.String (20)
ItemId
NoInventTable.ItemIdNone
MarginNew margin for the line.Real
PdsComdMargin
NoNone
MarginAccountCodeSays whether the margin applies to one account, a group or all.Enum
PdsComdMarginAccountCode
PriceDiscPartyCodeType (enum)
NoNone
MarginAccountRelationAccount or group chosen for the margin.String (20)
PdsComdMarginAccountRelation
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PrevCostCost before the change.Real
PdsComdPrevCost
NoNone
PrevMarginMargin before the change.Real
PdsComdPrevMargin
NoNone
PrevPricePrice before the change.Real
PdsComdPrevPrice
NoNone
PriceNew price for the line.Real
PdsComdPrice
NoNone
PriceCalcIdCost calculation linked to the line.String (20)
PriceCalcId
NoBOMCalcTable.PriceCalcIdNone
PricingMarginIdThe pricing margin that the line belongs to.String (20)
PdsComdPricingMarginId
NoPdsComdPricingMargin.PricingMarginIdNone
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
RouteIdRoute used for the line.String (20)
RouteId
NoRouteTable.RouteIdNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
UnitIDInventory unit for the line.String
InventUnitId
NoUnitOfMeasure.SymbolNone
UpdateAgreementShows whether the trade agreement is updated (Yes or No).Enum
PdsUpdateAgreement
NoYes (enum)
NoNone

Indexes (2)

Relations (8)

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

  • BOMCalcTable → BOMCalcTable

    Join on PriceCalcId = BOMCalcTable.PriceCalcId

    Many PdsComdPricingMarginLine records → zero or one BOMCalcTable record

  • BOMTable → BOMTable

    Join on BOMId = BOMTable.BOMId

    Many PdsComdPricingMarginLine records → zero or one BOMTable record

  • DefaultDimension → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many PdsComdPricingMarginLine records → zero or one DimensionAttributeValueSet record

  • InventDim → InventDim

    Join on InventDimId = InventDim.inventDimId

    Many PdsComdPricingMarginLine records → zero or one InventDim record

  • InventTable → InventTable

    Join on ItemId = InventTable.ItemId

    Many PdsComdPricingMarginLine records → zero or one InventTable record

  • PdsComdPricingMargin → PdsComdPricingMargin

    Join on PricingMarginId = PdsComdPricingMargin.PricingMarginId

    Many PdsComdPricingMarginLine records → zero or one PdsComdPricingMargin record

  • RouteTable → RouteTable

    Join on RouteId = RouteTable.RouteId

    Many PdsComdPricingMarginLine records → zero or one RouteTable record

  • UnitOfMeasure → UnitOfMeasure

    Join on UnitID = UnitOfMeasure.Symbol

    Many PdsComdPricingMarginLine records → zero or one UnitOfMeasure record

Get this data out

No public entity reads from PdsComdPricingMarginLine. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk