Table

PriceDiscAdmTrans

Trade agreement journal lines

Holds the lines of a trade agreement journal. Each line is a draft price or discount agreement and is identified by journal number and line number. Lines link to a customer or vendor, an item, a currency, a unit and inventory dimensions. The relation field says whether the line is a purchase or sales price, a discount or a postage discount.

Table name
PriceDiscAdmTrans
Module
Sales and marketing
Table group
WorksheetLine
Table type
Regular
Data per company
Yes
Configuration key
PriceDisc
Primary index
JourLineNumIdx
Replacement key
None
Key fields
JournalNum, LineNum, RecId
Model
Foundation

Fields (53)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
JournalNumNumber of the trade agreement journal that holds this line.String (20)
PriceDiscJournalNum
NoPriceDiscAdmTable.JournalNumPurchOpenPurchasePriceJournalLineV2EntitySalesOpenSalesPriceJournalLineV2EntityMCROpenSalesPostageDiscountJournalLineEntityand 15 more
LineNumPosition number of the line in the journal.Real
LineNum
NoGUPOpenTradeAgreementJournalLineV2EntityPurchOpenPurchasePriceJournalLineV2EntitySalesOpenSalesPriceJournalLineV2Entityand 17 more
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
AccountCodeSays whether the line applies to one account, a group of accounts or all accounts.Enum
PriceDiscPartyCode
PriceDiscPartyCodeType (enum)
NoGUPOpenTradeAgreementJournalLineV2EntityPurchOpenPurchasePriceJournalLineV2EntitySalesOpenSalesPriceJournalLineV2Entityand 10 more
AccountRelationThe customer or vendor account, or the group, that the line applies to.String (20)
PriceDiscAccountRelation
NoCustTable.AccountNumVendTable.AccountNumGUPOpenTradeAgreementJournalLineV2EntityPurchOpenPurchasePriceJournalLineV2EntitySalesOpenSalesPriceJournalLineV2Entityand 10 more
AgreementReference text for the price agreement.String
PriceAgreement
NoNone
AgreementHeaderExt_RUPoints to the agreement record by its system ID; used for Russia.Int64
AgreementHeaderExtRecId_RU
NoAgreementHeaderExt_RU.RecIdNone
AllocateMarkupYes/No flag showing whether the charges are included in the unit price.Enum
NoYes (enum)
NoNone
AmountThe price or discount amount on the line, in the currency given on the line.Real
PriceDiscAmount
NoGUPOpenTradeAgreementJournalLineV2EntityPurchOpenPurchasePriceJournalLineV2EntitySalesOpenSalesPriceJournalLineV2Entityand 17 more
CalendarDaysYes/No flag linked to the working-days setting for the lead time.low confidenceEnum
CalendarDays
NoYes (enum)
NoPurchOpenPurchasePriceJournalLineV2EntityPurchOpenPurchasePriceJournalLineEntityPurchOpenPurchasePriceJournalLineCDSV2Entityand 1 more
CurrencyCurrency code of the amount on the line.String (3)
CurrencyCode
YesCurrency.CurrencyCodeGUPOpenTradeAgreementJournalLineV2EntityPurchOpenPurchasePriceJournalLineV2EntitySalesOpenSalesPriceJournalLineV2Entityand 17 more
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DeliveryTimeLead time of the line, as a whole number.Integer
LeadTime
NoGUPOpenTradeAgreementJournalLineV2EntityPurchOpenPurchasePriceJournalLineV2EntitySalesOpenSalesPriceJournalLineV2Entityand 7 more
DifferentFromPostedPurpose not clear from the metadata.low confidenceEnum
NoYes (enum)
NoNone
DisregardLeadTimeYes/No flag to ignore the lead time for this line.Enum
DisregardLeadTime
NoYes (enum)
NoGUPOpenTradeAgreementJournalLineV2EntityPurchOpenPurchasePriceJournalLineV2EntitySalesOpenSalesPriceJournalLineV2Entityand 7 more
FromDateDate from which the line is valid.Date
FromDate
NoGUPOpenTradeAgreementJournalLineV2EntityPurchOpenPurchasePriceJournalLineV2EntitySalesOpenSalesPriceJournalLineV2Entityand 17 more
GenericCurrencyYes/No flag to include the generic currency.Enum
SalesGenericCurrency
NoYes (enum)
NoGUPOpenTradeAgreementJournalLineV2EntitySalesOpenSalesPriceJournalLineV2EntityGUPOpenTradeAgreementJournalLineEntityand 6 more
InventBaileeFreeDays_RUNumber of free days; used for Russia.Integer
InventBaileeFreeDays_RU
NoNone
InventDimIdPoints to the inventory dimensions that the line applies to.String (20)
InventDimId
NoInventDim.inventDimIdNone
IsGUPTradeAgreementPurpose not clear from the metadata.low confidenceEnum
NoYesId
NoYes (enum)
NoNone
ItemCodeSays whether the line applies to one item, an item group or all items.Enum
PriceDiscProductCode
PriceDiscProductCodeType (enum)
NoGUPOpenTradeAgreementJournalLineV2EntityPurchOpenPurchasePriceJournalLineV2EntitySalesOpenSalesPriceJournalLineV2Entityand 10 more
ItemRelationThe item, or the item group, that the line applies to.String (20)
PriceDiscItemRelation
NoInventTable.ItemIdGUPOpenTradeAgreementJournalLineV2EntityPurchOpenPurchasePriceJournalLineV2EntitySalesOpenSalesPriceJournalLineV2Entityand 10 more
LogLog text for the line, up to 255 characters.String (255)
PriceJournalLogTrans
NoGUPOpenTradeAgreementJournalLineV2EntityPurchOpenPurchasePriceJournalLineV2EntitySalesOpenSalesPriceJournalLineV2Entityand 17 more
MarkupCharges added to the price.Real
PriceMarkup
NoGUPOpenTradeAgreementJournalLineV2EntityPurchOpenPurchasePriceJournalLineV2EntitySalesOpenSalesPriceJournalLineV2Entityand 7 more
MaximumRetailPrice_INMaximum retail price; used for India.Real
MaximumRetailPrice_IN
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
ModuleSays whether the line is for inventory, customers or vendors.Enum
PriceDiscModule
ModuleInventCustVend (enum)
NoNone
MustBeDeletedPurpose not clear from the metadata.low confidenceEnum
NoYes (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PDSCalculationIdPoints to the calculation used for attribute-based pricing.String
PDSCalculationId
NoPDSCalculationTable.CalculationIdGUPOpenTradeAgreementJournalLineV2EntityPurchOpenPurchasePriceJournalLineV2EntitySalesOpenSalesPriceJournalLineV2Entityand 7 more
Percent1First discount percentage.Real
DiscPct
NoMCROpenSalesPostageDiscountJournalLineEntityPurchOpenPurchaseLineDiscountJournalLineEntityPurchOpenPurchaseMultiLineDiscountJournalLineEntityand 7 more
Percent2Second discount percentage.Real
DiscPct
NoMCROpenSalesPostageDiscountJournalLineEntityPurchOpenPurchaseLineDiscountJournalLineEntityPurchOpenPurchaseMultiLineDiscountJournalLineEntityand 7 more
PriceApplyAdjustmentFlag that lets the agreement price take a margin-based adjustment.Enum
GUPPriceDiscPriceApplyAdjustment
NoYes (enum)
NoGUPOpenTradeAgreementJournalLineV2EntityGUPOpenTradeAgreementJournalLineEntity
PriceComponentCombinationPoints to a combination of price attribute groups.Int64
GUPPriceComponentCodeCombinationRecId
NoGUPPriceComponentCodePriceAttributeGroupCombination.RecIdNone
PriceDiscTableRefSystem ID of the related price agreement record.Int64
PriceDiscTableRefRecId
NoPriceDiscTable.RecIdNone
PriceGroupThe price group that the line relates to.String
PriceGroupId
NoGUPOpenTradeAgreementJournalLineV2EntityGUPOpenTradeAgreementJournalLineEntity
PricePreventDiscountFlag that blocks extra discounts on top of this agreement price.Enum
GUPPriceDiscPricePreventDiscount
NoYes (enum)
NoGUPOpenTradeAgreementJournalLineV2EntityGUPOpenTradeAgreementJournalLineEntity
PriceUnitThe quantity that the price refers to.Real
PriceUnit
NoGUPOpenTradeAgreementJournalLineV2EntityPurchOpenPurchasePriceJournalLineV2EntitySalesOpenSalesPriceJournalLineV2Entityand 7 more
PricingAttributesHeaderAreMatchedYes/No flag showing whether the header pricing attributes are matched.Enum
GUPPricingAttributesAreMatched
NoYes (enum)
NoNone
PricingAttributesLineAreMatchedYes/No flag showing whether the line pricing attributes are matched.Enum
GUPPricingAttributesAreMatched
NoYes (enum)
NoNone
PricingRuleHeaderSystem ID of a pricing rule used at header level.Int64
GUPRefRecId
NoGUPPricingRule.RecIdGUPOpenTradeAgreementJournalLineV2EntityGUPOpenTradeAgreementJournalLineEntity
PricingRuleLineSystem ID of a pricing rule used at line level.Int64
GUPRefRecId
NoGUPPricingRule.RecIdGUPOpenTradeAgreementJournalLineV2EntityGUPOpenTradeAgreementJournalLineEntity
QuantityAmountFromLower limit of the quantity or amount range for the line.Real
AmountQty
NoGUPOpenTradeAgreementJournalLineV2EntityPurchOpenPurchasePriceJournalLineV2EntitySalesOpenSalesPriceJournalLineV2Entityand 17 more
QuantityAmountToUpper limit of the quantity or amount range for the line.Real
AmountQuantityTo
NoGUPOpenTradeAgreementJournalLineV2EntityPurchOpenPurchasePriceJournalLineV2EntitySalesOpenSalesPriceJournalLineV2Entityand 17 more
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
relationKind of agreement: purchase or sales price, line, multiline or total discount, or postage discount.Enum
PriceType (enum)
NoNone
SearchAgainYes/No flag labelled 'Find next'.Enum
NoYes (enum)
NoGUPOpenTradeAgreementJournalLineV2EntityPurchOpenPurchasePriceJournalLineV2EntitySalesOpenSalesPriceJournalLineV2Entityand 17 more
SubBillFlatTierPriceFlat tier amount for the line; currency not stated in the metadata.Real
AmountCur
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
ToDateDate until which the line is valid.Date
ToDate
NoGUPOpenTradeAgreementJournalLineV2EntityPurchOpenPurchasePriceJournalLineV2EntitySalesOpenSalesPriceJournalLineV2Entityand 17 more
UnitAppliesToAllYes/No flag that allows unit conversion.Enum
GUPUnitAppliesToAll
NoYes (enum)
NoGUPOpenTradeAgreementJournalLineV2EntityGUPOpenTradeAgreementJournalLineEntity
UnitIdUnit of measure that the line uses.String
UnitOfMeasureSymbol
NoUnitOfMeasure.SymbolGUPOpenTradeAgreementJournalLineV2EntityPurchOpenPurchasePriceJournalLineV2EntitySalesOpenSalesPriceJournalLineV2Entityand 15 more

Indexes (5)

Relations (32)

Each relation joins PriceDiscAdmTrans to another table on the fields shown.

  • AgreementHeaderExt_RU → AgreementHeaderExt_RU

    Join on AgreementHeaderExt_RU = AgreementHeaderExt_RU.RecId

    Many PriceDiscAdmTrans records → zero or one AgreementHeaderExt_RU record

  • Currency → Currency

    Join on Currency = Currency.CurrencyCode

    Many PriceDiscAdmTrans records → exactly one Currency record

  • CustEndGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::EndDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Cust, relation = PriceType::EndDiscSales, AccountCode = PriceDiscPartyCodeType::GroupId, AccountRelation = PriceDiscGroup.GroupId

    Many PriceDiscAdmTrans records → zero or one PriceDiscGroup record

  • CustLineGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::LineDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Cust, relation = PriceType::LineDiscSales, AccountCode = PriceDiscPartyCodeType::GroupId, AccountRelation = PriceDiscGroup.GroupId

    Many PriceDiscAdmTrans records → zero or one PriceDiscGroup record

  • CustMultiGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::MultiLineDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Cust, relation = PriceType::MultiLineDiscSales, AccountCode = PriceDiscPartyCodeType::GroupId, AccountRelation = PriceDiscGroup.GroupId

    Many PriceDiscAdmTrans records → zero or one PriceDiscGroup record

  • CustPriceGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::PriceGroup, PriceDiscGroup.Module = ModuleInventCustVend::Cust, relation = PriceType::PriceSales, AccountCode = PriceDiscPartyCodeType::GroupId, AccountRelation = PriceDiscGroup.GroupId

    Many PriceDiscAdmTrans records → zero or one PriceDiscGroup record

  • CustTable → CustTable

    Join on Module = ModuleInventCustVend::Cust, AccountCode = PriceDiscPartyCodeType::Table, AccountRelation = CustTable.AccountNum

    Many PriceDiscAdmTrans records → zero or one CustTable record

  • InventDim → InventDim

    Join on InventDimId = InventDim.inventDimId

    Many PriceDiscAdmTrans records → zero or one InventDim record

  • InventTable → InventTable

    Join on ItemCode = PriceDiscProductCodeType::Table, ItemRelation = InventTable.ItemId

    Many PriceDiscAdmTrans records → zero or one InventTable record

  • MCRPostageGroup → PriceDiscGroup

    Join on AccountRelation = PriceDiscGroup.GroupId, AccountCode = PriceDiscPartyCodeType::GroupId, relation = PriceType::MCRPostageDisc, PriceDiscGroup.Module = ModuleInventCustVend::Cust, PriceDiscGroup.Type = PriceGroupType::MCRPostageDisc

    Many PriceDiscAdmTrans records → zero or one PriceDiscGroup record

  • PDSCalculationTable → PDSCalculationTable

    Join on PDSCalculationId = PDSCalculationTable.CalculationId

    Many PriceDiscAdmTrans records → zero or one PDSCalculationTable record

  • PriceDiscAdmTable → PriceDiscAdmTable

    Join on JournalNum = PriceDiscAdmTable.JournalNum

    Many PriceDiscAdmTrans records → zero or one PriceDiscAdmTable record

  • PriceDiscTable → PriceDiscTable

    Join on PriceDiscTableRef = PriceDiscTable.RecId

    Many PriceDiscAdmTrans records → zero or one PriceDiscTable record

  • PurchEndGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::EndDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Invent, relation = PriceType::EndDiscPurch, ItemCode = PriceDiscProductCodeType::GroupId, ItemRelation = PriceDiscGroup.GroupId

    Many PriceDiscAdmTrans records → zero or one PriceDiscGroup record

  • PurchLineGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::LineDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Invent, relation = PriceType::LineDiscPurch, ItemCode = PriceDiscProductCodeType::GroupId, ItemRelation = PriceDiscGroup.GroupId

    Many PriceDiscAdmTrans records → zero or one PriceDiscGroup record

  • PurchMultiGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::MultiLineDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Invent, relation = PriceType::MultiLineDiscPurch, ItemCode = PriceDiscProductCodeType::GroupId, ItemRelation = PriceDiscGroup.GroupId

    Many PriceDiscAdmTrans records → zero or one PriceDiscGroup record

  • PurchPriceGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::PriceGroup, PriceDiscGroup.Module = ModuleInventCustVend::Invent, relation = PriceType::PricePurch, ItemCode = PriceDiscProductCodeType::GroupId, ItemRelation = PriceDiscGroup.GroupId

    Many PriceDiscAdmTrans records → zero or one PriceDiscGroup record

  • SalesEndGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::EndDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Invent, relation = PriceType::EndDiscSales, ItemCode = PriceDiscProductCodeType::GroupId, ItemRelation = PriceDiscGroup.GroupId

    Many PriceDiscAdmTrans records → zero or one PriceDiscGroup record

  • SalesLineGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::LineDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Invent, relation = PriceType::LineDiscSales, ItemCode = PriceDiscProductCodeType::GroupId, ItemRelation = PriceDiscGroup.GroupId

    Many PriceDiscAdmTrans records → zero or one PriceDiscGroup record

  • SalesMultiGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::MultiLineDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Invent, relation = PriceType::MultiLineDiscSales, ItemCode = PriceDiscProductCodeType::GroupId, ItemRelation = PriceDiscGroup.GroupId

    Many PriceDiscAdmTrans records → zero or one PriceDiscGroup record

  • SalesPriceGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::PriceGroup, PriceDiscGroup.Module = ModuleInventCustVend::Invent, relation = PriceType::PriceSales, ItemCode = PriceDiscProductCodeType::GroupId, ItemRelation = PriceDiscGroup.GroupId

    Many PriceDiscAdmTrans records → zero or one PriceDiscGroup record

  • UnitId → UnitOfMeasure

    Join on UnitId = UnitOfMeasure.Symbol

    Many PriceDiscAdmTrans records → zero or one UnitOfMeasure record

  • VendEndGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::EndDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Vend, relation = PriceType::EndDiscPurch, AccountCode = PriceDiscPartyCodeType::GroupId, AccountRelation = PriceDiscGroup.GroupId

    Many PriceDiscAdmTrans records → zero or one PriceDiscGroup record

  • VendLineGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::LineDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Vend, relation = PriceType::LineDiscPurch, AccountCode = PriceDiscPartyCodeType::GroupId, AccountRelation = PriceDiscGroup.GroupId

    Many PriceDiscAdmTrans records → zero or one PriceDiscGroup record

  • VendMultiGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::MultiLineDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Vend, relation = PriceType::MultiLineDiscPurch, AccountCode = PriceDiscPartyCodeType::GroupId, AccountRelation = PriceDiscGroup.GroupId

    Many PriceDiscAdmTrans records → zero or one PriceDiscGroup record

  • VendPriceGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::PriceGroup, PriceDiscGroup.Module = ModuleInventCustVend::Vend, relation = PriceType::PricePurch, AccountCode = PriceDiscPartyCodeType::GroupId, AccountRelation = PriceDiscGroup.GroupId

    Many PriceDiscAdmTrans records → zero or one PriceDiscGroup record

  • VendTable → VendTable

    Join on Module = ModuleInventCustVend::Vend, AccountCode = PriceDiscPartyCodeType::Table, AccountRelation = VendTable.AccountNum

    Many PriceDiscAdmTrans records → zero or one VendTable record

  • GUPPricingRuleHeader → GUPPricingRule

    Join on PricingRuleHeader = GUPPricingRule.RecId

    Zero or one PriceDiscAdmTrans record → exactly one GUPPricingRule record

  • GUPPricingRuleLine → GUPPricingRule

    Join on PricingRuleLine = GUPPricingRule.RecId

    Zero or one PriceDiscAdmTrans record → exactly one GUPPricingRule record

  • GUPPriceComponentCodePriceAttributeGroupCombination → GUPPriceComponentCodePriceAttributeGroupCombination

    Join on PriceComponentCombination = GUPPriceComponentCodePriceAttributeGroupCombination.RecId

    Zero or one PriceDiscAdmTrans record → zero or one GUPPriceComponentCodePriceAttributeGroupCombination record

  • GUPCustPriceGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::PriceGroup, PriceDiscGroup.Module = ModuleInventCustVend::Cust, relation = PriceType::PriceSales, PriceGroup = PriceDiscGroup.GroupId, PriceDiscGroup.PriceGroupAttributeEnable = NoYes::Yes

    Many PriceDiscAdmTrans records → zero or one PriceDiscGroup record

  • GUPSalesPriceGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::PriceGroup, PriceDiscGroup.Module = ModuleInventCustVend::Invent, relation = PriceType::PriceSales, PriceGroup = PriceDiscGroup.GroupId, PriceDiscGroup.PriceGroupAttributeEnable = NoYes::Yes

    Many PriceDiscAdmTrans records → zero or one PriceDiscGroup record

Get this data out

Tables are not exposed directly. These public entities read from PriceDiscAdmTrans; use one of them in Power BI, Power Platform or a data management project.

Need help with PriceDiscAdmTrans in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk