Table
CustTransCashDisc
Customer cash discount
Stores cash discount lines for customer transactions. Each record has a cash discount code, a discount date, an amount and a percentage. It links to a source record through a table ID and record ID, and relates to cash discount, invoice journal, settlement and open transaction tables.
- Table name
CustTransCashDisc- Module
Accounts receivable- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
LedgerBasic- Primary index
RecIdDateIdx- Replacement key
None- Key fields
RefTableId, RefRecId, CashDiscdate, RecId- Model
Foundation
Fields (14)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
RefTableIdID of the table that the source record belongs to. | IntegerRefTableId | No | None | |
RefRecIdSystem record ID of the source record, such as a customer invoice journal. | Int64RefRecId | No | None | |
CashDiscdateDate linked to the cash discount. | DateCustCashDiscDate | 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 | |
CashDiscAmountAmount of the cash discount. | RealCustCashDiscAmount | No | None | |
CashDiscCodeCode of the cash discount, linked to the cash discount setup. | StringCashDiscCode | No | CashDisc.CashDiscCode | None |
CashDiscDueShows whether the line is a cash discount or a due amount. | EnumCashDiscDue (enum) | No | None | |
CashDiscPercentDiscount as a percentage. | RealDiscPct | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
ManualYes/No flag showing whether the record was entered manually. | EnumNoYes (enum) | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | 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 | |
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 |
Indexes (2)
RecIdDateIdxPrimary indexRefTableId,RefRecId,CashDiscdate,RecIdUnique.
RefRecIdRefTableIdIdxNot unique.
Relations (4)
Each relation joins CustTransCashDisc to another table on the fields shown.
CashDisc→CashDiscJoin on
CashDiscCode = CashDisc.CashDiscCodeMany CustTransCashDisc records → zero or one CashDisc record
CustInvoiceJour→CustInvoiceJourJoin on
RefTableId = CustInvoiceJour.TableId,RefRecId = CustInvoiceJour.RecIdMany CustTransCashDisc records → zero or one CustInvoiceJour record
CustSettlement→CustSettlementJoin on
RefRecId = CustSettlement.RecId,RefTableId = CustSettlement.TableIdMany CustTransCashDisc records → zero or one CustSettlement record
CustTransOpen→CustTransOpenJoin on
RefTableId = CustTransOpen.TableId,RefRecId = CustTransOpen.RecIdMany CustTransCashDisc records → zero or one CustTransOpen record
Get this data out
No public entity reads from CustTransCashDisc. Its data is only reachable through the application, a custom entity or a database export.
Need help with CustTransCashDisc in a report, an integration or a migration? Talk to Dr Dynamics.