Table

GUPTmpPriceReportValues

Price report

Temporary table that holds the result rows of a price report. Each row covers one item or variant for a customer and currency. It shows base price, margin adjustments, discounts, sales price and amount for a date range. Rows link to a price report version, an item, a currency and a trade agreement journal.

Table name
GUPTmpPriceReportValues
Module
Cross-module and platform
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
None
Replacement key
None
Key fields
None
Model
GlobalUnifiedPricing

Fields (31)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AccountNumCustomer account the prices are for.String (20)
CustAccount
YesNone
BasePriceBase price of the item.Real
Price
NoNone
CalculatedDiscountDiscount value shown in the report.Real
SalesLineDisc
NoNone
CalculatedMarginMargin value shown in the report.Real
GUPCalculatedMargin
NoNone
CurrencyCodeCurrency code used for the prices. Points to the currency record.String (3)
CustCurrencyCode
NoCurrency.CurrencyCodeNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DiscountAmountListText listing the amounts of the discounts.String (60)
GUPDiscountAmountList
NoNone
DiscountOffersText listing the discount offers that apply.String (60)
GUPDiscountOffers
NoNone
DiscountPercentDiscount as a percentage.Real
Percent
NoNone
DiscountPerInventoryUnitDiscount amount expressed per inventory unit.Real
Price
NoNone
FromDateStart date of the period the row applies to.Date
FromDate
YesNone
InventoryUnitUnit of measure used for inventory.String
UnitOfMeasureSymbol
NoNone
ItemIdItem number. Points to the item record.String (20)
ItemId
NoInventTable.ItemIdNone
LineAmountSales amount of the line.Real
SalesLineAmount
NoNone
MarginAmountListText listing the amounts of the margin price adjustments.String (60)
GUPMarginAmountList
NoNone
MarginOffersText listing the margin price adjustments applied.String (60)
GUPMarginOffers
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ProductIdSystem record ID of the product.Int64
EcoResProductRecId
NoNone
ProductNameName of the product.String (60)
EcoResProductName
NoNone
QuantityQuantity in units.Real
UnitQty
NoNone
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
ReportIdGUID of the price report version the row belongs to.Guid
GUPPriceReportReportId
NoGUPPriceReportVersion.ReportIdNone
SalesPriceSales price per unit.Real
SalesPrice
NoNone
SalesPricePerInventoryUnitSales price expressed per inventory unit.Real
Price
NoNone
SalesUnitUnit of measure used for sales.String
SalesUnit
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TAJournalNumNumber of the trade agreement journal. Points to the trade agreement journal record.String (20)
PriceDiscJournalNum
NoPriceDiscAdmTable.JournalNumNone
ToDateEnd date of the period the row applies to.Date
ToDate
NoNone
UnitPricePrice per unit.Real
Price
NoNone
VariantIdVariant number of the product.String
RetailVariantId
NoNone

Relations (4)

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

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many GUPTmpPriceReportValues records → exactly one Currency record

  • InventTable → InventTable

    Join on ItemId = InventTable.ItemId

    Cardinality not set in the metadata.

  • PriceDiscAdmTable → PriceDiscAdmTable

    Join on TAJournalNum = PriceDiscAdmTable.JournalNum

    Many GUPTmpPriceReportValues records → zero or one PriceDiscAdmTable record

  • GUPPriceReportVersion → GUPPriceReportVersion

    Join on ReportId = GUPPriceReportVersion.ReportId

    Cardinality not set in the metadata.

Get this data out

No public entity reads from GUPTmpPriceReportValues. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk