Data entity

CashDiscountEntity

Cash discount codes, keyed by cash discount code. Each code has a description, a net or current setting, and a number of days and months. It also has a discount percentage and can point to a next discount code. It holds main accounts for customer and vendor discounts.

Entity name
CashDiscountEntity
Public entity name
CashDiscount
OData collection
CashDiscounts
Category
Reference
Module
APAR shared
Read-only
No
Data management enabled
Yes
Configuration key
LedgerBasic
Keys
CashDiscountCode
Staging table
CashDiscountStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/CashDiscounts
Dataverse virtual table
mserp_cashdiscountentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.
Data management
Enabled: you can use it in import and export projects.

Data sources

  • CashDisc · root
  • MainAccountIdForCustomerDiscountsDAVC (table DimensionCombinationEntity) · OuterJoin to CashDisc · read-only
  • MainAccountIdForVendorDiscountsDAVC (table DimensionCombinationEntity) · OuterJoin to CashDisc · read-only

Fields (13)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
CashDiscountCodeThe unique code of the cash discount.String
CashDiscCode
YesYesCashDisc.CashDiscCode
NextCashDiscountCodeThe next discount code. It points to another record in this table.String
CashDiscCode
NoYesCashDisc.CashDiscCodeCashDisc.CashDiscCodeNext
DescriptionA short description of the cash discount.String (60)
Description
NoYesCashDisc.Description
DiscountMethodHow the discount period is counted, such as net, current month, quarter, year, week, COD or cutoff day.Enum
NetCurrent
  • Net 0
  • CurrentMth 1
  • CurrentQuart 2
  • CurrentYear 3
  • CurrentWeek 4
  • COD 5
  • CutOffDate 7
NoYesCashDisc.DiscMethod
OffsetMethodForVendorDiscountsChoice used for public sector for which offset accounts apply to discounts.Enum
DiscountOffsetMethod
  • AccountReceived 0
  • InvoiceAccount 1
NoYesCashDisc.DiscountOffsetMethod_PSN
NumberOfDaysThe number of days in the discount period.Integer
PositiveDays
NoYesCashDisc.NumOfDays
NumberOfMonthsThe number of months in the discount period.Integer
PositiveMonths
NoYesCashDisc.NumOfMonths
MainAccountIdForCustomerDiscountsThe main account for customer discounts. It points to a dimension combination record.Int64
LedgerDimensionDefaultAccount
YesNo (private)DimensionAttributeValueCombination.RecIdCashDisc.PaidLedgerDimension
PercentThe discount percentage.Real
DiscPct
NoYesCashDisc.Percent
MainAccountIdForVendorDiscountsThe main account for vendor discounts. It points to a dimension combination record.Int64
LedgerDimensionDefaultAccount
NoNo (private)DimensionAttributeValueCombination.RecIdCashDisc.ReceivedLedgerDimension
MainAccountIdForCustomerDiscountsDisplayValueFull combination of dimension values, shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
MainAccountIdForVendorDiscountsDisplayValueFull combination of dimension values, shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
DescriptionQRBillA description used for Switzerland in QR bills.String (60)
Description
NoYesCashDisc.DescriptionQRBill_CH

Foreign keys (3)

Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.

Need help with CashDiscountEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk