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 descriptionType / EDT / enumMandatoryReferencesIn public entities
AccountCodeSays whether the agreement applies to one account, a group of accounts or all accounts.Enum
PriceDiscPartyCode
PriceDiscPartyCodeType (enum)
NoMCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 6 more
AccountRelationThe customer or vendor account, or the group, that the agreement applies to.String (20)
PriceDiscAccountRelation
NoCustTable.AccountNumVendTable.AccountNumMCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 6 more
AgreementReference text for the price agreement.String
PriceAgreement
NoNone
AgreementHeaderExt_RUPoints to the agreement record by its system ID; used for Russia.Int64
AgreementHeaderExtRecId_RU
NoAgreementHeaderExt_RU.RecIdNone
AllocateMarkupYes/No flag showing whether the charges are included in the unit price.Enum
NoYes (enum)
NoNone
AmountThe price or discount amount, in the transaction currency.Real
PriceDiscAmount
NoMCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 6 more
ApplicabilityIdPoints to a set of price attribute values.Int64
RefRecId
NoPricingRuleApplicability.RecIdNone
CalendarDaysYes/No flag linked to the working-days setting for the lead time.low confidenceEnum
CalendarDays
NoYes (enum)
NoPurchasePriceAgreementEntity
CurrencyCurrency code of the amount.String (3)
CurrencyCode
YesCurrency.CurrencyCodeMCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 6 more
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DeliveryTimeLead time of the agreement, as a whole number.Integer
LeadTimeDelivery
NoPurchasePriceAgreementEntitySalesPriceAgreementEntity
DisregardLeadTimeYes/No flag to ignore the lead time for this agreement.Enum
DisregardLeadTime
NoYes (enum)
NoPurchasePriceAgreementEntitySalesPriceAgreementEntity
EditedByPriceDiscAdmTransRecIdPoints to the journal line that is editing this agreement.Int64
RefRecId
NoPriceDiscAdmTrans.RecIdNone
FromDateDate from which the agreement is valid.Date
FromDate
NoMCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 6 more
GenericCurrencyYes/No flag to include the generic currency.Enum
SalesGenericCurrency
NoYes (enum)
NoSalesLineDiscountAgreementEntitySalesMultiLineDiscountAgreementEntitySalesPriceAgreementEntity
InventBaileeFreeDays_RUNumber of free days; used for Russia.Integer
InventBaileeFreeDays_RU
NoNone
InventDimIdPoints to the inventory dimensions that the agreement applies to.String (20)
InventDimId
NoInventDim.inventDimIdMCRSalesPostageDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityPurchaseTotalDiscountAgreementEntityand 2 more
IsGUPTradeAgreementPurpose not clear from the metadata.low confidenceEnum
NoYesId
NoYes (enum)
NoNone
ItemCodeSays whether the agreement applies to one item, an item group or all items.Enum
PriceDiscProductCode
PriceDiscProductCodeType (enum)
NoMCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 6 more
ItemRelationThe item, or the item group, that the agreement applies to.String (20)
PriceDiscItemRelation
NoInventTable.ItemIdMCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 6 more
MarkupCharges added to the price.Real
PriceMarkup
NoPurchasePriceAgreementEntitySalesPriceAgreementEntity
MaximumRetailPrice_INMaximum retail price; used for India.Real
MaximumRetailPrice_IN
NoNone
MCRFixedAmountCurA fixed amount for the agreement; currency not stated in the metadata.Real
MCRFixedAmountCur
NoNone
MCRMerchandisingEventIDPoints to a merchandising event.String
MCRMerchandisingEventID
NoTAMMerchandisingEvent.MerchandisingEventIDNone
MCRPriceDiscGroupTypeKind of price discount group: standard, source code or trade allowance.Enum
MCRPriceDiscGroupType (enum)
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
ModuleSays whether the agreement is for inventory, customers or vendors.Enum
PriceDiscModule
ModuleInventCustVend (enum)
NoPurchasePriceAgreementEntity
OriginalPriceDiscAdmTransRecIdPoints to the journal line that this agreement came from.Int64
RefRecId
NoPriceDiscAdmTrans.RecIdNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PDSCalculationIdPoints to the calculation used for attribute-based pricing.String
PDSCalculationId
NoPDSCalculationTable.CalculationIdPurchasePriceAgreementEntitySalesPriceAgreementEntity
Percent1First discount percentage.Real
DiscPct
NoMCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 4 more
Percent2Second discount percentage.Real
DiscPct
NoMCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 4 more
PriceApplyAdjustmentFlag that lets the agreement price take a margin-based adjustment.Enum
GUPPriceDiscPriceApplyAdjustment
NoYes (enum)
NoNone
PriceComponentCombinationPoints to a combination of price attribute groups.Int64
GUPPriceComponentCodeCombinationRecId
NoGUPPriceComponentCodePriceAttributeGroupCombination.RecIdNone
PriceGroupThe price group that the agreement relates to.String
PriceGroupId
NoNone
PricePreventDiscountFlag that blocks extra discounts on top of this agreement price.Enum
GUPPriceDiscPricePreventDiscount
NoYes (enum)
NoNone
PriceUnitThe quantity that the price refers to.Real
PriceUnit
NoPurchasePriceAgreementEntitySalesPriceAgreementEntity
PricingAttributesHeaderAreMatchedYes/No flag showing whether the header pricing attributes are matched.Enum
GUPPricingAttributesAreMatched
NoYes (enum)
NoNone
PricingAttributesLineAreMatchedYes/No flag showing whether the line pricing attributes are matched.Enum
GUPPricingAttributesAreMatched
NoYes (enum)
NoNone
PricingRuleHeaderSystem ID of a pricing rule used at header level.Int64
GUPRefRecId
NoGUPPricingRule.RecIdNone
PricingRuleLineSystem ID of a pricing rule used at line level.Int64
GUPRefRecId
NoGUPPricingRule.RecIdNone
QuantityAmountFromLower limit of the quantity or amount range.Real
AmountQty
NoMCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 6 more
QuantityAmountToUpper limit of the quantity or amount range.Real
AmountQuantityTo
NoMCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 6 more
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoMCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 6 more
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
relationKind of agreement: purchase or sales price, line, multiline or total discount, or postage discount.Enum
PriceType (enum)
NoPurchasePriceAgreementEntity
SearchAgainYes/No flag labelled 'Find next'.Enum
SearchAgain
NoYes (enum)
NoMCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 6 more
SubBillFlatTierPriceFlat tier amount; currency not stated in the metadata.Real
AmountCur
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
ToDateDate until which the agreement is valid.Date
ToDate
NoMCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 6 more
UnitAppliesToAllYes/No flag that allows unit conversion.Enum
GUPUnitAppliesToAll
NoYes (enum)
NoNone
UnitIdUnit of measure that the agreement uses.String
UnitOfMeasureSymbol
NoUnitOfMeasure.SymbolMCRSalesPostageDiscountAgreementEntityPurchaseLineDiscountAgreementEntityPurchaseMultiLineDiscountAgreementEntityand 4 more

Indexes (12)

Relations (34)

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

  • AgreementHeaderExt_RU → AgreementHeaderExt_RU

    Join on AgreementHeaderExt_RU = AgreementHeaderExt_RU.RecId

    Many PriceDiscTable records → zero or one AgreementHeaderExt_RU record

  • Currency → Currency

    Join on Currency = Currency.CurrencyCode

    Many PriceDiscTable records → exactly one Currency record

  • CustEndGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::EndDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Cust, relation = PriceType::EndDiscSales, AccountCode = PriceDiscPartyCodeType::GroupId, AccountRelation = PriceDiscGroup.GroupId

    Many PriceDiscTable records → zero or one PriceDiscGroup record

  • CustLineGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::LineDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Cust, relation = PriceType::LineDiscSales, AccountCode = PriceDiscPartyCodeType::GroupId, AccountRelation = PriceDiscGroup.GroupId

    Many PriceDiscTable records → zero or one PriceDiscGroup record

  • CustMultiGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::MultiLineDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Cust, relation = PriceType::MultiLineDiscSales, AccountCode = PriceDiscPartyCodeType::GroupId, AccountRelation = PriceDiscGroup.GroupId

    Many PriceDiscTable records → zero or one PriceDiscGroup record

  • CustPriceGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::PriceGroup, PriceDiscGroup.Module = ModuleInventCustVend::Cust, relation = PriceType::PriceSales, AccountCode = PriceDiscPartyCodeType::GroupId, AccountRelation = PriceDiscGroup.GroupId

    Many PriceDiscTable records → zero or one PriceDiscGroup record

  • CustTable → CustTable

    Join on Module = ModuleInventCustVend::Cust, AccountCode = PriceDiscPartyCodeType::Table, AccountRelation = CustTable.AccountNum

    Many PriceDiscTable records → zero or one CustTable record

  • InventDim → InventDim

    Join on InventDimId = InventDim.inventDimId

    Many PriceDiscTable records → zero or one InventDim record

  • InventTable → InventTable

    Join on ItemCode = PriceDiscProductCodeType::Table, ItemRelation = InventTable.ItemId

    Many PriceDiscTable records → zero or one InventTable record

  • MCRPostageGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::MCRPostageDisc, PriceDiscGroup.Module = ModuleInventCustVend::Cust, relation = PriceType::MCRPostageDisc, AccountCode = PriceDiscPartyCodeType::GroupId, AccountRelation = PriceDiscGroup.GroupId

    Many PriceDiscTable records → zero or one PriceDiscGroup record

  • PdsCalculationId → PDSCalculationTable

    Join on PDSCalculationId = PDSCalculationTable.CalculationId

    Many PriceDiscTable records → zero or one PDSCalculationTable record

  • PriceDiscAdmTrans → PriceDiscAdmTrans

    Join on OriginalPriceDiscAdmTransRecId = PriceDiscAdmTrans.RecId

    Zero or one PriceDiscTable record → zero or one PriceDiscAdmTrans record

  • PriceDiscAdmTransUpdate → PriceDiscAdmTrans

    Join on EditedByPriceDiscAdmTransRecId = PriceDiscAdmTrans.RecId

    Zero or one PriceDiscTable record → zero or one PriceDiscAdmTrans record

  • PurchEndGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::EndDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Invent, relation = PriceType::EndDiscPurch, ItemCode = PriceDiscProductCodeType::GroupId, ItemRelation = PriceDiscGroup.GroupId

    Many PriceDiscTable records → zero or one PriceDiscGroup record

  • PurchLineGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::LineDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Invent, relation = PriceType::LineDiscPurch, ItemCode = PriceDiscProductCodeType::GroupId, ItemRelation = PriceDiscGroup.GroupId

    Many PriceDiscTable records → zero or one PriceDiscGroup record

  • PurchMultiGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::MultiLineDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Invent, relation = PriceType::MultiLineDiscPurch, ItemCode = PriceDiscProductCodeType::GroupId, ItemRelation = PriceDiscGroup.GroupId

    Many PriceDiscTable records → zero or one PriceDiscGroup record

  • PurchPriceGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::PriceGroup, PriceDiscGroup.Module = ModuleInventCustVend::Invent, relation = PriceType::PricePurch, ItemCode = PriceDiscProductCodeType::GroupId, ItemRelation = PriceDiscGroup.GroupId

    Many PriceDiscTable records → zero or one PriceDiscGroup record

  • SalesEndGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::EndDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Invent, relation = PriceType::EndDiscSales, ItemCode = PriceDiscProductCodeType::GroupId, ItemRelation = PriceDiscGroup.GroupId

    Many PriceDiscTable records → zero or one PriceDiscGroup record

  • SalesLineGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::LineDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Invent, relation = PriceType::LineDiscSales, ItemCode = PriceDiscProductCodeType::GroupId, ItemRelation = PriceDiscGroup.GroupId

    Many PriceDiscTable records → zero or one PriceDiscGroup record

  • SalesMultiGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::MultiLineDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Invent, relation = PriceType::MultiLineDiscSales, ItemCode = PriceDiscProductCodeType::GroupId, ItemRelation = PriceDiscGroup.GroupId

    Many PriceDiscTable records → zero or one PriceDiscGroup record

  • SalesPriceGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::PriceGroup, PriceDiscGroup.Module = ModuleInventCustVend::Invent, relation = PriceType::PriceSales, ItemCode = PriceDiscProductCodeType::GroupId, ItemRelation = PriceDiscGroup.GroupId

    Many PriceDiscTable records → zero or one PriceDiscGroup record

  • TAMMerchandisingEvent → TAMMerchandisingEvent

    Join on MCRMerchandisingEventID = TAMMerchandisingEvent.MerchandisingEventID

    Many PriceDiscTable records → exactly one TAMMerchandisingEvent record

  • UnitId → UnitOfMeasure

    Join on UnitId = UnitOfMeasure.Symbol

    Many PriceDiscTable records → zero or one UnitOfMeasure record

  • VendEndGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::EndDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Vend, relation = PriceType::EndDiscPurch, AccountCode = PriceDiscPartyCodeType::GroupId, AccountRelation = PriceDiscGroup.GroupId

    Many PriceDiscTable records → zero or one PriceDiscGroup record

  • VendLineGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::LineDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Vend, relation = PriceType::LineDiscPurch, AccountCode = PriceDiscPartyCodeType::GroupId, AccountRelation = PriceDiscGroup.GroupId

    Many PriceDiscTable records → zero or one PriceDiscGroup record

  • VendMultiGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::MultiLineDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Vend, relation = PriceType::MultiLineDiscPurch, AccountCode = PriceDiscPartyCodeType::GroupId, AccountRelation = PriceDiscGroup.GroupId

    Many PriceDiscTable records → zero or one PriceDiscGroup record

  • VendPriceGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::PriceGroup, PriceDiscGroup.Module = ModuleInventCustVend::Vend, relation = PriceType::PricePurch, AccountCode = PriceDiscPartyCodeType::GroupId, AccountRelation = PriceDiscGroup.GroupId

    Many PriceDiscTable records → zero or one PriceDiscGroup record

  • VendTable → VendTable

    Join on Module = ModuleInventCustVend::Vend, AccountCode = PriceDiscPartyCodeType::Table, AccountRelation = VendTable.AccountNum

    Many PriceDiscTable records → zero or one VendTable record

  • PricingRuleApplicability → PricingRuleApplicability

    Join on ApplicabilityId = PricingRuleApplicability.RecId

    Exactly one PriceDiscTable record → exactly one PricingRuleApplicability record

  • GUPPricingRuleHeader → GUPPricingRule

    Join on PricingRuleHeader = GUPPricingRule.RecId

    Zero or one PriceDiscTable record → exactly one GUPPricingRule record

  • GUPPricingRuleLine → GUPPricingRule

    Join on PricingRuleLine = GUPPricingRule.RecId

    Zero or one PriceDiscTable record → exactly one GUPPricingRule record

  • GUPPriceComponentCodePriceAttributeGroupCombination → GUPPriceComponentCodePriceAttributeGroupCombination

    Join on PriceComponentCombination = GUPPriceComponentCodePriceAttributeGroupCombination.RecId

    Zero or one PriceDiscTable record → zero or one GUPPriceComponentCodePriceAttributeGroupCombination record

  • GUPCustPriceGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::PriceGroup, PriceDiscGroup.Module = ModuleInventCustVend::Cust, relation = PriceType::PriceSales, PriceGroup = PriceDiscGroup.GroupId, PriceDiscGroup.PriceGroupAttributeEnable = NoYes::Yes

    Many PriceDiscTable records → zero or one PriceDiscGroup record

  • GUPSalesPriceGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::PriceGroup, PriceDiscGroup.Module = ModuleInventCustVend::Invent, relation = PriceType::PriceSales, PriceGroup = PriceDiscGroup.GroupId, PriceDiscGroup.PriceGroupAttributeEnable = NoYes::Yes

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

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

Email sales@drdynamics.co.uk