Table

GUPTotalSalesOrderFreeItemDiscounts

Sales order discounts

Holds discount totals for a sales order or sales quotation. Each row shows one periodic discount with its type, price component code, current and original discount amounts, and a selected flag. Rows link to a periodic discount and a price component code.

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

Fields (13)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
IsSalesQuotationYes/No flag showing whether the row relates to a sales quotation.Enum
NoYesId
NoYes (enum)
NoNone
OriginalTotalDiscountAmountTotal discount amount before any change.Real
DiscAmount
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PeriodicDiscountOfferIdIdentifier of the periodic discount. Points to the periodic discount record.String (20)
RetailOfferIdEx3
NoRetailPeriodicDiscount.OfferIdNone
PeriodicDiscountTypeType of the discount, for example quantity, mix and match, threshold or free item.Enum
RetailDiscountOfferTypeBase (enum)
NoNone
PriceComponentCodeNameName of the price component code. Points to the price component code record.String (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
SalesIdNumber of the sales order.String (20)
SalesIdBase
YesNone
SelectedYes/No flag showing whether the row is selected.Enum
NoYesId
NoYes (enum)
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TotalDiscountAmountCurrent total discount amount.Real
DiscAmount
NoNone

Indexes (2)

Relations (2)

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

  • RetailPeriodicDiscount → RetailPeriodicDiscount

    Join on PeriodicDiscountOfferId = RetailPeriodicDiscount.OfferId

    Many GUPTotalSalesOrderFreeItemDiscounts records → zero or one RetailPeriodicDiscount record

  • GUPPriceComponentCode → GUPPriceComponentCode

    Join on PriceComponentCodeName = GUPPriceComponentCode.Name

    Many GUPTotalSalesOrderFreeItemDiscounts records → exactly one GUPPriceComponentCode record

Get this data out

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

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

Email sales@drdynamics.co.uk