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 descriptionType / EDT / enumMandatoryReferencesIn public entities
PricingRunIdThe pricing calculation that the margin belongs to.String (20)
PdsComdPricingRunId
YesPdsComdPricingRun.PricingRunIdNone
PricingTemplateIdThe commodity pricing template used.String
PdsComdPricingTemplateId
YesPdsComdPricingTemplate.PricingTemplateIdNone
ProfitSetProfit setting used: standard, profit 1, profit 2 or profit 3.Enum
CostProfitSet (enum)
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PricingMarginIdID of the pricing margin.String (20)
PdsComdPricingMarginId
YesNone
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
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (2)

Relations (2)

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

  • PdsComdPricingRun → PdsComdPricingRun

    Join on PricingRunId = PdsComdPricingRun.PricingRunId

    Many PdsComdPricingMargin records → exactly one PdsComdPricingRun record

  • PdsComdPricingTemplate → PdsComdPricingTemplate

    Join on PricingTemplateId = PdsComdPricingTemplate.PricingTemplateId

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

Email sales@drdynamics.co.uk