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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
RefTableIdID of the table that the reference record belongs to. | IntegerRefTableId | Yes | None | |
RefRecIdSystem record ID of the record this discount refers to, such as a journal line. | Int64RefRecId | Yes | None | |
CashDiscdateDate linked to the cash discount. | DateVendCashDiscDate | 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. | RealVendCashDiscAmount | No | None | |
CashDiscCodeCode of the cash discount that applies, pointing to a record in the cash discount table. | StringCashDiscCode | No | CashDisc.CashDiscCode | None |
CashDiscDueShows whether the record is for the cash discount or for the due date. | EnumCashDiscDue (enum) | No | None | |
CashDiscPercentPercentage of the discount. | 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 (5)
Each relation joins VendTransCashDisc to another table on the fields shown.
CashDisc→CashDiscJoin on
CashDiscCode = CashDisc.CashDiscCodeMany VendTransCashDisc records → zero or one CashDisc record
LedgerJournalTrans→LedgerJournalTransJoin on
RefTableId = LedgerJournalTrans.TableId,RefRecId = LedgerJournalTrans.RecIdMany VendTransCashDisc records → zero or one LedgerJournalTrans record
VendInvoiceJour→VendInvoiceJourJoin on
RefTableId = VendInvoiceJour.TableId,RefRecId = VendInvoiceJour.RecIdMany VendTransCashDisc records → zero or one VendInvoiceJour record
VendSettlement→VendSettlementJoin on
RefTableId = VendSettlement.TableId,RefRecId = VendSettlement.RecIdMany VendTransCashDisc records → zero or one VendSettlement record
VendTransOpen→VendTransOpenJoin on
RefRecId = VendTransOpen.RecId,RefTableId = VendTransOpen.TableIdMany 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.