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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
InventDimIdInventory dimension combination for the line. It points to an inventory dimension record. | String (20)InventDimId | No | InventDim.inventDimId | None |
InventQtyOrder quantity for the line. | RealPdsInventQtyOrdered | Yes | None | |
InventQtyFromStart of the quantity range for the line. | RealPdsInventQtyFrom | No | None | |
InventQtyToEnd of the quantity range for the line. | RealPdsInventQtyTo | No | None | |
MarginAccountCodeSays whether the line applies to one customer, a customer group or all customers. | EnumPriceDiscPartyCodePriceDiscPartyCodeType (enum) | No | None | |
MarginAccountRelationCustomer account, or group, that the line applies to. It points to a customer. | String (20)PdsComdMarginAccountRelation | No | CustTable.AccountNum | None |
MarginChangeMargin amount for the line. | RealPdsComdMarginChange | No | None | |
MarginItemCodeSays whether the line applies to one item, an item group or all items. | EnumPriceDiscProductCodePriceDiscProductCodeType (enum) | No | None | |
MarginItemRelationItem or item group that the line applies to. It points to an item group. | String (20)PdsComdMarginItemRelation | No | InventItemGroup.ItemGroupId | None |
MarginMultMultiplier applied to cost to give the margin. | RealPdsComdMarginMult | No | None | |
MarginPercMargin as a percentage. | RealPdsComdMarginPerc | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PricingTemplateIdPricing template that the line belongs to. It points to the commodity pricing template. | StringPdsComdPricingTemplateId | Yes | PdsComdPricingTemplate.PricingTemplateId | 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)
TemplateItemDimAccountQtyFromIdxPricingTemplateId,MarginItemCode,MarginItemRelation,InventDimId,MarginAccountCode,MarginAccountRelation,InventQtyFromUnique.
TemplateItemDimAccountQtyIdxPricingTemplateId,MarginItemCode,MarginItemRelation,InventDimId,MarginAccountCode,MarginAccountRelation,InventQtyNot unique.
Relations (6)
Each relation joins PdsComdPricingTemplateLine to another table on the fields shown.
CustomerTable→CustTableJoin on
MarginAccountCode = PriceDiscPartyCodeType::Table,MarginAccountRelation = CustTable.AccountNumMany PdsComdPricingTemplateLine records → zero or one CustTable record
DefaultOrderItems→PdsDefaultOrderItemsJoin on
MarginItemCode = PriceDiscProductCodeType::Table,MarginItemRelation = PdsDefaultOrderItems.ItemId,PdsDefaultOrderItems.PmfProductType = 4,PdsDefaultOrderItems.PmfProductType = 5,PdsDefaultOrderItems.DefaultOrderType = 1Many PdsComdPricingTemplateLine records → zero or one PdsDefaultOrderItems record
InventDim→InventDimJoin on
InventDimId = InventDim.inventDimIdMany PdsComdPricingTemplateLine records → zero or one InventDim record
ItemGroup→InventItemGroupJoin on
MarginItemCode = PriceDiscProductCodeType::GroupId,MarginItemRelation = InventItemGroup.ItemGroupIdMany PdsComdPricingTemplateLine records → zero or one InventItemGroup record
PdsComdPricingTemplate→PdsComdPricingTemplateJoin on
PricingTemplateId = PdsComdPricingTemplate.PricingTemplateIdMany PdsComdPricingTemplateLine records → exactly one PdsComdPricingTemplate record
PriceDiscGroup→PriceDiscGroupJoin on
MarginAccountRelation = PriceDiscGroup.GroupId,MarginAccountCode = PriceDiscPartyCodeType::GroupIdMany 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.