Table

VendTransCashDisc

Vendor cash discount

Stores cash discount details for vendor transactions, one record per discount date. It links to a journal line through the reference table ID and record ID. Each record holds the discount code, percentage, amount and date.

Table name
VendTransCashDisc
Module
Accounts payable
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 reference record belongs to.Integer
RefTableId
YesNone
RefRecIdSystem record ID of the record this discount refers to, such as a journal line.Int64
RefRecId
YesNone
CashDiscdateDate linked to the cash discount.Date
VendCashDiscDate
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
VendCashDiscAmount
NoNone
CashDiscCodeCode of the cash discount that applies, pointing to a record in the cash discount table.String
CashDiscCode
NoCashDisc.CashDiscCodeNone
CashDiscDueShows whether the record is for the cash discount or for the due date.Enum
CashDiscDue (enum)
NoNone
CashDiscPercentPercentage of the discount.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 (5)

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

  • CashDisc → CashDisc

    Join on CashDiscCode = CashDisc.CashDiscCode

    Many VendTransCashDisc records → zero or one CashDisc record

  • LedgerJournalTrans → LedgerJournalTrans

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

    Many VendTransCashDisc records → zero or one LedgerJournalTrans record

  • VendInvoiceJour → VendInvoiceJour

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

    Many VendTransCashDisc records → zero or one VendInvoiceJour record

  • VendSettlement → VendSettlement

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

    Many VendTransCashDisc records → zero or one VendSettlement record

  • VendTransOpen → VendTransOpen

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

    Many VendTransCashDisc records → exactly one VendTransOpen record

Get this data out

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

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

Email sales@drdynamics.co.uk