Table

PriceDiscAdmTable

Trade agreement journal table

Holds trade agreement journal headers, identified by the journal number. Each links to a journal name and can link to a price group or a price attribute group combination. It records the posted state and posting date.

Table name
PriceDiscAdmTable
Module
Sales and marketing
Table group
WorksheetHeader
Table type
Regular
Data per company
Yes
Configuration key
PriceDisc
Primary index
JournalNumIdx
Replacement key
JournalNumIdx
Key fields
JournalNum
Model
Foundation

Fields (18)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
JournalNumUnique number of the journal.String (20)
PriceDiscJournalNum
YesTradeOpenTradeAgreementJournalHeaderV2EntityGUPOpenTradeAgreementJournalEntityTradeAgreementJournalHeaderEntityand 13 more
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DefaultRelationThe default kind of trade agreement, such as price, line discount or total discount, for purchasing or sales.Enum
PriceType (enum)
NoTradeOpenTradeAgreementJournalHeaderV2EntityTradeAgreementJournalHeaderEntity
ExportCurrentPriceYes/no flag for exporting the current price.Enum
PriceDiscExportCurrentPrice
NoYes (enum)
NoTradeOpenTradeAgreementJournalHeaderV2EntityGUPOpenTradeAgreementJournalEntityTradeAgreementJournalHeaderEntity
JournalNameThe journal name that the journal uses.String
PriceDiscJournalName
YesPriceDiscAdmName.JournalNameTradeOpenTradeAgreementJournalHeaderV2EntityGUPOpenTradeAgreementJournalEntityTradeAgreementJournalHeaderEntity
LockedForDeletionYes/no flag showing whether the journal is locked.Enum
PriceDiscLockedForDeletion
NoYes (enum)
NoNone
NameShort text that describes the journal.String (60)
Name
NoTradeOpenTradeAgreementJournalHeaderV2EntityGUPOpenTradeAgreementJournalEntityTradeAgreementJournalHeaderEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PostedYes/no flag showing whether the journal is posted.Enum
JournalPosted
NoYes (enum)
NoTradeAgreementJournalHeaderEntity
PostedDateThe date on which the journal was posted.Date
TransDate
NoGUPOpenTradeAgreementJournalEntityTradeAgreementJournalHeaderEntity
PriceApplyAdjustmentYes/no flag that lets the sales agreement price take a margin price adjustment.Enum
GUPPriceDiscPriceApplyAdjustment
NoYes (enum)
NoGUPOpenTradeAgreementJournalEntity
PriceComponentCombinationThe price attribute group combination used by the journal.Int64
GUPPriceComponentCodeCombinationRecId
NoGUPPriceComponentCodePriceAttributeGroupCombination.RecIdNone
PriceGroupThe price group linked to the journal.String
PriceGroupId
NoGUPOpenTradeAgreementJournalEntity
PricePreventDiscountYes/no flag that stops further discounts on the trade agreement price.Enum
GUPPriceDiscPricePreventDiscount
NoYes (enum)
NoGUPOpenTradeAgreementJournalEntity
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
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
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

Indexes (1)

  • JournalNumIdxPrimary indexReplacement key

    JournalNum

    Unique, alternate key.

Relations (4)

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

  • PriceDiscAdmName → PriceDiscAdmName

    Join on JournalName = PriceDiscAdmName.JournalName

    Many PriceDiscAdmTable records → exactly one PriceDiscAdmName record

  • GUPPriceComponentCodePriceAttributeGroupCombination → GUPPriceComponentCodePriceAttributeGroupCombination

    Join on PriceComponentCombination = GUPPriceComponentCodePriceAttributeGroupCombination.RecId

    Zero or one PriceDiscAdmTable record → zero or one GUPPriceComponentCodePriceAttributeGroupCombination record

  • GUPCustPriceGroup → PriceDiscGroup

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

    Many PriceDiscAdmTable records → zero or one PriceDiscGroup record

  • GUPSalesPriceGroup → PriceDiscGroup

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

    Many PriceDiscAdmTable records → zero or one PriceDiscGroup record

Get this data out

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

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

Email sales@drdynamics.co.uk