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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
BOMIdBill of materials or formula used for the line. | String (20)BOMId | No | BOMTable.BOMId | None |
CostNew cost for the line. | RealPdsCost | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultDimensionDefault financial dimension set for the line. | Int64LedgerDefaultDimensionValueSet | No | DimensionAttributeValueSet.RecId | None |
InventDimIdInventory dimensions for the line. | String (20)InventDimId | No | InventDim.inventDimId | None |
InventQtyQuantity for the line, in the inventory unit. | RealInventQty | No | None | |
InventQtyFromStart of the quantity range. | RealPdsInventQtyFrom | No | None | |
InventQtyToEnd of the quantity range. | RealPdsInventQtyTo | No | None | |
ItemIdItem that the line relates to. | String (20)ItemId | No | InventTable.ItemId | None |
MarginNew margin for the line. | RealPdsComdMargin | No | None | |
MarginAccountCodeSays whether the margin applies to one account, a group or all. | EnumPdsComdMarginAccountCodePriceDiscPartyCodeType (enum) | No | None | |
MarginAccountRelationAccount or group chosen for the margin. | String (20)PdsComdMarginAccountRelation | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PrevCostCost before the change. | RealPdsComdPrevCost | No | None | |
PrevMarginMargin before the change. | RealPdsComdPrevMargin | No | None | |
PrevPricePrice before the change. | RealPdsComdPrevPrice | No | None | |
PriceNew price for the line. | RealPdsComdPrice | No | None | |
PriceCalcIdCost calculation linked to the line. | String (20)PriceCalcId | No | BOMCalcTable.PriceCalcId | None |
PricingMarginIdThe pricing margin that the line belongs to. | String (20)PdsComdPricingMarginId | No | PdsComdPricingMargin.PricingMarginId | 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 | |
RouteIdRoute used for the line. | String (20)RouteId | No | RouteTable.RouteId | None |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
UnitIDInventory unit for the line. | StringInventUnitId | No | UnitOfMeasure.Symbol | None |
UpdateAgreementShows whether the trade agreement is updated (Yes or No). | EnumPdsUpdateAgreementNoYes (enum) | No | None |
Indexes (2)
MarginItemDimAccountQtyFromIdxPricingMarginId,ItemId,InventDimId,MarginAccountCode,MarginAccountRelation,InventQtyFromUnique.
MarginItemDimAccountQtyIdxPricingMarginId,ItemId,InventDimId,MarginAccountCode,MarginAccountRelation,InventQtyNot unique.
Relations (8)
Each relation joins PdsComdPricingMarginLine to another table on the fields shown.
BOMCalcTable→BOMCalcTableJoin on
PriceCalcId = BOMCalcTable.PriceCalcIdMany PdsComdPricingMarginLine records → zero or one BOMCalcTable record
BOMTable→BOMTableJoin on
BOMId = BOMTable.BOMIdMany PdsComdPricingMarginLine records → zero or one BOMTable record
DefaultDimension→DimensionAttributeValueSetJoin on
DefaultDimension = DimensionAttributeValueSet.RecIdMany PdsComdPricingMarginLine records → zero or one DimensionAttributeValueSet record
InventDim→InventDimJoin on
InventDimId = InventDim.inventDimIdMany PdsComdPricingMarginLine records → zero or one InventDim record
InventTable→InventTableJoin on
ItemId = InventTable.ItemIdMany PdsComdPricingMarginLine records → zero or one InventTable record
PdsComdPricingMargin→PdsComdPricingMarginJoin on
PricingMarginId = PdsComdPricingMargin.PricingMarginIdMany PdsComdPricingMarginLine records → zero or one PdsComdPricingMargin record
RouteTable→RouteTableJoin on
RouteId = RouteTable.RouteIdMany PdsComdPricingMarginLine records → zero or one RouteTable record
UnitOfMeasure→UnitOfMeasureJoin on
UnitID = UnitOfMeasure.SymbolMany 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.