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 descriptionType / EDT / enumMandatoryReferencesIn public entities
TAMDeductionIDUnique ID of the deduction.String (20)
TAMDeductionID
YesNone
AccountNumCustomer account the deduction belongs to.String (20)
CustAccount
YesCustTable.AccountNumNone
AmountCurAmount of the deduction.Real
TAMDeductionAmountCur
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CurrencyCodeCurrency code of the deduction.String (3)
CurrencyCode
YesCurrency.CurrencyCodeNone
CustInvoiceIdCustomer invoice the deduction relates to.String (20)
CustInvoiceId
NoNone
CustTransRecIdCustomer transaction linked to the deduction.Int64
CustTransRefRecId
NoCustTrans.RecIdNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DeductOffLedgerDimensionLedger account combination used as the offset for the deduction.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdNone
DeductWriteOffLedgerDimensionMain account used when the deduction is written off.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdNone
DenyAmountCurAmount of the deduction that was denied.Real
TAMDeductionAmountCur
NoNone
DenyJournalIDJournal number linked to the denial.String (20)
LedgerJournalId
NoLedgerJournalTable.JournalNumNone
HcmWorkerIdWorker who owns the deduction.Int64
HcmApprover
NoHcmWorker.RecIdNone
JournalIDJournal batch number linked to the deduction.String (20)
LedgerJournalId
YesLedgerJournalTable.JournalNumNone
LedgerJournalTransParentRecIdParent journal line linked to the deduction.low confidenceInt64
LedgerJournalTransRefRecId
YesLedgerJournalTrans.RecIdNone
LedgerJournalTransRecIdJournal line linked to the deduction.Int64
LedgerJournalTransRefRecId
NoLedgerJournalTrans.RecIdNone
MatchAmountCurAmount of the deduction that was matched.Real
TAMDeductionAmountCur
NoNone
MCRMerchandisingEventIDMerchandising event linked to the deduction.String
MCRMerchandisingEventID
NoTAMMerchandisingEvent.MerchandisingEventIDNone
NotesFree-text notes about the deduction.String (254)
NotesLine
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
RemainAmountCurAmount of the deduction still remaining.Real
TAMDeductionAmountCur
NoNone
RemainAmountMSTRemaining amount in the accounting currency.Real
AmountMST
NoNone
SalesIdSales order the deduction relates to.String (20)
SalesId
NoSalesTable.SalesIdNone
SplitAmountCurAmount of the deduction that was split off.Real
TAMDeductionAmountCur
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TAMDeductionClaimBasisWhether the claim is based on price or on quantity.Enum
TAMDeductionClaimBasis (enum)
NoNone
TAMDeductionClaimCreateJournalYes or no flag for creating a claim journal.Enum
TAMDeductionClaimCreateJournal
NoYes (enum)
NoNone
TAMDeductionClaimDateDate of the claim.Date
TAMDeductionClaimDate
NoNone
TAMDeductionClaimExternalIdClaim number from an external source.String (20)
TAMDeductionClaimExternalId
NoNone
TAMDeductionClaimReasonIdReason given for the claim.String (15)
TAMDeductionClaimReasonId
NoTAMPaymDeductionReason.ClaimReasonIdNone
TAMDeductionClaimStatusStatus of the claim: open, accepted, rejected, matched or write-off.Enum
TAMDeductionClaimStatus (enum)
NoNone
TAMDeductionClaimVoucherVoucher number linked to the claim.String (20)
TAMDeductionClaimVoucher
NoNone
TAMDeductionCreatedByClaimYes or no flag showing whether a claim created the deduction.Enum
TAMDeductionCreatedByClaim
NoYes (enum)
NoNone
TAMDeductionCustTransRecIdCustomer transaction reference for the deduction. Its exact use is not stated.low confidenceInt64
TAMDeductionCustTransRecId
NoNone
TAMDeductionDenyReasonReason code for denying the deduction.String (20)
TAMDeductionDenyReason
NoTAMDeductionDenyReasonTable.TAMDeductionDenyReasonNone
TAMDeductionOrigIdID of the original deduction this one came from.String (20)
TAMDeductionOrigID
NoTAMDeduction.TAMDeductionIDNone
TAMDeductionStatusStatus of the deduction: created, open or closed.Enum
TAMDeductionStatus (enum)
NoNone
TAMDeductionTypeType of the deduction.String (20)
TAMDeductionType
YesTAMDeductionTypeTable.TAMDeductionTypeNone
TAMDeductionWriteOffReasonReason code for writing off the deduction.String (20)
TAMDeductionWriteOffReason
NoTAMDeductionWriteOffReasonTable.TAMDeductionWriteOffReasonNone
TAMPromotionIDTrade allowance linked to the deduction.String
TAMPromotionID
NoTAMTradePromotion.PromotionIDNone
WriteOffAmountCurAmount of the deduction that was written off.Real
TAMDeductionAmountCur
NoNone
WriteOffJournalIDJournal number linked to the write-off.String (20)
LedgerJournalId
NoLedgerJournalTable.JournalNumNone

Indexes (13)

Relations (20)

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

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    One or more TAMDeduction records → exactly one Currency record

  • CustInvoiceJour → CustInvoiceJour

    Join on CustInvoiceId = CustInvoiceJour.InvoiceId

    Many TAMDeduction records → zero or one CustInvoiceJour record

  • CustTable → CustTable

    Join on AccountNum = CustTable.AccountNum

    One or more TAMDeduction records → exactly one CustTable record

  • DeductionOffDimension → DimensionAttributeValueCombination

    Join on DeductOffLedgerDimension = DimensionAttributeValueCombination.RecId

    Many TAMDeduction records → zero or one DimensionAttributeValueCombination record

  • DenyJournalID → LedgerJournalTable

    Join on DenyJournalID = LedgerJournalTable.JournalNum

    Many TAMDeduction records → exactly one LedgerJournalTable record

  • DimensionAttributeValueCombination → DimensionAttributeValueCombination

    Join on DeductWriteOffLedgerDimension = DimensionAttributeValueCombination.RecId

    Many TAMDeduction records → zero or one DimensionAttributeValueCombination record

  • HcmWorkerId → HcmWorker

    Join on HcmWorkerId = HcmWorker.RecId

    Many TAMDeduction records → exactly one HcmWorker record

  • LedgerJournalTable → LedgerJournalTable

    Join on JournalID = LedgerJournalTable.JournalNum

    One or more TAMDeduction records → exactly one LedgerJournalTable record

  • LedgerJournalTrans → LedgerJournalTrans

    Join on LedgerJournalTransRecId = LedgerJournalTrans.RecId

    Many TAMDeduction records → zero or one LedgerJournalTrans record

  • LedgerJournalTransRecId → LedgerJournalTrans

    Join on LedgerJournalTransParentRecId = LedgerJournalTrans.RecId

    One or more TAMDeduction records → exactly one LedgerJournalTrans record

  • SalesTable → SalesTable

    Join on SalesId = SalesTable.SalesId

    Many TAMDeduction records → exactly one SalesTable record

  • TAMDeduction → TAMDeduction

    Join on TAMDeductionOrigId = TAMDeduction.TAMDeductionID

    Many TAMDeduction records → zero or one TAMDeduction record

  • TAMDeductionDenyReasonTable → TAMDeductionDenyReasonTable

    Join on TAMDeductionDenyReason = TAMDeductionDenyReasonTable.TAMDeductionDenyReason

    Many TAMDeduction records → exactly one TAMDeductionDenyReasonTable record

  • TAMDeductionTypeTable → TAMDeductionTypeTable

    Join on TAMDeductionType = TAMDeductionTypeTable.TAMDeductionType

    One or more TAMDeduction records → exactly one TAMDeductionTypeTable record

  • TAMDeductionWriteOffReasonTable → TAMDeductionWriteOffReasonTable

    Join on TAMDeductionWriteOffReason = TAMDeductionWriteOffReasonTable.TAMDeductionWriteOffReason

    Many TAMDeduction records → exactly one TAMDeductionWriteOffReasonTable record

  • TAMMerchandisingEvent → TAMMerchandisingEvent

    Join on MCRMerchandisingEventID = TAMMerchandisingEvent.MerchandisingEventID

    Many TAMDeduction records → exactly one TAMMerchandisingEvent record

  • TAMTradePromotion → TAMTradePromotion

    Join on TAMPromotionID = TAMTradePromotion.PromotionID

    Many TAMDeduction records → zero or one TAMTradePromotion record

  • WriteOffJournalID → LedgerJournalTable

    Join on WriteOffJournalID = LedgerJournalTable.JournalNum

    Many TAMDeduction records → exactly one LedgerJournalTable record

  • CustTrans → CustTrans

    Join on CustTransRecId = CustTrans.RecId

    Zero or one TAMDeduction record → zero or one CustTrans record

  • TAMDeductionClaimReason → TAMPaymDeductionReason

    Join on TAMDeductionClaimReasonId = TAMPaymDeductionReason.ClaimReasonId

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

Email sales@drdynamics.co.uk