Table
CashDisc
Cash discount
Defines cash discount codes. Each code has a description, a discount percentage, a period and main accounts for customer and vendor discounts. A code can point to a next discount code. It is keyed by the cash discount code.
- Table name
CashDisc- Module
Bank- Table group
Group- Table type
Regular- Data per company
Yes- Configuration key
LedgerBasic- Primary index
CodeIdx- Replacement key
None- Key fields
CashDiscCode- Model
Foundation
Fields (17)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CashDiscCodeThe unique code of the cash discount. | StringCashDiscCode | Yes | CashDiscountEntityCredManCashDiscRankEntityCashDiscBiEntityand 1 more | |
CashDiscCodeNextThe next discount code. It points to another record in this table. | StringCashDiscCode | No | CashDisc.CashDiscCode | CashDiscountEntityCashDiscBiEntityCashDiscCDREntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | CashDiscBiEntityCashDiscCDREntity | |
DescriptionA short description of the cash discount. | String (60)Description | No | CashDiscountEntityCashDiscBiEntityCashDiscCDREntity | |
DescriptionQRBill_CHA description used for Switzerland in QR bills. | String (60)Description | No | CashDiscountEntityCashDiscBiEntityCashDiscCDREntity | |
DiscMethodHow the discount period is counted, such as net, current month, quarter, year, week, COD or cutoff day. | EnumNetCurrent (enum) | No | CashDiscountEntityCashDiscBiEntityCashDiscCDREntity | |
DiscountOffsetMethod_PSNChoice used for public sector for which offset accounts apply to discounts. | EnumDiscountOffsetMethod (enum) | No | CashDiscountEntityCashDiscBiEntityCashDiscCDREntity | |
NumOfDaysThe number of days in the discount period. | IntegerPositiveDays | No | CashDiscountEntityCashDiscBiEntityCashDiscCDREntity | |
NumOfMonthsThe number of months in the discount period. | IntegerPositiveMonths | No | CashDiscountEntityCashDiscBiEntityCashDiscCDREntity | |
PaidLedgerDimensionThe main account for customer discounts. It points to a dimension combination record. | Int64LedgerDimensionDefaultAccount | Yes | DimensionAttributeValueCombination.RecId | CashDiscountEntityCashDiscBiEntityCashDiscCDREntity |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PercentThe discount percentage. | RealDiscPct | No | CashDiscountEntityCashDiscBiEntityCashDiscCDREntity | |
ReceivedLedgerDimensionThe main account for vendor discounts. It points to a dimension combination record. | Int64LedgerDimensionDefaultAccount | No | DimensionAttributeValueCombination.RecId | CashDiscountEntityCashDiscBiEntityCashDiscCDREntity |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | CashDiscBiEntityCashDiscCDREntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | CashDiscBiEntity | |
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 (3)
CodeIdxPrimary indexUnique, alternate key.
ReceivedLedgerDimensionIdxNot unique.
PaidLedgerDimensionIdxNot unique.
Relations (3)
Each relation joins CashDisc to another table on the fields shown.
CashDisc→CashDiscJoin on
CashDiscCodeNext = CashDisc.CashDiscCodeMany CashDisc records → zero or one CashDisc record
PaidLedgerDimension→DimensionAttributeValueCombinationJoin on
PaidLedgerDimension = DimensionAttributeValueCombination.RecIdMany CashDisc records → exactly one DimensionAttributeValueCombination record
ReceivedLedgerDimension→DimensionAttributeValueCombinationJoin on
ReceivedLedgerDimension = DimensionAttributeValueCombination.RecIdMany CashDisc records → exactly one DimensionAttributeValueCombination record
Get this data out
Tables are not exposed directly. These public entities read from CashDisc; use one of them in Power BI, Power Platform or a data management project.
CashDiscountEntity· 11 fields from this tableCredManCashDiscRankEntity· 1 field from this tableCashDiscBiEntity· 14 fields from this tableCashDiscCDREntity· 13 fields from this table
Need help with CashDisc in a report, an integration or a migration? Talk to Dr Dynamics.