Table

GUPTotalSalesOrderDiscountsTmp Temporary

Sales order discounts

Purpose not clear from the metadata.

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

Fields (11)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
OriginalTotalDiscountAmountNo descriptionReal
DiscAmount
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PeriodicDiscountOfferIdNo descriptionString (20)
RetailOfferIdEx3
NoRetailPeriodicDiscount.OfferIdNone
PeriodicDiscountTypeNo descriptionEnum
RetailDiscountOfferTypeBase (enum)
NoNone
PriceComponentCodeNameNo descriptionString (80)
GUPPriceComponentCodeName
NoGUPPriceComponentCode.NameNone
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
SalesIdNo descriptionString (20)
SalesIdBase
YesNone
SelectedNo descriptionEnum
NoYesId
NoYes (enum)
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TotalDiscountAmountNo descriptionReal
DiscAmount
NoNone

Relations (2)

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

  • RetailPeriodicDiscount → RetailPeriodicDiscount

    Join on PeriodicDiscountOfferId = RetailPeriodicDiscount.OfferId

    Many GUPTotalSalesOrderDiscountsTmp records → zero or one RetailPeriodicDiscount record

  • GUPPriceComponentCode → GUPPriceComponentCode

    Join on PriceComponentCodeName = GUPPriceComponentCode.Name

    Many GUPTotalSalesOrderDiscountsTmp records → exactly one GUPPriceComponentCode record

Get this data out

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

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

Email sales@drdynamics.co.uk