Data entity
PurchOpenPurchaseLineDiscountJournalLineEntity
Holds open purchase line discount lines in trade agreement journals. Each record is keyed by the journal number and line number. It shows the vendor or vendor price group, item or product price group, inventory dimensions, quantity range, dates, unit, amount, currency and discount percentages.
- Entity name
PurchOpenPurchaseLineDiscountJournalLineEntity- Public entity name
OpenPurchaseLineDiscountJournalLine- OData collection
OpenPurchaseLineDiscountJournalLines- Category
Not set- Module
Procurement and sourcing- Read-only
No- Data management enabled
Yes- Configuration key
PriceDisc- Keys
TradeAgreementJournalNumber, LineNumber- Staging table
PurchOpenPurchaseLineDiscountJournalLineStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/OpenPurchaseLineDiscountJournalLines- Dataverse virtual table
mserp_purchopenpurchaselinediscountjournallineentity. 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
PriceDiscAdmTrans· rootInventDim· InnerJoin toPriceDiscAdmTrans· read-onlyPriceDiscAdmTable· InnerJoin toPriceDiscAdmTrans· read-only
Fields (29)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
TradeAgreementJournalNumberNumber of the trade agreement journal that holds this line. | String (20)PriceDiscJournalNum | No | Yes | PriceDiscAdmTable.JournalNum | PriceDiscAdmTrans.JournalNum |
LineNumberPosition number of the line in the journal. | RealLineNum | No | Yes | PriceDiscAdmTrans.LineNum | |
LineDiscountVendorGroupCodeCode of the price group for vendors that the line discount applies to. | StringPriceGroupId | No | Yes | computed | |
VendorAccountNumberAccount number of the vendor the journal line applies to. | String (20)VendAccount | No | Yes | computed | |
LineDiscountProductGroupCodeCode of the price group for items that the line discount applies to. | StringPriceGroupId | No | Yes | computed | |
ItemNumberNumber of the item the discount applies to. | String (20)ItemId | No | Yes | computed | |
ProductColorIdColour of the product. | StringEcoResItemColorName | No | Yes | EcoResColor.Name | InventDim.InventColorId |
ProductConfigurationIdConfiguration of the product. | String (50)EcoResItemConfigurationName | No | Yes | EcoResConfiguration.Name | InventDim.configId |
ProductSizeIdSize of the product. | StringEcoResItemSizeName | No | Yes | EcoResSize.Name | InventDim.InventSizeId |
ProductStyleIdStyle of the product. | StringEcoResItemStyleName | No | Yes | EcoResStyle.Name | InventDim.InventStyleId |
ProductVersionIdVersion of the product. | StringEcoResItemVersionName | No | Yes | EcoResVersion.Name | InventDim.InventVersionId |
DiscountSiteIdSite of the inventory. | StringInventSiteId | No | Yes | InventSite.SiteId | InventDim.InventSiteId |
DiscountWarehouseIdWarehouse of the inventory. | StringInventLocationId | No | Yes | InventLocation.InventLocationId | InventDim.InventLocationId |
FromQuantityLower limit of the quantity or amount range for the line. | RealAmountQty | No | Yes | PriceDiscAdmTrans.QuantityAmountFrom | |
ToQuantityUpper limit of the quantity or amount range for the line. | RealAmountQuantityTo | No | Yes | PriceDiscAdmTrans.QuantityAmountTo | |
QuantityUnitSymbolUnit of measure that the line uses. | StringUnitOfMeasureSymbol | No | Yes | UnitOfMeasure.Symbol | PriceDiscAdmTrans.UnitId |
DiscountApplicableFromDateDate from which the line is valid. | DateFromDate | No | Yes | PriceDiscAdmTrans.FromDate | |
DiscountApplicableToDateDate until which the line is valid. | DateToDate | No | Yes | PriceDiscAdmTrans.ToDate | |
DiscountAmountThe price or discount amount on the line, in the currency given on the line. | RealPriceDiscAmount | No | Yes | PriceDiscAdmTrans.Amount | |
DiscountCurrencyCodeCurrency code of the amount on the line. | String (3)CurrencyCode | No | Yes | Currency.CurrencyCode | PriceDiscAdmTrans.Currency |
DiscountPercentage1First discount percentage. | RealDiscPct | No | Yes | PriceDiscAdmTrans.Percent1 | |
DiscountPercentage2Second discount percentage. | RealDiscPct | No | Yes | PriceDiscAdmTrans.Percent2 | |
WillSearchContinueYes/No flag labelled 'Find next'. | Enum
| No | Yes | PriceDiscAdmTrans.SearchAgain | |
ProcessingLogLog text for the line, up to 255 characters. | String (255)PriceJournalLogTrans | No | Yes | PriceDiscAdmTrans.Log | |
AccountRelationThe customer or vendor account, or the group, that the line applies to. | String (20)PriceDiscAccountRelation | No | No (private) | CustTable.AccountNumVendTable.AccountNum | PriceDiscAdmTrans.AccountRelation |
AccountCodeSays whether the line applies to one account, a group of accounts or all accounts. | EnumPriceDiscPartyCode
| No | No (private) | PriceDiscAdmTrans.AccountCode | |
ItemCodeSays whether the line applies to one item, an item group or all items. | EnumPriceDiscProductCode
| No | No (private) | PriceDiscAdmTrans.ItemCode | |
ItemRelationThe item, or the item group, that the line applies to. | String (20)PriceDiscItemRelation | No | No (private) | InventTable.ItemId | PriceDiscAdmTrans.ItemRelation |
JournalNumUnique number of the journal. | String (20)PriceDiscJournalNum | Yes | No (private) | PriceDiscAdmTable.JournalNum |
Foreign keys (13)
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.
TradeAgreementJournalNumber→PriceDiscAdmTable.JournalNum(key of PriceDiscAdmTable)Many PriceDiscAdmTrans records → zero or one PriceDiscAdmTable record
PriceDiscAdmTable details: see GUPOpenTradeAgreementJournalEntity, TradeAgreementJournalHeaderEntity, TradeOpenTradeAgreementJournalHeaderV2Entity
ProductColorId→EcoResColor.Name(key of EcoResColor)Many InventDim records → zero or one EcoResColor record
EcoResColor details: see EcoResProductColorV2Entity, EcoResProductColorEntity, EcoResProductColorGroupLineEntity
ProductConfigurationId→EcoResConfiguration.Name(key of EcoResConfiguration)Many InventDim records → zero or one EcoResConfiguration record
EcoResConfiguration details: see EcoResProductMasterConfigurationEntity, EcoResProductMasterConfigurationTranslationEntity, EcoResProductNumberIdentifiedProductVariantEntity
ProductSizeId→EcoResSize.Name(key of EcoResSize)Many InventDim records → zero or one EcoResSize record
EcoResSize details: see EcoResProductSizeV2Entity, EcoResProductMasterSizeEntity, EcoResProductMasterSizeTranslationEntity
ProductStyleId→EcoResStyle.Name(key of EcoResStyle)Many InventDim records → zero or one EcoResStyle record
EcoResStyle details: see EcoResProductStyleV2Entity, EcoResProductMasterStyleEntity, EcoResProductMasterStyleTranslationEntity
ProductVersionId→EcoResVersion.Name(key of EcoResVersion)Many InventDim records → zero or one EcoResVersion record
EcoResVersion details: see EcoResProductMasterVersionEntity, EcoResProductMasterVersionTranslationEntity, EcoResProductNumberIdentifiedProductVariantEntity
DiscountSiteId→InventSite.SiteId(key of InventSite)Many InventDim records → zero or one InventSite record
InventSite details: see InventOperationalSiteEntity, InventOperationalSiteV2Entity, ScpDemandPlanningSiteEntity
DiscountWarehouseId→InventLocation.InventLocationId(key of InventLocation)Many InventDim records → zero or one InventLocation record
InventLocation details: see InventWarehouseEntity, ScpDemandPlanningWarehouseEntity, RetailDiscountLineV2Entity
QuantityUnitSymbol→UnitOfMeasure.Symbol(key of UnitOfMeasure)Many PriceDiscAdmTrans records → zero or one UnitOfMeasure record
UnitOfMeasure details: see RetailAttributesLegalEntityLookupEntity, EcoResReleasedDistinctProductCDSEntity, EcoResSellableReleasedProductEntity
DiscountCurrencyCode→Currency.CurrencyCode(key of Currency)Many PriceDiscAdmTrans records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
AccountRelation→CustTable.AccountNum(key of CustTable)Relation also requires Module = ModuleInventCustVend::Cust, AccountCode = PriceDiscPartyCodeType::Table.
Many PriceDiscAdmTrans 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 PriceDiscAdmTrans records → zero or one VendTable record
VendTable details: see VendVendorV2Entity, RetailVendVendorV3Entity, VendVendorEntity
ItemRelation→InventTable.ItemId(key of InventTable)Relation also requires ItemCode = PriceDiscProductCodeType::Table.
Many PriceDiscAdmTrans records → zero or one InventTable record
InventTable details: see EcoResReleasedProductV2Entity, EcoResReleasedProductDVEntity, CLMIntegrationReleasedProductEntity
Need help with PurchOpenPurchaseLineDiscountJournalLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.