Table
GUPDiscountClaim
Discount claim
Holds discount claims. Each claim has an ID, a status of calculated or claimed, a discount, a vendor and a currency. It can link to a sales invoice, a vendor claim invoice and an accrual journal. It is keyed by the discount claim ID.
- Table name
GUPDiscountClaim- Module
Cross-module and platform- Table group
Group- Table type
Regular- Data per company
Yes- Configuration key
None- Primary index
DiscountClaimIdx- Replacement key
DiscountClaimIdx- Key fields
DiscountClaimId- Model
GlobalUnifiedPricing
Fields (15)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
DiscountClaimIdUnique ID of the discount claim. | String (20)GUPDiscountClaimId | Yes | None | |
AccrualJournalNumPoints to the accrual journal for the claim. | String (20)LedgerJournalId | No | LedgerJournalTable.JournalNum | None |
ClaimTypeType of claim posting profile: claim, non-claim, additional claim or claim offset. | EnumGUPDiscountClaimPostingProfileType (enum) | No | None | |
CurrencyCodeCurrency of the claim. | String (3)CurrencyCode | Yes | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DiscountIdPoints to the periodic discount the claim is for. | String (20) | Yes | RetailPeriodicDiscount.OfferId | None |
LedgerDimensionMain account used for the claim, stored as a record ID. | Int64LedgerDimensionDefaultAccount | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | 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 | |
SalesInvoiceSales invoice linked to the claim. | String (20) | Yes | None | |
StatusStatus of the claim: calculated or claimed. | EnumGUPDiscountClaimStatus (enum) | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
VendorAccountPoints to the vendor the claim is made to. | String (20)VendAccount | Yes | VendTable.AccountNum | None |
VendorClaimInvoiceVendor invoice created for the claim. | String (20)GUPDiscountVendorClaimJournalInvoice | No | None |
Indexes (4)
DiscountIdxNot unique.
DiscountClaimIdxPrimary indexReplacement keyUnique, alternate key.
ClaimIdxSalesInvoice,DiscountId,VendorAccountNot unique.
VendorAccountCurrencyCodeIdxStatus,VendorAccount,CurrencyCode,DiscountIdNot unique.
Relations (5)
Each relation joins GUPDiscountClaim to another table on the fields shown.
VendTable→VendTableJoin on
VendorAccount = VendTable.AccountNumCardinality not set in the metadata.
RetailPeriodicDiscount→RetailPeriodicDiscountJoin on
DiscountId = RetailPeriodicDiscount.OfferIdMany GUPDiscountClaim records → exactly one RetailPeriodicDiscount record
VendInvoiceJour→VendInvoiceJourJoin on
VendorClaimInvoice = VendInvoiceJour.InvoiceIdCardinality not set in the metadata.
CustInvoiceJour→CustInvoiceJourJoin on
SalesInvoice = CustInvoiceJour.InvoiceIdCardinality not set in the metadata.
LedgerJournalTable→LedgerJournalTableJoin on
AccrualJournalNum = LedgerJournalTable.JournalNumMany GUPDiscountClaim records → zero or one LedgerJournalTable record
Get this data out
No public entity reads from GUPDiscountClaim. Its data is only reachable through the application, a custom entity or a database export.
Need help with GUPDiscountClaim in a report, an integration or a migration? Talk to Dr Dynamics.