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 descriptionType / EDT / enumMandatoryReferencesIn public entities
RefTableIdID of the table that the source record belongs to.Integer
RefTableId
NoNone
RefRecIdSystem record ID of the source record, such as a customer invoice journal.Int64
RefRecId
NoNone
CashDiscdateDate linked to the cash discount.Date
CustCashDiscDate
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
CashDiscAmountAmount of the cash discount.Real
CustCashDiscAmount
NoNone
CashDiscCodeCode of the cash discount, linked to the cash discount setup.String
CashDiscCode
NoCashDisc.CashDiscCodeNone
CashDiscDueShows whether the line is a cash discount or a due amount.Enum
CashDiscDue (enum)
NoNone
CashDiscPercentDiscount as a percentage.Real
DiscPct
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
ManualYes/No flag showing whether the record was entered manually.Enum
NoYes (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
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

Indexes (2)

Relations (4)

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

  • CashDisc → CashDisc

    Join on CashDiscCode = CashDisc.CashDiscCode

    Many CustTransCashDisc records → zero or one CashDisc record

  • CustInvoiceJour → CustInvoiceJour

    Join on RefTableId = CustInvoiceJour.TableId, RefRecId = CustInvoiceJour.RecId

    Many CustTransCashDisc records → zero or one CustInvoiceJour record

  • CustSettlement → CustSettlement

    Join on RefRecId = CustSettlement.RecId, RefTableId = CustSettlement.TableId

    Many CustTransCashDisc records → zero or one CustSettlement record

  • CustTransOpen → CustTransOpen

    Join on RefTableId = CustTransOpen.TableId, RefRecId = CustTransOpen.RecId

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

Email sales@drdynamics.co.uk