Table

PdsComdPricingTemplateLine

Commodity pricing template lines

Holds the lines of a commodity pricing template. Each line sets margin values, a quantity range and an order quantity. It can be limited to a customer, customer group or all, and to an item, item group or all. The table has no defined key.

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

Fields (17)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
InventDimIdInventory dimension combination for the line. It points to an inventory dimension record.String (20)
InventDimId
NoInventDim.inventDimIdNone
InventQtyOrder quantity for the line.Real
PdsInventQtyOrdered
YesNone
InventQtyFromStart of the quantity range for the line.Real
PdsInventQtyFrom
NoNone
InventQtyToEnd of the quantity range for the line.Real
PdsInventQtyTo
NoNone
MarginAccountCodeSays whether the line applies to one customer, a customer group or all customers.Enum
PriceDiscPartyCode
PriceDiscPartyCodeType (enum)
NoNone
MarginAccountRelationCustomer account, or group, that the line applies to. It points to a customer.String (20)
PdsComdMarginAccountRelation
NoCustTable.AccountNumNone
MarginChangeMargin amount for the line.Real
PdsComdMarginChange
NoNone
MarginItemCodeSays whether the line applies to one item, an item group or all items.Enum
PriceDiscProductCode
PriceDiscProductCodeType (enum)
NoNone
MarginItemRelationItem or item group that the line applies to. It points to an item group.String (20)
PdsComdMarginItemRelation
NoInventItemGroup.ItemGroupIdNone
MarginMultMultiplier applied to cost to give the margin.Real
PdsComdMarginMult
NoNone
MarginPercMargin as a percentage.Real
PdsComdMarginPerc
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PricingTemplateIdPricing template that the line belongs to. It points to the commodity pricing template.String
PdsComdPricingTemplateId
YesPdsComdPricingTemplate.PricingTemplateIdNone
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 (6)

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

  • CustomerTable → CustTable

    Join on MarginAccountCode = PriceDiscPartyCodeType::Table, MarginAccountRelation = CustTable.AccountNum

    Many PdsComdPricingTemplateLine records → zero or one CustTable record

  • DefaultOrderItems → PdsDefaultOrderItems

    Join on MarginItemCode = PriceDiscProductCodeType::Table, MarginItemRelation = PdsDefaultOrderItems.ItemId, PdsDefaultOrderItems.PmfProductType = 4, PdsDefaultOrderItems.PmfProductType = 5, PdsDefaultOrderItems.DefaultOrderType = 1

    Many PdsComdPricingTemplateLine records → zero or one PdsDefaultOrderItems record

  • InventDim → InventDim

    Join on InventDimId = InventDim.inventDimId

    Many PdsComdPricingTemplateLine records → zero or one InventDim record

  • ItemGroup → InventItemGroup

    Join on MarginItemCode = PriceDiscProductCodeType::GroupId, MarginItemRelation = InventItemGroup.ItemGroupId

    Many PdsComdPricingTemplateLine records → zero or one InventItemGroup record

  • PdsComdPricingTemplate → PdsComdPricingTemplate

    Join on PricingTemplateId = PdsComdPricingTemplate.PricingTemplateId

    Many PdsComdPricingTemplateLine records → exactly one PdsComdPricingTemplate record

  • PriceDiscGroup → PriceDiscGroup

    Join on MarginAccountRelation = PriceDiscGroup.GroupId, MarginAccountCode = PriceDiscPartyCodeType::GroupId

    Many PdsComdPricingTemplateLine records → zero or one PriceDiscGroup record

Get this data out

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

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

Email sales@drdynamics.co.uk