Table
PriceDiscTable
Price agreements
Holds price agreements: the prices and discounts agreed with customers or vendors. Each record covers a party (account, group or all), an item (item, group or all), a currency, a unit and a validity period. The relation field gives the kind of agreement. Records can link back to journal lines in PriceDiscAdmTrans. No key is listed in the metadata.
- Table name
PriceDiscTable- Module
Sales and marketing- Table group
Group- Table type
Regular- Data per company
Yes- Configuration key
PriceDisc- Primary index
RecId- Replacement key
None- Key fields
None- Model
Foundation
Fields (53)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AccountCodeSays whether the agreement applies to one account, a group of accounts or all accounts. | EnumPriceDiscPartyCodePriceDiscPartyCodeType (enum) | No | MCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 6 more | |
AccountRelationThe customer or vendor account, or the group, that the agreement applies to. | String (20)PriceDiscAccountRelation | No | CustTable.AccountNumVendTable.AccountNum | MCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 6 more |
AgreementReference text for the price agreement. | StringPriceAgreement | No | None | |
AgreementHeaderExt_RUPoints to the agreement record by its system ID; used for Russia. | Int64AgreementHeaderExtRecId_RU | No | AgreementHeaderExt_RU.RecId | None |
AllocateMarkupYes/No flag showing whether the charges are included in the unit price. | EnumNoYes (enum) | No | None | |
AmountThe price or discount amount, in the transaction currency. | RealPriceDiscAmount | No | MCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 6 more | |
ApplicabilityIdPoints to a set of price attribute values. | Int64RefRecId | No | PricingRuleApplicability.RecId | None |
CalendarDaysYes/No flag linked to the working-days setting for the lead time.low confidence | EnumCalendarDaysNoYes (enum) | No | PurchasePriceAgreementEntity | |
CurrencyCurrency code of the amount. | String (3)CurrencyCode | Yes | Currency.CurrencyCode | MCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 6 more |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DeliveryTimeLead time of the agreement, as a whole number. | IntegerLeadTimeDelivery | No | PurchasePriceAgreementEntitySalesPriceAgreementEntity | |
DisregardLeadTimeYes/No flag to ignore the lead time for this agreement. | EnumDisregardLeadTimeNoYes (enum) | No | PurchasePriceAgreementEntitySalesPriceAgreementEntity | |
EditedByPriceDiscAdmTransRecIdPoints to the journal line that is editing this agreement. | Int64RefRecId | No | PriceDiscAdmTrans.RecId | None |
FromDateDate from which the agreement is valid. | DateFromDate | No | MCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 6 more | |
GenericCurrencyYes/No flag to include the generic currency. | EnumSalesGenericCurrencyNoYes (enum) | No | SalesLineDiscountAgreementEntitySalesMultiLineDiscountAgreementEntitySalesPriceAgreementEntity | |
InventBaileeFreeDays_RUNumber of free days; used for Russia. | IntegerInventBaileeFreeDays_RU | No | None | |
InventDimIdPoints to the inventory dimensions that the agreement applies to. | String (20)InventDimId | No | InventDim.inventDimId | MCRSalesPostageDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityPurchaseTotalDiscountAgreementEntityand 2 more |
IsGUPTradeAgreementPurpose not clear from the metadata.low confidence | EnumNoYesIdNoYes (enum) | No | None | |
ItemCodeSays whether the agreement applies to one item, an item group or all items. | EnumPriceDiscProductCodePriceDiscProductCodeType (enum) | No | MCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 6 more | |
ItemRelationThe item, or the item group, that the agreement applies to. | String (20)PriceDiscItemRelation | No | InventTable.ItemId | MCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 6 more |
MarkupCharges added to the price. | RealPriceMarkup | No | PurchasePriceAgreementEntitySalesPriceAgreementEntity | |
MaximumRetailPrice_INMaximum retail price; used for India. | RealMaximumRetailPrice_IN | No | None | |
MCRFixedAmountCurA fixed amount for the agreement; currency not stated in the metadata. | RealMCRFixedAmountCur | No | None | |
MCRMerchandisingEventIDPoints to a merchandising event. | StringMCRMerchandisingEventID | No | TAMMerchandisingEvent.MerchandisingEventID | None |
MCRPriceDiscGroupTypeKind of price discount group: standard, source code or trade allowance. | EnumMCRPriceDiscGroupType (enum) | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
ModuleSays whether the agreement is for inventory, customers or vendors. | EnumPriceDiscModuleModuleInventCustVend (enum) | No | PurchasePriceAgreementEntity | |
OriginalPriceDiscAdmTransRecIdPoints to the journal line that this agreement came from. | Int64RefRecId | No | PriceDiscAdmTrans.RecId | None |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PDSCalculationIdPoints to the calculation used for attribute-based pricing. | StringPDSCalculationId | No | PDSCalculationTable.CalculationId | PurchasePriceAgreementEntitySalesPriceAgreementEntity |
Percent1First discount percentage. | RealDiscPct | No | MCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 4 more | |
Percent2Second discount percentage. | RealDiscPct | No | MCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 4 more | |
PriceApplyAdjustmentFlag that lets the agreement price take a margin-based adjustment. | EnumGUPPriceDiscPriceApplyAdjustmentNoYes (enum) | No | None | |
PriceComponentCombinationPoints to a combination of price attribute groups. | Int64GUPPriceComponentCodeCombinationRecId | No | GUPPriceComponentCodePriceAttributeGroupCombination.RecId | None |
PriceGroupThe price group that the agreement relates to. | StringPriceGroupId | No | None | |
PricePreventDiscountFlag that blocks extra discounts on top of this agreement price. | EnumGUPPriceDiscPricePreventDiscountNoYes (enum) | No | None | |
PriceUnitThe quantity that the price refers to. | RealPriceUnit | No | PurchasePriceAgreementEntitySalesPriceAgreementEntity | |
PricingAttributesHeaderAreMatchedYes/No flag showing whether the header pricing attributes are matched. | EnumGUPPricingAttributesAreMatchedNoYes (enum) | No | None | |
PricingAttributesLineAreMatchedYes/No flag showing whether the line pricing attributes are matched. | EnumGUPPricingAttributesAreMatchedNoYes (enum) | No | None | |
PricingRuleHeaderSystem ID of a pricing rule used at header level. | Int64GUPRefRecId | No | GUPPricingRule.RecId | None |
PricingRuleLineSystem ID of a pricing rule used at line level. | Int64GUPRefRecId | No | GUPPricingRule.RecId | None |
QuantityAmountFromLower limit of the quantity or amount range. | RealAmountQty | No | MCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 6 more | |
QuantityAmountToUpper limit of the quantity or amount range. | RealAmountQuantityTo | No | MCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 6 more | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | MCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 6 more | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
relationKind of agreement: purchase or sales price, line, multiline or total discount, or postage discount. | EnumPriceType (enum) | No | PurchasePriceAgreementEntity | |
SearchAgainYes/No flag labelled 'Find next'. | EnumSearchAgainNoYes (enum) | No | MCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 6 more | |
SubBillFlatTierPriceFlat tier amount; currency not stated in the metadata. | RealAmountCur | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
ToDateDate until which the agreement is valid. | DateToDate | No | MCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 6 more | |
UnitAppliesToAllYes/No flag that allows unit conversion. | EnumGUPUnitAppliesToAllNoYes (enum) | No | None | |
UnitIdUnit of measure that the agreement uses. | StringUnitOfMeasureSymbol | No | UnitOfMeasure.Symbol | MCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 4 more |
Indexes (12)
PriceDiscIdxrelation,ItemCode,ItemRelation,AccountCode,AccountRelation,Currency,InventDimId,UnitId,QuantityAmountFrom,RecId,FromDate,AgreementHeaderExt_RUUnique.
AccountIdxrelation,AccountCode,AccountRelation,Currency,ItemCode,ItemRelation,UnitId,QuantityAmountFrom,FromDate,AgreementHeaderExt_RUNot unique.
ItemIdxrelation,ItemCode,ItemRelation,Currency,AccountCode,AccountRelation,UnitId,QuantityAmountFrom,FromDateNot unique.
ItemDimIdxItemRelation,ItemCode,InventDimId,AccountCodeNot unique.
GenericCurrencyGenericCurrency,relation,ItemCode,ItemRelation,AccountCode,AccountRelation,InventDimId,UnitIdNot unique.
AgreementHeaderExt_RUIdxNot unique.
PriceDiscAdmTransIdxOriginalPriceDiscAdmTransRecId,EditedByPriceDiscAdmTransRecIdNot unique.
PricingRuleHeaderIdxIsGUPTradeAgreement,relation,PricingRuleHeaderNot unique.
PricingRuleLineIdxIsGUPTradeAgreement,relation,PricingRuleLineNot unique.
PriceComponentCombinationIdxNot unique.
RulePerfIdx1Partition,DataAreaId,IsGUPTradeAgreement,relation,PricingRuleLine,FromDate,ToDate,PriceGroup,PricingRuleHeaderNot unique.
RuleLineComboIdxPartition,DataAreaId,PriceComponentCombination,PricingRuleLine,PricingRuleHeader,EditedByPriceDiscAdmTransRecId,OriginalPriceDiscAdmTransRecIdNot unique.
Relations (34)
Each relation joins PriceDiscTable to another table on the fields shown.
AgreementHeaderExt_RU→AgreementHeaderExt_RUJoin on
AgreementHeaderExt_RU = AgreementHeaderExt_RU.RecIdMany PriceDiscTable records → zero or one AgreementHeaderExt_RU record
Currency→CurrencyJoin on
Currency = Currency.CurrencyCodeMany PriceDiscTable records → exactly one Currency record
CustEndGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::EndDiscGroup,PriceDiscGroup.Module = ModuleInventCustVend::Cust,relation = PriceType::EndDiscSales,AccountCode = PriceDiscPartyCodeType::GroupId,AccountRelation = PriceDiscGroup.GroupIdMany PriceDiscTable records → zero or one PriceDiscGroup record
CustLineGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::LineDiscGroup,PriceDiscGroup.Module = ModuleInventCustVend::Cust,relation = PriceType::LineDiscSales,AccountCode = PriceDiscPartyCodeType::GroupId,AccountRelation = PriceDiscGroup.GroupIdMany PriceDiscTable records → zero or one PriceDiscGroup record
CustMultiGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::MultiLineDiscGroup,PriceDiscGroup.Module = ModuleInventCustVend::Cust,relation = PriceType::MultiLineDiscSales,AccountCode = PriceDiscPartyCodeType::GroupId,AccountRelation = PriceDiscGroup.GroupIdMany PriceDiscTable records → zero or one PriceDiscGroup record
CustPriceGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::PriceGroup,PriceDiscGroup.Module = ModuleInventCustVend::Cust,relation = PriceType::PriceSales,AccountCode = PriceDiscPartyCodeType::GroupId,AccountRelation = PriceDiscGroup.GroupIdMany PriceDiscTable records → zero or one PriceDiscGroup record
CustTable→CustTableJoin on
Module = ModuleInventCustVend::Cust,AccountCode = PriceDiscPartyCodeType::Table,AccountRelation = CustTable.AccountNumMany PriceDiscTable records → zero or one CustTable record
InventDim→InventDimJoin on
InventDimId = InventDim.inventDimIdMany PriceDiscTable records → zero or one InventDim record
InventTable→InventTableJoin on
ItemCode = PriceDiscProductCodeType::Table,ItemRelation = InventTable.ItemIdMany PriceDiscTable records → zero or one InventTable record
MCRPostageGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::MCRPostageDisc,PriceDiscGroup.Module = ModuleInventCustVend::Cust,relation = PriceType::MCRPostageDisc,AccountCode = PriceDiscPartyCodeType::GroupId,AccountRelation = PriceDiscGroup.GroupIdMany PriceDiscTable records → zero or one PriceDiscGroup record
PdsCalculationId→PDSCalculationTableJoin on
PDSCalculationId = PDSCalculationTable.CalculationIdMany PriceDiscTable records → zero or one PDSCalculationTable record
PriceDiscAdmTrans→PriceDiscAdmTransJoin on
OriginalPriceDiscAdmTransRecId = PriceDiscAdmTrans.RecIdZero or one PriceDiscTable record → zero or one PriceDiscAdmTrans record
PriceDiscAdmTransUpdate→PriceDiscAdmTransJoin on
EditedByPriceDiscAdmTransRecId = PriceDiscAdmTrans.RecIdZero or one PriceDiscTable record → zero or one PriceDiscAdmTrans record
PurchEndGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::EndDiscGroup,PriceDiscGroup.Module = ModuleInventCustVend::Invent,relation = PriceType::EndDiscPurch,ItemCode = PriceDiscProductCodeType::GroupId,ItemRelation = PriceDiscGroup.GroupIdMany PriceDiscTable records → zero or one PriceDiscGroup record
PurchLineGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::LineDiscGroup,PriceDiscGroup.Module = ModuleInventCustVend::Invent,relation = PriceType::LineDiscPurch,ItemCode = PriceDiscProductCodeType::GroupId,ItemRelation = PriceDiscGroup.GroupIdMany PriceDiscTable records → zero or one PriceDiscGroup record
PurchMultiGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::MultiLineDiscGroup,PriceDiscGroup.Module = ModuleInventCustVend::Invent,relation = PriceType::MultiLineDiscPurch,ItemCode = PriceDiscProductCodeType::GroupId,ItemRelation = PriceDiscGroup.GroupIdMany PriceDiscTable records → zero or one PriceDiscGroup record
PurchPriceGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::PriceGroup,PriceDiscGroup.Module = ModuleInventCustVend::Invent,relation = PriceType::PricePurch,ItemCode = PriceDiscProductCodeType::GroupId,ItemRelation = PriceDiscGroup.GroupIdMany PriceDiscTable records → zero or one PriceDiscGroup record
SalesEndGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::EndDiscGroup,PriceDiscGroup.Module = ModuleInventCustVend::Invent,relation = PriceType::EndDiscSales,ItemCode = PriceDiscProductCodeType::GroupId,ItemRelation = PriceDiscGroup.GroupIdMany PriceDiscTable records → zero or one PriceDiscGroup record
SalesLineGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::LineDiscGroup,PriceDiscGroup.Module = ModuleInventCustVend::Invent,relation = PriceType::LineDiscSales,ItemCode = PriceDiscProductCodeType::GroupId,ItemRelation = PriceDiscGroup.GroupIdMany PriceDiscTable records → zero or one PriceDiscGroup record
SalesMultiGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::MultiLineDiscGroup,PriceDiscGroup.Module = ModuleInventCustVend::Invent,relation = PriceType::MultiLineDiscSales,ItemCode = PriceDiscProductCodeType::GroupId,ItemRelation = PriceDiscGroup.GroupIdMany PriceDiscTable records → zero or one PriceDiscGroup record
SalesPriceGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::PriceGroup,PriceDiscGroup.Module = ModuleInventCustVend::Invent,relation = PriceType::PriceSales,ItemCode = PriceDiscProductCodeType::GroupId,ItemRelation = PriceDiscGroup.GroupIdMany PriceDiscTable records → zero or one PriceDiscGroup record
TAMMerchandisingEvent→TAMMerchandisingEventJoin on
MCRMerchandisingEventID = TAMMerchandisingEvent.MerchandisingEventIDMany PriceDiscTable records → exactly one TAMMerchandisingEvent record
UnitId→UnitOfMeasureJoin on
UnitId = UnitOfMeasure.SymbolMany PriceDiscTable records → zero or one UnitOfMeasure record
VendEndGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::EndDiscGroup,PriceDiscGroup.Module = ModuleInventCustVend::Vend,relation = PriceType::EndDiscPurch,AccountCode = PriceDiscPartyCodeType::GroupId,AccountRelation = PriceDiscGroup.GroupIdMany PriceDiscTable records → zero or one PriceDiscGroup record
VendLineGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::LineDiscGroup,PriceDiscGroup.Module = ModuleInventCustVend::Vend,relation = PriceType::LineDiscPurch,AccountCode = PriceDiscPartyCodeType::GroupId,AccountRelation = PriceDiscGroup.GroupIdMany PriceDiscTable records → zero or one PriceDiscGroup record
VendMultiGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::MultiLineDiscGroup,PriceDiscGroup.Module = ModuleInventCustVend::Vend,relation = PriceType::MultiLineDiscPurch,AccountCode = PriceDiscPartyCodeType::GroupId,AccountRelation = PriceDiscGroup.GroupIdMany PriceDiscTable records → zero or one PriceDiscGroup record
VendPriceGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::PriceGroup,PriceDiscGroup.Module = ModuleInventCustVend::Vend,relation = PriceType::PricePurch,AccountCode = PriceDiscPartyCodeType::GroupId,AccountRelation = PriceDiscGroup.GroupIdMany PriceDiscTable records → zero or one PriceDiscGroup record
VendTable→VendTableJoin on
Module = ModuleInventCustVend::Vend,AccountCode = PriceDiscPartyCodeType::Table,AccountRelation = VendTable.AccountNumMany PriceDiscTable records → zero or one VendTable record
PricingRuleApplicability→PricingRuleApplicabilityJoin on
ApplicabilityId = PricingRuleApplicability.RecIdExactly one PriceDiscTable record → exactly one PricingRuleApplicability record
GUPPricingRuleHeader→GUPPricingRuleJoin on
PricingRuleHeader = GUPPricingRule.RecIdZero or one PriceDiscTable record → exactly one GUPPricingRule record
GUPPricingRuleLine→GUPPricingRuleJoin on
PricingRuleLine = GUPPricingRule.RecIdZero or one PriceDiscTable record → exactly one GUPPricingRule record
GUPPriceComponentCodePriceAttributeGroupCombination→GUPPriceComponentCodePriceAttributeGroupCombinationJoin on
PriceComponentCombination = GUPPriceComponentCodePriceAttributeGroupCombination.RecIdZero or one PriceDiscTable record → zero or one GUPPriceComponentCodePriceAttributeGroupCombination record
GUPCustPriceGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::PriceGroup,PriceDiscGroup.Module = ModuleInventCustVend::Cust,relation = PriceType::PriceSales,PriceGroup = PriceDiscGroup.GroupId,PriceDiscGroup.PriceGroupAttributeEnable = NoYes::YesMany PriceDiscTable records → zero or one PriceDiscGroup record
GUPSalesPriceGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::PriceGroup,PriceDiscGroup.Module = ModuleInventCustVend::Invent,relation = PriceType::PriceSales,PriceGroup = PriceDiscGroup.GroupId,PriceDiscGroup.PriceGroupAttributeEnable = NoYes::YesMany PriceDiscTable records → zero or one PriceDiscGroup record
Get this data out
Tables are not exposed directly. These public entities read from PriceDiscTable; use one of them in Power BI, Power Platform or a data management project.
MCRSalesPostageDiscountAgreementEntity· 16 fields from this tablePurchaseLineDiscountAgreementEntity· 15 fields from this tablePurchaseMultiLineDiscountAgreementEntity· 16 fields from this tablePurchasePriceAgreementEntity· 21 fields from this tablePurchaseTotalDiscountAgreementEntity· 15 fields from this tableSalesLineDiscountAgreementEntity· 16 fields from this tableSalesMultiLineDiscountAgreementEntity· 17 fields from this tableSalesPriceAgreementEntity· 19 fields from this tableSalesTotalDiscountAgreementEntity· 15 fields from this table
Need help with PriceDiscTable in a report, an integration or a migration? Talk to Dr Dynamics.