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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
IsSalesQuotationYes/No flag showing whether the row relates to a sales quotation. | EnumNoYesIdNoYes (enum) | No | None | |
OriginalTotalDiscountAmountTotal discount amount before any change. | RealDiscAmount | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PeriodicDiscountOfferIdIdentifier of the periodic discount. Points to the periodic discount record. | String (20)RetailOfferIdEx3 | No | RetailPeriodicDiscount.OfferId | None |
PeriodicDiscountTypeType of the discount, for example quantity, mix and match, threshold or free item. | EnumRetailDiscountOfferTypeBase (enum) | No | None | |
PriceComponentCodeNameName of the price component code. Points to the price component code record. | String (80)GUPPriceComponentCodeName | No | GUPPriceComponentCode.Name | None |
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 | |
SalesIdNumber of the sales order. | String (20)SalesIdBase | Yes | None | |
SelectedYes/No flag showing whether the row is selected. | EnumNoYesIdNoYes (enum) | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TotalDiscountAmountCurrent total discount amount. | RealDiscAmount | No | None |
Indexes (2)
SalesIdOfferIdIdxSalesId,PeriodicDiscountOfferId,IsSalesQuotationNot unique.
SalesOrQuotationIdOfferIdIdxSalesId,PeriodicDiscountOfferId,IsSalesQuotationUnique, alternate key.
Relations (2)
Each relation joins GUPTotalSalesOrderFreeItemDiscounts to another table on the fields shown.
RetailPeriodicDiscount→RetailPeriodicDiscountJoin on
PeriodicDiscountOfferId = RetailPeriodicDiscount.OfferIdMany GUPTotalSalesOrderFreeItemDiscounts records → zero or one RetailPeriodicDiscount record
GUPPriceComponentCode→GUPPriceComponentCodeJoin on
PriceComponentCodeName = GUPPriceComponentCode.NameMany 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.