Table
PdsComdPricingMargin
Pricing margin
Holds a pricing margin for a commodity pricing calculation. Each record is tied to a pricing run, a pricing template and a profit setting. Pricing margin lines point back to it.
- Table name
PdsComdPricingMargin- Module
Sales and marketing- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
PdsCommodity- Primary index
RunTemplateProfitIdx- Replacement key
None- Key fields
PricingRunId, PricingTemplateId, ProfitSet- Model
Foundation
Fields (9)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
PricingRunIdThe pricing calculation that the margin belongs to. | String (20)PdsComdPricingRunId | Yes | PdsComdPricingRun.PricingRunId | None |
PricingTemplateIdThe commodity pricing template used. | StringPdsComdPricingTemplateId | Yes | PdsComdPricingTemplate.PricingTemplateId | None |
ProfitSetProfit setting used: standard, profit 1, profit 2 or profit 3. | EnumCostProfitSet (enum) | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PricingMarginIdID of the pricing margin. | String (20)PdsComdPricingMarginId | Yes | 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 | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (2)
RunTemplateProfitIdxPrimary indexPricingRunId,PricingTemplateId,ProfitSetUnique, alternate key.
MarginIdIdxUnique.
Relations (2)
Each relation joins PdsComdPricingMargin to another table on the fields shown.
PdsComdPricingRun→PdsComdPricingRunJoin on
PricingRunId = PdsComdPricingRun.PricingRunIdMany PdsComdPricingMargin records → exactly one PdsComdPricingRun record
PdsComdPricingTemplate→PdsComdPricingTemplateJoin on
PricingTemplateId = PdsComdPricingTemplate.PricingTemplateIdMany PdsComdPricingMargin records → exactly one PdsComdPricingTemplate record
Get this data out
No public entity reads from PdsComdPricingMargin. Its data is only reachable through the application, a custom entity or a database export.
Need help with PdsComdPricingMargin in a report, an integration or a migration? Talk to Dr Dynamics.