Data entity
PurchaseTotalDiscountAgreementEntity
Holds purchase total discount agreements, which are price agreement records. Each record has a vendor or vendor price group. It also has amount range, dates, currency and two discount percentages. The key is the record ID.
- Entity name
PurchaseTotalDiscountAgreementEntity- Public entity name
PurchaseTotalDiscountAgreement- OData collection
PurchaseTotalDiscountAgreements- Category
Not set- Module
Procurement and sourcing- Read-only
No- Data management enabled
Yes- Configuration key
PriceDisc- Keys
RecordId- Staging table
PurchaseTotalDiscountAgreementStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/PurchaseTotalDiscountAgreements- Dataverse virtual table
mserp_purchasetotaldiscountagreemententity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Enabled: you can use it in import and export projects.
Data sources
PriceDiscTable· root
Fields (17)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
AccountCodeSays whether the agreement applies to one account, a group of accounts or all accounts. | EnumPriceDiscPartyCode
| No | No (private) | PriceDiscTable.AccountCode | |
AccountRelationThe customer or vendor account, or the group, that the agreement applies to. | String (20)PriceDiscAccountRelation | No | No (private) | CustTable.AccountNumVendTable.AccountNum | PriceDiscTable.AccountRelation |
DiscountAmountThe price or discount amount, in the transaction currency. | RealPriceDiscAmount | No | Yes | PriceDiscTable.Amount | |
DiscountCurrencyCodeCurrency code of the amount. | String (3)CurrencyCode | Yes | Yes | Currency.CurrencyCode | PriceDiscTable.Currency |
DiscountApplicableFromDateDate from which the agreement is valid. | DateFromDate | No | Yes | PriceDiscTable.FromDate | |
inventDimIdPoints to the inventory dimensions that the agreement applies to. | String (20)InventDimId | No | No (private) | InventDim.inventDimId | PriceDiscTable.InventDimId |
ItemCodeSays whether the agreement applies to one item, an item group or all items. | EnumPriceDiscProductCode
| No | No (private) | PriceDiscTable.ItemCode | |
ItemRelationThe item, or the item group, that the agreement applies to. | String (20)PriceDiscItemRelation | No | No (private) | InventTable.ItemId | PriceDiscTable.ItemRelation |
DiscountPercentage1First discount percentage. | RealDiscPct | No | Yes | PriceDiscTable.Percent1 | |
DiscountPercentage2Second discount percentage. | RealDiscPct | No | Yes | PriceDiscTable.Percent2 | |
FromOrderSubTotalAmountLower limit of the quantity or amount range. | RealAmountQty | No | Yes | PriceDiscTable.QuantityAmountFrom | |
ToOrderSubTotalAmountUpper limit of the quantity or amount range. | RealAmountQuantityTo | No | Yes | PriceDiscTable.QuantityAmountTo | |
WillSearchContinueYes/No flag labelled 'Find next'. | EnumSearchAgain
| No | Yes | PriceDiscTable.SearchAgain | |
DiscountApplicableToDateDate until which the agreement is valid. | DateToDate | No | Yes | PriceDiscTable.ToDate | |
RecordIdA unique number that the system gives to every record. Other tables often use it to point to this record. | Int64RecId | No | Yes | PriceDiscTable.RecId | |
VendorAccountNumberAccount number of the vendor the agreement applies to. | String (20)VendAccount | No | Yes | computed | |
TotalDiscountVendorGroupCodeCode of the price group for vendors that the total discount applies to. | StringPriceGroupId | No | Yes | computed |
Foreign keys (5)
Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.
AccountRelation→CustTable.AccountNum(key of CustTable)Relation also requires Module = ModuleInventCustVend::Cust, AccountCode = PriceDiscPartyCodeType::Table.
Many PriceDiscTable records → zero or one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
AccountRelation→VendTable.AccountNum(key of VendTable)Relation also requires Module = ModuleInventCustVend::Vend, AccountCode = PriceDiscPartyCodeType::Table.
Many PriceDiscTable records → zero or one VendTable record
VendTable details: see VendVendorV2Entity, RetailVendVendorV3Entity, VendVendorEntity
DiscountCurrencyCode→Currency.CurrencyCode(key of Currency)Many PriceDiscTable records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
inventDimId→InventDim.inventDimId(key of InventDim)Many PriceDiscTable records → zero or one InventDim record
InventDim details: see ProdProductionPickingListJournalEntryEntity, ProdReportAsFinishedProductionJournalEntryEntity, WHSExternalInventoryAdjustmentEntity
ItemRelation→InventTable.ItemId(key of InventTable)Relation also requires ItemCode = PriceDiscProductCodeType::Table.
Many PriceDiscTable records → zero or one InventTable record
InventTable details: see EcoResReleasedProductV2Entity, EcoResReleasedProductDVEntity, CLMIntegrationReleasedProductEntity
Need help with PurchaseTotalDiscountAgreementEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.