Data entity

SalesOpenSalesTotalDiscountJournalLineEntity

Lines of open trade agreement journals that hold total discount agreements. Each line is keyed by journal number and line number. It shows the customer or price group, the amount range, the validity dates, the currency and the discount percentages.

Entity name
SalesOpenSalesTotalDiscountJournalLineEntity
Public entity name
OpenSalesTotalDiscountJournalLine
OData collection
OpenSalesTotalDiscountJournalLines
Category
Not set
Module
Sales and marketing
Read-only
No
Data management enabled
Yes
Configuration key
PriceDisc
Keys
TradeAgreementJournalNumber, LineNumber
Staging table
SalesOpenSalesTotalDiscountJournalLineStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/OpenSalesTotalDiscountJournalLines
Dataverse virtual table
mserp_salesopensalestotaldiscountjournallineentity. 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
  • InventDim · InnerJoin to PriceDiscAdmTrans · read-only
  • PriceDiscAdmTable · InnerJoin to PriceDiscAdmTrans · read-only

Fields (19)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
TradeAgreementJournalNumberNumber of the trade agreement journal that holds this line.String (20)
PriceDiscJournalNum
NoYesPriceDiscAdmTable.JournalNumPriceDiscAdmTrans.JournalNum
LineNumberPosition number of the line in the journal.Real
LineNum
NoYesPriceDiscAdmTrans.LineNum
TotalDiscountCustomerGroupCodeCode of the customer price group that the total discount line applies to.String
PriceGroupId
NoYescomputed
CustomerAccountNumberCustomer account that the total discount line is set for.String (20)
CustAccount
NoYescomputed
FromOrderSubtotalAmountLower limit of the quantity or amount range for the line.Real
AmountQty
NoYesPriceDiscAdmTrans.QuantityAmountFrom
ToOrderSubtotalAmountUpper limit of the quantity or amount range for the line.Real
AmountQuantityTo
NoYesPriceDiscAdmTrans.QuantityAmountTo
DiscountApplicableFromDateDate from which the line is valid.Date
FromDate
NoYesPriceDiscAdmTrans.FromDate
DiscountApplicableToDateDate until which the line is valid.Date
ToDate
NoYesPriceDiscAdmTrans.ToDate
DiscountAmountThe price or discount amount on the line, in the currency given on the line.Real
PriceDiscAmount
NoYesPriceDiscAdmTrans.Amount
DiscountCurrencyCodeCurrency code of the amount on the line.String (3)
CurrencyCode
NoYesCurrency.CurrencyCodePriceDiscAdmTrans.Currency
DiscountPercentage1First discount percentage.Real
DiscPct
NoYesPriceDiscAdmTrans.Percent1
DiscountPercentage2Second discount percentage.Real
DiscPct
NoYesPriceDiscAdmTrans.Percent2
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
JournalNumUnique number of the journal.String (20)
PriceDiscJournalNum
YesNo (private)PriceDiscAdmTable.JournalNum

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.

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

Email sales@drdynamics.co.uk