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· rootMainAccountIdForCustomerDiscountsDAVC(tableDimensionCombinationEntity) · OuterJoin toCashDisc· read-onlyMainAccountIdForVendorDiscountsDAVC(tableDimensionCombinationEntity) · OuterJoin toCashDisc· read-only
Fields (13)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
CashDiscountCodeThe unique code of the cash discount. | StringCashDiscCode | Yes | Yes | CashDisc.CashDiscCode | |
NextCashDiscountCodeThe next discount code. It points to another record in this table. | StringCashDiscCode | No | Yes | CashDisc.CashDiscCode | CashDisc.CashDiscCodeNext |
DescriptionA short description of the cash discount. | String (60)Description | No | Yes | CashDisc.Description | |
DiscountMethodHow the discount period is counted, such as net, current month, quarter, year, week, COD or cutoff day. | Enum
| No | Yes | CashDisc.DiscMethod | |
OffsetMethodForVendorDiscountsChoice used for public sector for which offset accounts apply to discounts. | Enum
| No | Yes | CashDisc.DiscountOffsetMethod_PSN | |
NumberOfDaysThe number of days in the discount period. | IntegerPositiveDays | No | Yes | CashDisc.NumOfDays | |
NumberOfMonthsThe number of months in the discount period. | IntegerPositiveMonths | No | Yes | CashDisc.NumOfMonths | |
MainAccountIdForCustomerDiscountsThe main account for customer discounts. It points to a dimension combination record. | Int64LedgerDimensionDefaultAccount | Yes | No (private) | DimensionAttributeValueCombination.RecId | CashDisc.PaidLedgerDimension |
PercentThe discount percentage. | RealDiscPct | No | Yes | CashDisc.Percent | |
MainAccountIdForVendorDiscountsThe main account for vendor discounts. It points to a dimension combination record. | Int64LedgerDimensionDefaultAccount | No | No (private) | DimensionAttributeValueCombination.RecId | CashDisc.ReceivedLedgerDimension |
MainAccountIdForCustomerDiscountsDisplayValueFull combination of dimension values, shown as one text string. | String (500)DimensionDisplayValue | No | Yes | None | |
MainAccountIdForVendorDiscountsDisplayValueFull combination of dimension values, shown as one text string. | String (500)DimensionDisplayValue | No | Yes | None | |
DescriptionQRBillA description used for Switzerland in QR bills. | String (60)Description | No | Yes | CashDisc.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.
NextCashDiscountCode→CashDisc.CashDiscCode(key of CashDisc)Many CashDisc records → zero or one CashDisc record
CashDisc details: see CredManCashDiscRankEntity, CashDiscBiEntity, CashDiscCDREntity
MainAccountIdForCustomerDiscounts→DimensionAttributeValueCombination.RecId(key of DimensionAttributeValueCombination)Many CashDisc records → exactly one DimensionAttributeValueCombination record
DimensionAttributeValueCombination details: see LedgerCurrencyParametersEntity, AdvanceAdjustmentParametersEntity, BankDocumentPostingEntity
MainAccountIdForVendorDiscounts→DimensionAttributeValueCombination.RecId(key of DimensionAttributeValueCombination)Many CashDisc records → exactly one DimensionAttributeValueCombination record
DimensionAttributeValueCombination details: see LedgerCurrencyParametersEntity, AdvanceAdjustmentParametersEntity, BankDocumentPostingEntity
Need help with CashDiscountEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.