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 descriptionType / EDT / enumMandatoryReferencesIn public entities
RetailCategoryIdRetail category the setup applies to. Points to the category record by its system record ID.Int64
EcoResCategoryId
NoEcoResCategory.RecIdRetailVendorSalesPriceMarginSetupEntity
VendAccountAccount number of the vendor the setup applies to.String (20)
VendAccount
YesVendTable.AccountNumRetailVendorSalesPriceMarginSetupEntity
ContributionRatioContribution ratio set for the vendor and retail category.Real
ContributionRatio
NoRetailVendorSalesPriceMarginSetupEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
suggestedContributionRatioSuggested contribution ratio for the vendor and category.Real
ContributionRatio
NoRetailVendorSalesPriceMarginSetupEntity
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (1)

Relations (2)

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

  • EcoResCategory → EcoResCategory

    Join on RetailCategoryId = EcoResCategory.RecId

    Many RetailVendorSalesPriceMarginSetup records → exactly one EcoResCategory record

  • VendTable → VendTable

    Join on VendAccount = VendTable.AccountNum

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

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

Email sales@drdynamics.co.uk