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 descriptionType / EDT / enumMandatoryReferencesIn public entities
CashDiscCodeThe unique code of the cash discount.String
CashDiscCode
YesCashDiscountEntityCredManCashDiscRankEntityCashDiscBiEntityand 1 more
CashDiscCodeNextThe next discount code. It points to another record in this table.String
CashDiscCode
NoCashDisc.CashDiscCodeCashDiscountEntityCashDiscBiEntityCashDiscCDREntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoCashDiscBiEntityCashDiscCDREntity
DescriptionA short description of the cash discount.String (60)
Description
NoCashDiscountEntityCashDiscBiEntityCashDiscCDREntity
DescriptionQRBill_CHA description used for Switzerland in QR bills.String (60)
Description
NoCashDiscountEntityCashDiscBiEntityCashDiscCDREntity
DiscMethodHow the discount period is counted, such as net, current month, quarter, year, week, COD or cutoff day.Enum
NetCurrent (enum)
NoCashDiscountEntityCashDiscBiEntityCashDiscCDREntity
DiscountOffsetMethod_PSNChoice used for public sector for which offset accounts apply to discounts.Enum
DiscountOffsetMethod (enum)
NoCashDiscountEntityCashDiscBiEntityCashDiscCDREntity
NumOfDaysThe number of days in the discount period.Integer
PositiveDays
NoCashDiscountEntityCashDiscBiEntityCashDiscCDREntity
NumOfMonthsThe number of months in the discount period.Integer
PositiveMonths
NoCashDiscountEntityCashDiscBiEntityCashDiscCDREntity
PaidLedgerDimensionThe main account for customer discounts. It points to a dimension combination record.Int64
LedgerDimensionDefaultAccount
YesDimensionAttributeValueCombination.RecIdCashDiscountEntityCashDiscBiEntityCashDiscCDREntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PercentThe discount percentage.Real
DiscPct
NoCashDiscountEntityCashDiscBiEntityCashDiscCDREntity
ReceivedLedgerDimensionThe main account for vendor discounts. It points to a dimension combination record.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdCashDiscountEntityCashDiscBiEntityCashDiscCDREntity
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoCashDiscBiEntityCashDiscCDREntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoCashDiscBiEntity
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 (3)

Relations (3)

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

  • CashDisc → CashDisc

    Join on CashDiscCodeNext = CashDisc.CashDiscCode

    Many CashDisc records → zero or one CashDisc record

  • PaidLedgerDimension → DimensionAttributeValueCombination

    Join on PaidLedgerDimension = DimensionAttributeValueCombination.RecId

    Many CashDisc records → exactly one DimensionAttributeValueCombination record

  • ReceivedLedgerDimension → DimensionAttributeValueCombination

    Join on ReceivedLedgerDimension = DimensionAttributeValueCombination.RecId

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

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

Email sales@drdynamics.co.uk