Table

TAMRebateDateTrans

Rebate management date transactions

Holds rebate management transactions for a date period. Each row has a unique transaction number, a rebate, a deal, an amount, a type (provision, rebate or write off), and flags for posted and cancelled. It also links to a remittance account, a fund and a free item sales order, and refers to a free text invoice by company, table and record ID.

Table name
TAMRebateDateTrans
Module
Cross-module and platform
Table group
Transaction
Table type
Regular
Data per company
No
Configuration key
LogisticsBasic
Primary index
RebateTransIdx
Replacement key
None
Key fields
RebateTransId
Model
RebatesAndDeductions

Fields (23)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
RebateTransIdUnique number of the rebate transaction.String (20)
TAMRebateTransId
YesNone
CancelledYes or No value showing whether the transaction is cancelled.Enum
TAMRebateCancelled
NoYes (enum)
NoNone
FreeItemSalesIdNumber of the sales order for a free item.String (20)
SalesId
NoNone
FundIDTrade allowance fund that the transaction relates to, from TAMFundTable.String (30)
TAMFundID
NoTAMFundTable.FundIDNone
ModuleInventCustVendKind of party the transaction relates to: inventory, customer or vendor.Enum
ModuleInventCustVend (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ProcessDateDate on which the transaction was processed.Date
TAMRebateProcessDate
NoNone
RebateAmountAmount of the rebate transaction; the currency is not stated in the metadata.Real
TAMRebateDeductionAmount
NoNone
RebateDateRecIdSystem record ID reference for the rebate date record.low confidenceInt64
RefRecId
YesNone
RebateDealSystem record ID of the rebate deal in TAMRebateDeal.Int64
TAMRebateDealRecId
YesTAMRebateDeal.RecIdNone
RebateFromDateStart date of the period that the transaction covers.Date
TAMRebateFromDate
YesNone
RebateIdRebate management number that points to the rebate in TAMRebateTable.String (20)
TAMRebateId
NoTAMRebateTable.RebateIdNone
RebatePostedYes or No value showing whether the transaction is posted.Enum
TAMRebatePosted
NoYes (enum)
NoNone
RebateToDateEnd date of the period that the transaction covers.Date
TAMRebateToDate
YesNone
RebateTransactionTypeKind of transaction: provision, rebate or write off.Enum
TAMRebateTransactionType (enum)
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
RefCompanyIdCompany of the referenced record, used with the table and record ID to point to a customer free text invoice.String
SelectableDataArea
NoNone
RefRecIdSystem record ID of the referenced record, such as a customer free text invoice.Int64
RefRecId
NoNone
RefTableIdID of the table that holds the referenced record.Integer
RefTableId
NoNone
RemittanceAccountCustomer or vendor account used for the remittance.String (20)
CustVendAC
NoCustTable.AccountNumVendTable.AccountNumNone
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

Indexes (2)

Relations (9)

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

  • CustInvoiceTable → CustInvoiceTable

    Join on RefCompanyId = CustInvoiceTable.DataAreaId, RefTableId = CustInvoiceTable.TableId, RefRecId = CustInvoiceTable.RecId

    Zero or one TAMRebateDateTrans record → exactly one CustInvoiceTable record

  • LedgerJournalTable → LedgerJournalTable

    Join on RefCompanyId = LedgerJournalTable.DataAreaId, RefTableId = LedgerJournalTable.TableId, RefRecId = LedgerJournalTable.RecId

    Zero or one TAMRebateDateTrans record → exactly one LedgerJournalTable record

  • TAMRebateDeal → TAMRebateDeal

    Join on RebateDeal = TAMRebateDeal.RecId

    Many TAMRebateDateTrans records → exactly one TAMRebateDeal record

  • TAMRebateTable → TAMRebateTable

    Join on RebateId = TAMRebateTable.RebateId

    Many TAMRebateDateTrans records → exactly one TAMRebateTable record

  • SalesTable → SalesTable

    Join on RefCompanyId = SalesTable.DataAreaId, RefTableId = SalesTable.TableId, RefRecId = SalesTable.RecId

    Zero or one TAMRebateDateTrans record → zero or one SalesTable record

  • DataArea → DataArea

    Join on DataArea.isVirtual = boolean::false, RefCompanyId = DataArea.id

    Many TAMRebateDateTrans records → zero or one DataArea record

  • CustTable → CustTable

    Join on RemittanceAccount = CustTable.AccountNum, ModuleInventCustVend = ModuleInventCustVend::Cust

    Many TAMRebateDateTrans records → zero or one CustTable record

  • VendTable → VendTable

    Join on RemittanceAccount = VendTable.AccountNum, ModuleInventCustVend = ModuleInventCustVend::Vend

    Many TAMRebateDateTrans records → zero or one VendTable record

  • TAMFundTable → TAMFundTable

    Join on FundID = TAMFundTable.FundID

    One or more TAMRebateDateTrans records → exactly one TAMFundTable record

Get this data out

No public entity reads from TAMRebateDateTrans. Its data is only reachable through the application, a custom entity or a database export.

Need help with TAMRebateDateTrans in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk