Table
TAMDeduction
Deductions
Holds customer deductions in trade promotion management. Each deduction has a status, type, amounts, an optional claim, and links to the customer, invoice, sales order, trade allowance and ledger journals. Deductions can point back to an original deduction, for example after a split.
- Table name
TAMDeduction- Module
Sales and marketing- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
TAMPromotionsManagement- Primary index
DeductionIDIdx- Replacement key
DeductionIDIdx- Key fields
TAMDeductionID- Model
Foundation
Fields (45)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
TAMDeductionIDUnique ID of the deduction. | String (20)TAMDeductionID | Yes | None | |
AccountNumCustomer account the deduction belongs to. | String (20)CustAccount | Yes | CustTable.AccountNum | None |
AmountCurAmount of the deduction. | RealTAMDeductionAmountCur | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CurrencyCodeCurrency code of the deduction. | String (3)CurrencyCode | Yes | Currency.CurrencyCode | None |
CustInvoiceIdCustomer invoice the deduction relates to. | String (20)CustInvoiceId | No | None | |
CustTransRecIdCustomer transaction linked to the deduction. | Int64CustTransRefRecId | No | CustTrans.RecId | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DeductOffLedgerDimensionLedger account combination used as the offset for the deduction. | Int64LedgerDimensionDefaultAccount | No | DimensionAttributeValueCombination.RecId | None |
DeductWriteOffLedgerDimensionMain account used when the deduction is written off. | Int64LedgerDimensionDefaultAccount | No | DimensionAttributeValueCombination.RecId | None |
DenyAmountCurAmount of the deduction that was denied. | RealTAMDeductionAmountCur | No | None | |
DenyJournalIDJournal number linked to the denial. | String (20)LedgerJournalId | No | LedgerJournalTable.JournalNum | None |
HcmWorkerIdWorker who owns the deduction. | Int64HcmApprover | No | HcmWorker.RecId | None |
JournalIDJournal batch number linked to the deduction. | String (20)LedgerJournalId | Yes | LedgerJournalTable.JournalNum | None |
LedgerJournalTransParentRecIdParent journal line linked to the deduction.low confidence | Int64LedgerJournalTransRefRecId | Yes | LedgerJournalTrans.RecId | None |
LedgerJournalTransRecIdJournal line linked to the deduction. | Int64LedgerJournalTransRefRecId | No | LedgerJournalTrans.RecId | None |
MatchAmountCurAmount of the deduction that was matched. | RealTAMDeductionAmountCur | No | None | |
MCRMerchandisingEventIDMerchandising event linked to the deduction. | StringMCRMerchandisingEventID | No | TAMMerchandisingEvent.MerchandisingEventID | None |
NotesFree-text notes about the deduction. | String (254)NotesLine | 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 | |
RemainAmountCurAmount of the deduction still remaining. | RealTAMDeductionAmountCur | No | None | |
RemainAmountMSTRemaining amount in the accounting currency. | RealAmountMST | No | None | |
SalesIdSales order the deduction relates to. | String (20)SalesId | No | SalesTable.SalesId | None |
SplitAmountCurAmount of the deduction that was split off. | RealTAMDeductionAmountCur | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TAMDeductionClaimBasisWhether the claim is based on price or on quantity. | EnumTAMDeductionClaimBasis (enum) | No | None | |
TAMDeductionClaimCreateJournalYes or no flag for creating a claim journal. | EnumTAMDeductionClaimCreateJournalNoYes (enum) | No | None | |
TAMDeductionClaimDateDate of the claim. | DateTAMDeductionClaimDate | No | None | |
TAMDeductionClaimExternalIdClaim number from an external source. | String (20)TAMDeductionClaimExternalId | No | None | |
TAMDeductionClaimReasonIdReason given for the claim. | String (15)TAMDeductionClaimReasonId | No | TAMPaymDeductionReason.ClaimReasonId | None |
TAMDeductionClaimStatusStatus of the claim: open, accepted, rejected, matched or write-off. | EnumTAMDeductionClaimStatus (enum) | No | None | |
TAMDeductionClaimVoucherVoucher number linked to the claim. | String (20)TAMDeductionClaimVoucher | No | None | |
TAMDeductionCreatedByClaimYes or no flag showing whether a claim created the deduction. | EnumTAMDeductionCreatedByClaimNoYes (enum) | No | None | |
TAMDeductionCustTransRecIdCustomer transaction reference for the deduction. Its exact use is not stated.low confidence | Int64TAMDeductionCustTransRecId | No | None | |
TAMDeductionDenyReasonReason code for denying the deduction. | String (20)TAMDeductionDenyReason | No | TAMDeductionDenyReasonTable.TAMDeductionDenyReason | None |
TAMDeductionOrigIdID of the original deduction this one came from. | String (20)TAMDeductionOrigID | No | TAMDeduction.TAMDeductionID | None |
TAMDeductionStatusStatus of the deduction: created, open or closed. | EnumTAMDeductionStatus (enum) | No | None | |
TAMDeductionTypeType of the deduction. | String (20)TAMDeductionType | Yes | TAMDeductionTypeTable.TAMDeductionType | None |
TAMDeductionWriteOffReasonReason code for writing off the deduction. | String (20)TAMDeductionWriteOffReason | No | TAMDeductionWriteOffReasonTable.TAMDeductionWriteOffReason | None |
TAMPromotionIDTrade allowance linked to the deduction. | StringTAMPromotionID | No | TAMTradePromotion.PromotionID | None |
WriteOffAmountCurAmount of the deduction that was written off. | RealTAMDeductionAmountCur | No | None | |
WriteOffJournalIDJournal number linked to the write-off. | String (20)LedgerJournalId | No | LedgerJournalTable.JournalNum | None |
Indexes (13)
DeductionIDIdxPrimary indexReplacement keyUnique, alternate key.
StatusIdxNot unique.
ParentRecIdIdxNot unique.
PromotionIDIdxNot unique.
DimensionAttributeValueCombinationIdxNot unique.
HcmWorkerIdxNot unique.
DimensionAttributeValueCombinationIdx2Not unique.
LedgerJournalTransRecIdIdxNot unique.
CustTransIdxNot unique.
DeductionOrigIdxNot unique.
LedgerJournalIdxNot unique.
TAMDeductionClaimStatusIdxNot unique.
TAMDeductionClaimDateVoucherIdxTAMDeductionClaimVoucher,TAMDeductionClaimDateNot unique.
Relations (20)
Each relation joins TAMDeduction to another table on the fields shown.
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeOne or more TAMDeduction records → exactly one Currency record
CustInvoiceJour→CustInvoiceJourJoin on
CustInvoiceId = CustInvoiceJour.InvoiceIdMany TAMDeduction records → zero or one CustInvoiceJour record
CustTable→CustTableJoin on
AccountNum = CustTable.AccountNumOne or more TAMDeduction records → exactly one CustTable record
DeductionOffDimension→DimensionAttributeValueCombinationJoin on
DeductOffLedgerDimension = DimensionAttributeValueCombination.RecIdMany TAMDeduction records → zero or one DimensionAttributeValueCombination record
DenyJournalID→LedgerJournalTableJoin on
DenyJournalID = LedgerJournalTable.JournalNumMany TAMDeduction records → exactly one LedgerJournalTable record
DimensionAttributeValueCombination→DimensionAttributeValueCombinationJoin on
DeductWriteOffLedgerDimension = DimensionAttributeValueCombination.RecIdMany TAMDeduction records → zero or one DimensionAttributeValueCombination record
HcmWorkerId→HcmWorkerJoin on
HcmWorkerId = HcmWorker.RecIdMany TAMDeduction records → exactly one HcmWorker record
LedgerJournalTable→LedgerJournalTableJoin on
JournalID = LedgerJournalTable.JournalNumOne or more TAMDeduction records → exactly one LedgerJournalTable record
LedgerJournalTrans→LedgerJournalTransJoin on
LedgerJournalTransRecId = LedgerJournalTrans.RecIdMany TAMDeduction records → zero or one LedgerJournalTrans record
LedgerJournalTransRecId→LedgerJournalTransJoin on
LedgerJournalTransParentRecId = LedgerJournalTrans.RecIdOne or more TAMDeduction records → exactly one LedgerJournalTrans record
SalesTable→SalesTableJoin on
SalesId = SalesTable.SalesIdMany TAMDeduction records → exactly one SalesTable record
TAMDeduction→TAMDeductionJoin on
TAMDeductionOrigId = TAMDeduction.TAMDeductionIDMany TAMDeduction records → zero or one TAMDeduction record
TAMDeductionDenyReasonTable→TAMDeductionDenyReasonTableJoin on
TAMDeductionDenyReason = TAMDeductionDenyReasonTable.TAMDeductionDenyReasonMany TAMDeduction records → exactly one TAMDeductionDenyReasonTable record
TAMDeductionTypeTable→TAMDeductionTypeTableJoin on
TAMDeductionType = TAMDeductionTypeTable.TAMDeductionTypeOne or more TAMDeduction records → exactly one TAMDeductionTypeTable record
TAMDeductionWriteOffReasonTable→TAMDeductionWriteOffReasonTableJoin on
TAMDeductionWriteOffReason = TAMDeductionWriteOffReasonTable.TAMDeductionWriteOffReasonMany TAMDeduction records → exactly one TAMDeductionWriteOffReasonTable record
TAMMerchandisingEvent→TAMMerchandisingEventJoin on
MCRMerchandisingEventID = TAMMerchandisingEvent.MerchandisingEventIDMany TAMDeduction records → exactly one TAMMerchandisingEvent record
TAMTradePromotion→TAMTradePromotionJoin on
TAMPromotionID = TAMTradePromotion.PromotionIDMany TAMDeduction records → zero or one TAMTradePromotion record
WriteOffJournalID→LedgerJournalTableJoin on
WriteOffJournalID = LedgerJournalTable.JournalNumMany TAMDeduction records → exactly one LedgerJournalTable record
CustTrans→CustTransJoin on
CustTransRecId = CustTrans.RecIdZero or one TAMDeduction record → zero or one CustTrans record
TAMDeductionClaimReason→TAMPaymDeductionReasonJoin on
TAMDeductionClaimReasonId = TAMPaymDeductionReason.ClaimReasonIdMany TAMDeduction records → exactly one TAMPaymDeductionReason record
Get this data out
No public entity reads from TAMDeduction. Its data is only reachable through the application, a custom entity or a database export.
Need help with TAMDeduction in a report, an integration or a migration? Talk to Dr Dynamics.