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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
JournalNumUnique number of the journal. | String (20)PriceDiscJournalNum | Yes | TradeOpenTradeAgreementJournalHeaderV2EntityGUPOpenTradeAgreementJournalEntityTradeAgreementJournalHeaderEntityand 13 more | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultRelationThe default kind of trade agreement, such as price, line discount or total discount, for purchasing or sales. | EnumPriceType (enum) | No | TradeOpenTradeAgreementJournalHeaderV2EntityTradeAgreementJournalHeaderEntity | |
ExportCurrentPriceYes/no flag for exporting the current price. | EnumPriceDiscExportCurrentPriceNoYes (enum) | No | TradeOpenTradeAgreementJournalHeaderV2EntityGUPOpenTradeAgreementJournalEntityTradeAgreementJournalHeaderEntity | |
JournalNameThe journal name that the journal uses. | StringPriceDiscJournalName | Yes | PriceDiscAdmName.JournalName | TradeOpenTradeAgreementJournalHeaderV2EntityGUPOpenTradeAgreementJournalEntityTradeAgreementJournalHeaderEntity |
LockedForDeletionYes/no flag showing whether the journal is locked. | EnumPriceDiscLockedForDeletionNoYes (enum) | No | None | |
NameShort text that describes the journal. | String (60)Name | No | TradeOpenTradeAgreementJournalHeaderV2EntityGUPOpenTradeAgreementJournalEntityTradeAgreementJournalHeaderEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PostedYes/no flag showing whether the journal is posted. | EnumJournalPostedNoYes (enum) | No | TradeAgreementJournalHeaderEntity | |
PostedDateThe date on which the journal was posted. | DateTransDate | No | GUPOpenTradeAgreementJournalEntityTradeAgreementJournalHeaderEntity | |
PriceApplyAdjustmentYes/no flag that lets the sales agreement price take a margin price adjustment. | EnumGUPPriceDiscPriceApplyAdjustmentNoYes (enum) | No | GUPOpenTradeAgreementJournalEntity | |
PriceComponentCombinationThe price attribute group combination used by the journal. | Int64GUPPriceComponentCodeCombinationRecId | No | GUPPriceComponentCodePriceAttributeGroupCombination.RecId | None |
PriceGroupThe price group linked to the journal. | StringPriceGroupId | No | GUPOpenTradeAgreementJournalEntity | |
PricePreventDiscountYes/no flag that stops further discounts on the trade agreement price. | EnumGUPPriceDiscPricePreventDiscountNoYes (enum) | No | GUPOpenTradeAgreementJournalEntity | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (1)
JournalNumIdxPrimary indexReplacement keyUnique, alternate key.
Relations (4)
Each relation joins PriceDiscAdmTable to another table on the fields shown.
PriceDiscAdmName→PriceDiscAdmNameJoin on
JournalName = PriceDiscAdmName.JournalNameMany PriceDiscAdmTable records → exactly one PriceDiscAdmName record
GUPPriceComponentCodePriceAttributeGroupCombination→GUPPriceComponentCodePriceAttributeGroupCombinationJoin on
PriceComponentCombination = GUPPriceComponentCodePriceAttributeGroupCombination.RecIdZero or one PriceDiscAdmTable record → zero or one GUPPriceComponentCodePriceAttributeGroupCombination record
GUPCustPriceGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::PriceGroup,PriceDiscGroup.Module = ModuleInventCustVend::Cust,DefaultRelation = PriceType::PriceSales,PriceGroup = PriceDiscGroup.GroupId,PriceDiscGroup.PriceGroupAttributeEnable = NoYes::YesMany PriceDiscAdmTable records → zero or one PriceDiscGroup record
GUPSalesPriceGroup→PriceDiscGroupJoin on
PriceDiscGroup.Type = PriceGroupType::PriceGroup,PriceDiscGroup.Module = ModuleInventCustVend::Invent,DefaultRelation = PriceType::PriceSales,PriceGroup = PriceDiscGroup.GroupId,PriceDiscGroup.PriceGroupAttributeEnable = NoYes::YesMany 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.
TradeOpenTradeAgreementJournalHeaderV2Entity· 5 fields from this tableGUPOpenTradeAgreementJournalEntity· 8 fields from this tableTradeAgreementJournalHeaderEntity· 7 fields from this tableGUPOpenTradeAgreementJournalLineV2Entity· 1 field from this tablePurchOpenPurchasePriceJournalLineV2Entity· 1 field from this tableSalesOpenSalesPriceJournalLineV2Entity· 1 field from this tableGUPOpenTradeAgreementJournalLineEntity· 1 field from this tableMCROpenSalesPostageDiscountJournalLineEntity· 1 field from this tablePurchOpenPurchaseLineDiscountJournalLineEntity· 1 field from this tablePurchOpenPurchaseMultiLineDiscountJournalLineEntity· 1 field from this tablePurchOpenPurchasePriceJournalLineEntity· 1 field from this tablePurchOpenPurchaseTotalDiscountJournalLineEntity· 1 field from this tableSalesOpenSalesLineDiscountJournalLineEntity· 1 field from this tableSalesOpenSalesMultiLineDiscountJournalLineEntity· 1 field from this tableSalesOpenSalesPriceJournalLineEntity· 1 field from this tableSalesOpenSalesTotalDiscountJournalLineEntity· 1 field from this table
Need help with PriceDiscAdmTable in a report, an integration or a migration? Talk to Dr Dynamics.