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 descriptionType / EDT / enumMandatoryReferencesIn public entities
DiscountClaimIdUnique ID of the discount claim.String (20)
GUPDiscountClaimId
YesNone
AccrualJournalNumPoints to the accrual journal for the claim.String (20)
LedgerJournalId
NoLedgerJournalTable.JournalNumNone
ClaimTypeType of claim posting profile: claim, non-claim, additional claim or claim offset.Enum
GUPDiscountClaimPostingProfileType (enum)
NoNone
CurrencyCodeCurrency of the claim.String (3)
CurrencyCode
YesNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DiscountIdPoints to the periodic discount the claim is for.String (20)YesRetailPeriodicDiscount.OfferIdNone
LedgerDimensionMain account used for the claim, stored as a record ID.Int64
LedgerDimensionDefaultAccount
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
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
SalesInvoiceSales invoice linked to the claim.String (20)YesNone
StatusStatus of the claim: calculated or claimed.Enum
GUPDiscountClaimStatus (enum)
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
VendorAccountPoints to the vendor the claim is made to.String (20)
VendAccount
YesVendTable.AccountNumNone
VendorClaimInvoiceVendor invoice created for the claim.String (20)
GUPDiscountVendorClaimJournalInvoice
NoNone

Indexes (4)

Relations (5)

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

  • VendTable → VendTable

    Join on VendorAccount = VendTable.AccountNum

    Cardinality not set in the metadata.

  • RetailPeriodicDiscount → RetailPeriodicDiscount

    Join on DiscountId = RetailPeriodicDiscount.OfferId

    Many GUPDiscountClaim records → exactly one RetailPeriodicDiscount record

  • VendInvoiceJour → VendInvoiceJour

    Join on VendorClaimInvoice = VendInvoiceJour.InvoiceId

    Cardinality not set in the metadata.

  • CustInvoiceJour → CustInvoiceJour

    Join on SalesInvoice = CustInvoiceJour.InvoiceId

    Cardinality not set in the metadata.

  • LedgerJournalTable → LedgerJournalTable

    Join on AccrualJournalNum = LedgerJournalTable.JournalNum

    Many 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.

Email sales@drdynamics.co.uk