Data entity

GUPOpenTradeAgreementJournalLineV2Entity

Second version of the open trade agreement journal lines used in pricing management. It holds price or discount ranges, dates, amount, currency and unit, and it reads attribute data from the unified pricing rule lookup. It has more fields than the first version, including header exclusion details. It is keyed by journal number and line number.

Entity name
GUPOpenTradeAgreementJournalLineV2Entity
Public entity name
GUPOpenTradeAgreementJournalLineV2
OData collection
GUPOpenTradeAgreementJournalLinesV2
Category
Not set
Module
Sales and marketing
Read-only
No
Data management enabled
Yes
Configuration key
PriceDisc
Keys
TradeAgreementJournalNumber, LineNumber
Staging table
GUPOpenTradeAgreementJournalLineV2Staging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/GUPOpenTradeAgreementJournalLinesV2
Dataverse virtual table
mserp_gupopentradeagreementjournallinev2entity. 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 · root
  • PriceDiscAdmTable · InnerJoin to PriceDiscAdmTrans · read-only
  • GUPPriceComponentCodePriceAttributeGroupCombination · OuterJoin to PriceDiscAdmTrans · read-only
  • GUPPricingRuleConditionViewHeader (table GUPPricingRuleConditionLookup) · OuterJoin to PriceDiscAdmTrans
  • GUPPricingRuleConditionViewLine (table GUPPricingRuleConditionLookup) · OuterJoin to PriceDiscAdmTrans
  • InventDim · OuterJoin to PriceDiscAdmTrans

Fields (72)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
TradeAgreementJournalNumberUnique number of the journal.String (20)
PriceDiscJournalNum
YesYesPriceDiscAdmTable.JournalNum
LineNumberPosition number of the line in the journal.Real
LineNum
NoYesPriceDiscAdmTrans.LineNum
FromQuantityLower limit of the quantity or amount range for the line.Real
AmountQty
NoYesPriceDiscAdmTrans.QuantityAmountFrom
ToQuantityUpper limit of the quantity or amount range for the line.Real
AmountQuantityTo
NoYesPriceDiscAdmTrans.QuantityAmountTo
QuantityUnitSymbolUnit of measure that the line uses.String
UnitOfMeasureSymbol
NoYesUnitOfMeasure.SymbolPriceDiscAdmTrans.UnitId
PriceApplicableFromDateDate from which the line is valid.Date
FromDate
NoYesPriceDiscAdmTrans.FromDate
PriceApplicableToDateDate until which the line is valid.Date
ToDate
NoYesPriceDiscAdmTrans.ToDate
PriceThe price or discount amount on the line, in the currency given on the line.Real
PriceDiscAmount
NoYesPriceDiscAdmTrans.Amount
PriceCurrencyCodeCurrency code of the amount on the line.String (3)
CurrencyCode
NoYesCurrency.CurrencyCodePriceDiscAdmTrans.Currency
AttributeBasedPricingIdPoints to the calculation used for attribute-based pricing.String
PDSCalculationId
NoYesPDSCalculationTable.CalculationIdPriceDiscAdmTrans.PDSCalculationId
FixedPriceChargesCharges added to the price.Real
PriceMarkup
NoYesPriceDiscAdmTrans.Markup
SalesPriceQuantityThe quantity that the price refers to.Real
PriceUnit
NoYesPriceDiscAdmTrans.PriceUnit
SalesLeadTimeDaysLead time of the line, as a whole number.Integer
LeadTime
NoYesPriceDiscAdmTrans.DeliveryTime
WillDeliveryDateControlDisregardLeadTimeYes/No flag to ignore the lead time for this line.Enum
DisregardLeadTime
NoYes

Platform enum: values not in the metadata extract.

NoYesPriceDiscAdmTrans.DisregardLeadTime
IsGenericCurrencySearchEnabledYes/No flag to include the generic currency.Enum
SalesGenericCurrency
NoYes

Platform enum: values not in the metadata extract.

NoYesPriceDiscAdmTrans.GenericCurrency
WillSearchContinueYes/No flag labelled 'Find next'.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesPriceDiscAdmTrans.SearchAgain
ProcessingLogLog text for the line, up to 255 characters.String (255)
PriceJournalLogTrans
NoYesPriceDiscAdmTrans.Log
AccountRelationThe customer or vendor account, or the group, that the line applies to.String (20)
PriceDiscAccountRelation
NoNo (private)CustTable.AccountNumVendTable.AccountNumPriceDiscAdmTrans.AccountRelation
AccountCodeSays whether the line applies to one account, a group of accounts or all accounts.Enum
PriceDiscPartyCode
PriceDiscPartyCodeType
  • Table 0
  • GroupId 1
  • All 2
NoNo (private)PriceDiscAdmTrans.AccountCode
ItemCodeSays whether the line applies to one item, an item group or all items.Enum
PriceDiscProductCode
PriceDiscProductCodeType
  • Table 0
  • GroupId 1
  • All 2
NoNo (private)PriceDiscAdmTrans.ItemCode
ItemRelationThe item, or the item group, that the line applies to.String (20)
PriceDiscItemRelation
NoNo (private)InventTable.ItemIdPriceDiscAdmTrans.ItemRelation
PricingRuleHeaderSystem ID of a pricing rule used at header level.Int64
GUPRefRecId
NoNo (private)GUPPricingRule.RecIdPriceDiscAdmTrans.PricingRuleHeader
PricingRuleLineSystem ID of a pricing rule used at line level.Int64
GUPRefRecId
NoNo (private)GUPPricingRule.RecIdPriceDiscAdmTrans.PricingRuleLine
PriceComponentCombinationName of the combination.String (180)
GUPPricingAttributeGroupCombinationName
NoYesGUPPriceComponentCodePriceAttributeGroupCombination.Name
PriceApplyAdjustmentFlag that lets the agreement price take a margin-based adjustment.Enum
GUPPriceDiscPriceApplyAdjustment
NoYes

Platform enum: values not in the metadata extract.

NoYesPriceDiscAdmTrans.PriceApplyAdjustment
PricePreventDiscountFlag that blocks extra discounts on top of this agreement price.Enum
GUPPriceDiscPricePreventDiscount
NoYes

Platform enum: values not in the metadata extract.

NoYesPriceDiscAdmTrans.PricePreventDiscount
UnitAppliesToAllYes/No flag that allows unit conversion.Enum
GUPUnitAppliesToAll
NoYes

Platform enum: values not in the metadata extract.

NoYesPriceDiscAdmTrans.UnitAppliesToAll
PriceAttributeGroupNameHeaderPrice attribute group the conditions belong to.String (60)
GUPPricingAttributeGroupName
NoYesGUPPricingRuleConditionLookup.PriceAttributeGroupName
HeaderExclusionTypeKind of item excluded by the rule: product, product variant or customer.Enum
GUPPricingRuleExclusionType
  • Product 0
  • ProductVariant 1
  • Customer 2
NoYesGUPPricingRuleConditionLookup.ExclusionType
HeaderExclusionText listing the items excluded from the rule.String (500)
GUPAttributeExclusion
NoYesGUPPricingRuleConditionLookup.Exclusion
Header1First condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue1
Header2Second condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue2
Header3Third condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue3
Header4Fourth condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue4
Header5Fifth condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue5
Header6Sixth condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue6
Header7Seventh condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue7
Header8Eighth condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue8
Header9Ninth condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue9
Header10Tenth condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue10
Header11Eleventh condition value of the rule, a shorter entity attribute value.String (200)
GUPEntityAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue11
Header12Twelfth condition value of the rule, a shorter entity attribute value.String (200)
GUPEntityAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue12
Header13Thirteenth condition value of the rule, a shorter entity attribute value.String (200)
GUPEntityAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue13
Header14Fourteenth condition value of the rule, a shorter entity attribute value.String (200)
GUPEntityAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue14
Header15Fifteenth condition value of the rule, a shorter entity attribute value.String (200)
GUPEntityAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue15
PriceAttributeGroupNameLinePrice attribute group the conditions belong to.String (60)
GUPPricingAttributeGroupName
NoYesGUPPricingRuleConditionLookup.PriceAttributeGroupName
LineExclusionText listing the items excluded from the rule.String (500)
GUPAttributeExclusion
NoYesGUPPricingRuleConditionLookup.Exclusion
LineExclusionTypeKind of item excluded by the rule: product, product variant or customer.Enum
GUPPricingRuleExclusionType
  • Product 0
  • ProductVariant 1
  • Customer 2
NoYesGUPPricingRuleConditionLookup.ExclusionType
Line1First condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue1
Line2Second condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue2
Line3Third condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue3
Line4Fourth condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue4
Line5Fifth condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue5
Line6Sixth condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue6
Line7Seventh condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue7
Line8Eighth condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue8
Line9Ninth condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue9
Line10Tenth condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue10
Line11Eleventh condition value of the rule, a shorter entity attribute value.String (200)
GUPEntityAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue11
Line12Twelfth condition value of the rule, a shorter entity attribute value.String (200)
GUPEntityAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue12
Line13Thirteenth condition value of the rule, a shorter entity attribute value.String (200)
GUPEntityAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue13
Line14Fourteenth condition value of the rule, a shorter entity attribute value.String (200)
GUPEntityAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue14
Line15Fifteenth condition value of the rule, a shorter entity attribute value.String (200)
GUPEntityAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue15
ProductSizeIdSize of the product.String
EcoResItemSizeName
NoYesEcoResSize.NameInventDim.InventSizeId
PriceWarehouseIdWarehouse of the inventory.String
InventLocationId
NoYesInventLocation.InventLocationIdInventDim.InventLocationId
ProductColorIdColour of the product.String
EcoResItemColorName
NoYesEcoResColor.NameInventDim.InventColorId
ProductConfigurationIdConfiguration of the product.String (50)
EcoResItemConfigurationName
NoYesEcoResConfiguration.NameInventDim.configId
PriceSiteIdSite of the inventory.String
InventSiteId
NoYesInventSite.SiteIdInventDim.InventSiteId
ProductStyleIdStyle of the product.String
EcoResItemStyleName
NoYesEcoResStyle.NameInventDim.InventStyleId
ProductVersionIdVersion of the product.String
EcoResItemVersionName
NoYesEcoResVersion.NameInventDim.InventVersionId
PriceComponentCodeNamePrice component code the combination belongs to.String (80)
GUPPriceComponentCodeName
NoYesGUPPriceComponentCode.NameGUPPriceComponentCodePriceAttributeGroupCombination.PriceComponentCodeName
PriceGroupThe price group that the line relates to.String
PriceGroupId
NoYesPriceDiscAdmTrans.PriceGroup

Foreign keys (16)

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.

Need help with GUPOpenTradeAgreementJournalLineV2Entity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk