Data entity
PurchOpenPurchaseLineDiscountJournalLineCDSEntity
Open purchase line discount journal lines prepared for Dataverse integration. It is built on the open purchase line discount journal lines entity and adds product details. Each record is keyed by the trade agreement journal number and line number.
- Entity name
PurchOpenPurchaseLineDiscountJournalLineCDSEntity- Public entity name
CDSOpenPurchaseLineDiscountJournalLine- OData collection
CDSOpenPurchaseLineDiscountJournalLines- Category
Not set- Module
Procurement and sourcing- Read-only
No- Data management enabled
Yes- Configuration key
PriceDisc- Keys
TradeAgreementJournalNumber, LineNumber- Staging table
PurchOpenPurchaseLineDiscountJournalLineCDSStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/CDSOpenPurchaseLineDiscountJournalLines- Dataverse virtual table
mserp_purchopenpurchaselinediscountjournallinecdsentity. 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
PurchOpenPurchaseLineDiscountJournalLineEntity· rootInventDistinctProductExpanded· OuterJoin toPurchOpenPurchaseLineDiscountJournalLineEntity· read-only
Fields (25)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
DiscountAmountThe price or discount amount on the line, in the currency given on the line. | RealPriceDiscAmount | No | Yes | PriceDiscAdmTrans.Amount | |
DiscountApplicableFromDateDate from which the line is valid. | DateFromDate | No | Yes | PriceDiscAdmTrans.FromDate | |
DiscountApplicableToDateDate until which the line is valid. | DateToDate | No | Yes | PriceDiscAdmTrans.ToDate | |
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 | |
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 | |
ItemNumberNumber of the item the discount applies to. | String (20)ItemId | No | No (private) | None | |
LineDiscountProductGroupCodeCode of the price group for items that the line discount applies to. | StringPriceGroupId | No | Yes | None | |
LineDiscountVendorGroupCodeCode of the price group for vendors that the line discount applies to. | StringPriceGroupId | No | Yes | None | |
LineNumberPosition number of the line in the journal. | RealLineNum | No | Yes | PriceDiscAdmTrans.LineNum | |
ProcessingLogLog text for the line, up to 255 characters. | String (255)PriceJournalLogTrans | No | Yes | PriceDiscAdmTrans.Log | |
ProductColorIdColour of the product. | StringEcoResItemColorName | No | No (private) | EcoResColor.Name | InventDim.InventColorId |
ProductConfigurationIdConfiguration of the product. | String (50)EcoResItemConfigurationName | No | No (private) | EcoResConfiguration.Name | InventDim.configId |
ProductSizeIdSize of the product. | StringEcoResItemSizeName | No | No (private) | EcoResSize.Name | InventDim.InventSizeId |
ProductStyleIdStyle of the product. | StringEcoResItemStyleName | No | No (private) | EcoResStyle.Name | InventDim.InventStyleId |
ProductVersionIdVersion of the product. | StringEcoResItemVersionName | No | No (private) | EcoResVersion.Name | InventDim.InventVersionId |
QuantityUnitSymbolUnit of measure that the line uses. | StringUnitOfMeasureSymbol | No | Yes | UnitOfMeasure.Symbol | PriceDiscAdmTrans.UnitId |
ToQuantityUpper limit of the quantity or amount range for the line. | RealAmountQuantityTo | No | Yes | PriceDiscAdmTrans.QuantityAmountTo | |
TradeAgreementJournalNumberNumber of the trade agreement journal that holds this line. | String (20)PriceDiscJournalNum | No | Yes | PriceDiscAdmTable.JournalNum | PriceDiscAdmTrans.JournalNum |
VendorAccountNumberAccount number of the vendor the journal line applies to. | String (20)VendAccount | No | Yes | None | |
WillSearchContinueYes/No flag labelled 'Find next'. | Enum
| No | Yes | PriceDiscAdmTrans.SearchAgain | |
ProductNumberProduct number shown to users. It identifies the product. | String (70)EcoResProductDisplayProductNumber | No | Yes | EcoResProduct.DisplayProductNumber |
Foreign keys (10)
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.
DiscountCurrencyCode→Currency.CurrencyCode(key of Currency)Many PriceDiscAdmTrans records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
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
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
QuantityUnitSymbol→UnitOfMeasure.Symbol(key of UnitOfMeasure)Many PriceDiscAdmTrans records → zero or one UnitOfMeasure record
UnitOfMeasure details: see RetailAttributesLegalEntityLookupEntity, EcoResReleasedDistinctProductCDSEntity, EcoResSellableReleasedProductEntity
TradeAgreementJournalNumber→PriceDiscAdmTable.JournalNum(key of PriceDiscAdmTable)Many PriceDiscAdmTrans records → zero or one PriceDiscAdmTable record
PriceDiscAdmTable details: see GUPOpenTradeAgreementJournalEntity, TradeAgreementJournalHeaderEntity, TradeOpenTradeAgreementJournalHeaderV2Entity
Need help with PurchOpenPurchaseLineDiscountJournalLineCDSEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.