Table
RetailVendorSalesPriceMarginSetup
Vendor sales price margin setup
Stores a contribution ratio for each combination of retail category and vendor. It also holds a suggested contribution ratio. The key is the retail category plus the vendor account.
- Table name
RetailVendorSalesPriceMarginSetup- Module
Commerce- Table group
Main- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
EcoResCategoryIdx- Replacement key
None- Key fields
RetailCategoryId, VendAccount- Model
Foundation
Fields (9)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
RetailCategoryIdRetail category the setup applies to. Points to the category record by its system record ID. | Int64EcoResCategoryId | No | EcoResCategory.RecId | RetailVendorSalesPriceMarginSetupEntity |
VendAccountAccount number of the vendor the setup applies to. | String (20)VendAccount | Yes | VendTable.AccountNum | RetailVendorSalesPriceMarginSetupEntity |
ContributionRatioContribution ratio set for the vendor and retail category. | RealContributionRatio | No | RetailVendorSalesPriceMarginSetupEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
suggestedContributionRatioSuggested contribution ratio for the vendor and category. | RealContributionRatio | No | RetailVendorSalesPriceMarginSetupEntity | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (1)
EcoResCategoryIdxPrimary indexUnique, alternate key.
Relations (2)
Each relation joins RetailVendorSalesPriceMarginSetup to another table on the fields shown.
EcoResCategory→EcoResCategoryJoin on
RetailCategoryId = EcoResCategory.RecIdMany RetailVendorSalesPriceMarginSetup records → exactly one EcoResCategory record
VendTable→VendTableJoin on
VendAccount = VendTable.AccountNumMany RetailVendorSalesPriceMarginSetup records → exactly one VendTable record
Get this data out
Tables are not exposed directly. These public entities read from RetailVendorSalesPriceMarginSetup; use one of them in Power BI, Power Platform or a data management project.
RetailVendorSalesPriceMarginSetupEntity· 4 fields from this table
Need help with RetailVendorSalesPriceMarginSetup in a report, an integration or a migration? Talk to Dr Dynamics.