Data entity

SalesRebateEntity

Read-only customer rebate records, keyed by rebate ID. Each record shows customer, item, sales order, invoice date, quantity, sales amount and rebate balance. It also holds accrual and expense accounts, status and the link to the agreement.

Entity name
SalesRebateEntity
Public entity name
CustomerRebate
OData collection
CustomerRebates
Category
Transaction
Module
Sales and marketing
Read-only
Yes
Data management enabled
Yes
Configuration key
PdsRebate
Keys
RebateId
Staging table
SalesRebateStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/CustomerRebates
Dataverse virtual table
mserp_salesrebateentity. 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

  • PdsRebateTable · root
  • CustInvoiceTrans · OuterJoin to PdsRebateTable · read-only
  • PdsRebateAgreement · OuterJoin to PdsRebateTable · read-only
  • PdsRebateAgreementLine · OuterJoin to PdsRebateAgreement · read-only
  • SalesLineRef (table SalesLine) · OuterJoin to PdsRebateTable · read-only
  • SalesTableRef (table SalesTable) · OuterJoin to PdsRebateTable · read-only
  • AccrualDefaultDimensionDAVS (table DimensionSetEntity) · OuterJoin to PdsRebateTable · read-only
  • AccrualMainAccountIdDAVC (table DimensionCombinationEntity) · OuterJoin to PdsRebateTable · read-only
  • ExpenseDefaultDimensionDAVS (table DimensionSetEntity) · OuterJoin to PdsRebateTable · read-only
  • ExpenseMainAccountIdDAVC (table DimensionCombinationEntity) · OuterJoin to PdsRebateTable · read-only

Fields (51)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
CurrencyCodeThe currency code of the rebate.String (3)
CurrencyCode
YesYesCurrency.CurrencyCodePdsRebateTable.CurrencyCode
CustomerAccountNumberThe customer account of the rebate.String (20)
CustAccount
YesYesCustTable.AccountNumPdsRebateTable.CustAccount
SalesInvoiceLineRecIdThe customer invoice line linked to the rebate.Int64
PdsCustInvoiceTransRefRecId
NoNo (private)CustInvoiceTrans.RecIdPdsRebateTable.custInvoiceTransRefRecId
SalesInvoiceLineCreationSequenceNumberNumber showing the order in which lines were created.Integer
CustInvoiceLineCreationSequenceNumber
NoYesCustInvoiceTrans.LineCreationSequenceNumber
DefaultAccrualLedgerDimensionThe default financial dimensions of the rebate.Int64
LedgerDefaultDimensionValueSet
NoNo (private)DimensionAttributeValueSet.RecIdPdsRebateTable.DefaultDimension
DefaultAccrualLedgerDimensionDisplayValueDefault dimensions shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
SalesOrderLineInventoryLotIdThe lot ID that links to the inventory transaction.String (20)
InventTransId
NoYesInventTransOrigin.InventTransIdPdsRebateTable.InventTransId
ItemNumberThe item that the rebate relates to.String (20)
ItemId
NoYesInventTable.ItemIdPdsRebateTable.ItemId
DefaultAccrualMainAccountIdThe default accrual account, held as a dimension combination.Int64
LedgerDimensionDefaultAccount
YesNo (private)DimensionAttributeValueCombination.RecIdPdsRebateTable.LedgerDimension
DefaultAccrualMainAccountIdDisplayValueFull combination of dimension values, shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
DefaultExpenseLedgerDimensionThe financial dimensions for the offset side.Int64
LedgerDefaultDimensionValueSet
NoNo (private)DimensionAttributeValueSet.RecIdPdsRebateTable.OffsetDefaultDimension
DefaultExpenseLedgerDimensionDisplayValueDefault dimensions shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
DefaultExpenseMainAccountIdThe default expense account, held as a dimension combination.Int64
LedgerDimensionDefaultAccount
YesNo (private)DimensionAttributeValueCombination.RecIdPdsRebateTable.OffsetLedgerDimension
DefaultExpenseMainAccountIdDisplayValueFull combination of dimension values, shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
CorrectedRebateAmountThe corrected rebate amount.Real
PdsCorrectedRebateAmt
NoYesPdsRebateTable.PdsCorrectedRebateAmt
SalesInvoiceRecIdThe customer invoice journal record linked to the rebate.Int64
PdsCustInvoiceJourRefRecId
NoNo (private)CustInvoiceJour.RecIdPdsRebateTable.PdsCustInvoiceJourRefRecId
CustomersOrderReferenceThe customer's own reference.String (30)
PdsCustomerRef
NoYesPdsRebateTable.PdsCustomerRef
SalesRebateCustomerGroupIdThe customer rebate group of the rebate.String (20)
PdsCustRebateGroupId
NoYesPdsCustRebateGroup.PdsCustRebateGroupIdPdsRebateTable.PdsCustRebateGroupId
InvoicedCatchWeightQuantityThe invoiced quantity in the catch weight unit.Real
PdsCWInventQty
NoYesPdsRebateTable.PdsCWSalesInvoicedQty
SalesRebateProductGroupIdThe item rebate group of the rebate.String
PdsItemRebateGroupId
NoYesPdsItemRebateGroup.PdsItemRebateGroupIdPdsRebateTable.PdsItemRebateGroupId
IsCreditRebateYes/no flag that marks the rebate for credit.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesPdsRebateTable.PdsMarkForCredit
PaymentTypeHow the rebate is paid, such as through accounts payable, customer deductions or freight.Enum
PdsPaymtType
  • Cheque 1
  • CustomerDeduction 2
  • TradeSpending 3
  • Freight 4
  • InvoiceCustomerDeduction 5
NoYesPdsRebateTable.PdsPaymtType
AccountingDateThe date when the rebate was processed.Date
PdsProcessDate
NoYesPdsRebateTable.PdsProcessDate
RebateAdjustmentDateThe date of the rebate adjustment.Date
PdsRebateAdjustmentDate
NoYesPdsRebateTable.PdsRebateAdjustmentDate
RebateAgreementRefRecIdThe rebate agreement that the rebate comes from.Int64
PdsRebateAgreementRefRecId
NoNo (private)PdsRebateAgreement.RecIdPdsRebateTable.PdsRebateAgreementRefRecId
ValueTypeHow the rebate value is expressed: amount per unit, fixed amount or percentage.Enum
PdsRebateAmtType
  • AmountPerUnit 0
  • FixedAmount 1
  • Percentage 2
NoNo (private)PdsRebateTable.PdsRebateAmtType
RebateBalanceAmountThe balance amount of the rebate; currency not stated in the metadata.Real
PdsRebateBalance
NoYesPdsRebateTable.PdsRebateBalance
RebateIdUnique ID of the rebate.String (12)
PdsRebateId
NoYesPdsRebateTable.PdsRebateId
VoucherNumberThe reference of the posting journal.String
PdsJournalRefNum
NoYesPdsRebateTable.PdsRebateJournalRefNum
VendorAccountNumberThe vendor account that the rebate is paid to.String (20)
PdsRebatePayTo
NoYesVendTable.AccountNumPdsRebateTable.PdsRebatePayTo
RebateStatusThe stage of the rebate, such as to be calculated, calculated, approved, completed or cancelled.Enum
PdsRebateStatus
  • ToCalculate 0
  • Calculated 1
  • Approved 2
  • Processed 5
  • MarkForCredit 6
  • Free 8
  • Canceled 9
NoYesPdsRebateTable.PdsRebateStatus
SalesRebateProgramTypeIdThe rebate program that the rebate uses.String
PdsRebateType
NoYesPdsRebate.PdsRebateTypePdsRebateTable.PdsRebateType
StartingRebateAmountThe starting rebate amount; currency not stated in the metadata.Real
PdsStartingRebateAmt
NoYesPdsRebateTable.PdsStartingRebateAmt
RebateCalculationDateThe date used for the rebate calculation.Date
PdsRebateCalcDate
NoYesPdsRebateTable.RebateCalcDate
RebateAgreementLineRefRecIdThe rebate agreement line that the rebate comes from.Int64
PdsRebateAgreementRefRecId
NoNo (private)PdsRebateAgreementLine.RecIdPdsRebateTable.RebateAgreementLineRefRecId
RebateSalesAmountThe sales amount the rebate is based on; currency not stated in the metadata.Real
SalesAmount
NoYesPdsRebateTable.SalesAmount
SalesOrderNumberThe sales order that the rebate relates to.String (20)
SalesId
NoYesSalesTable.SalesIdPdsRebateTable.SalesId
SalesInvoiceDateThe date of the invoice.Date
InvoiceDate
NoYesPdsRebateTable.SalesInvoiceDate
InvoicedSalesQuantityThe invoiced quantity.Real
SalesInvoicedQty
NoYesPdsRebateTable.SalesInvoicedQty
SalesInvoiceNumberThe invoice that the rebate relates to.String (20)
SalesInvoiceId
NoYesPdsRebateTable.SalesInvoiceId
SalesLineRecIdThe sales order line that the rebate relates to.Int64
PdsSalesLineRefRecId
NoNo (private)SalesLine.RecIdPdsRebateTable.SalesLineRefRecId
SalesLineAmountThe net extended price of the sales line.Real
PdsSalesNetExtdPrice
NoYesPdsRebateTable.SalesNetExtendedPrice
SalesPriceQuantityThe price unit of the sales line.Real
PriceUnit
NoYesPdsRebateTable.SalesPriceUnit
SalesTableRefRecIdThe sales order record that the rebate relates to.Int64
PdsSalesTableRefRecId
NoNo (private)SalesTable.RecIdPdsRebateTable.SalesTableRefRecId
TradeAllowanceAgreementMerchandisingEventIdThe merchandising event linked to the rebate.String
MCRMerchandisingEventID
NoYesTAMMerchandisingEvent.MerchandisingEventIDPdsRebateTable.TAMMerchandisingEventID
SalesTaxGroupCodeThe sales tax group of the rebate.String
TaxGroup
NoYesTaxGroupHeading.TaxGroupPdsRebateTable.TaxGroup
SalesTaxItemGroupCodeThe item sales tax group of the rebate.String
TaxItemGroup
NoYesTaxItemGroupHeading.TaxItemGroupPdsRebateTable.TaxItemGroup
RebateAmountPerProductUnitSoldRebate value given for each product unit sold.Real
PdsRebateValue
NoYescomputed
FixedRebateAmountFixed rebate value.Real
PdsRebateValue
NoYescomputed
RebatePercentageRebate expressed as a percentage.Real
PdsRebateValue
NoYescomputed
SalesRebateAgreementIdUnique ID of the rebate agreement.String (20)
PdsRebateAgreementId
NoYesPdsRebateAgreement.RebateAgreementId

Foreign keys (22)

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 SalesRebateEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk