-
Notifications
You must be signed in to change notification settings - Fork 248
Sources to Sales Channels Mapping
Igor Miniailo edited this page Jun 26, 2017
·
25 revisions
Merchant should have an ability to map existing physical sources to some particular sales channels. The most appropriate sales channel example in Magento is Website. But that's not the only option, for example, for B2B merchants Customer Group could be considered a sales channel, or Country/State etc. Thus we need to provide an ability on the level of API to implement this kind of mapping.
/**
* Aggregated Stock
* Stock would be used on Front-End to show final Stock Quantity
**/
interface Stock
{
public function getStockId();
public function getStockName();
}
/**
* Aggregation of physical sources and creation of virtual stock
* based on this aggregation
**/
interface SourceStockLink
{
public function getStockId();
public function getSourceId();
}
/**
* Representation of Sales Channel a.k.a Website or CustomerGroup
**/
interface SalesChannel
{
public function getEntityId(); // Surrogate key
public function getSalesChannelId(); // represents concrete Sales Channel Id, for example, website_id - 1
public function getType(); // "WEBSITE" | "COUNTRY" | "CUSTOMER_GROUP"
}
/**
* Interface to assign specific stock to particular sales channel
**/
interface StockSalesChannelLink
{
public function getStockId();
public function getSalesChannelEntityId(); // there should not be more than ONE sales channel with particular ID value
}
interface Stock
{
public function getStockId(); // 1
public function getStockName(); // "Single Stock"
}
interface SourceStockLink
{
public function getStockId(); // 1
public function getSourceId(); // 1
}
interface SalesChannel
{
public function getEntityId(); // 1
public function getSalesChannelId(); // website_id - 1
public function getType(); // "WEBSITE"
}
interface StockSalesChannelLink
{
public function getStockId(); // 1
public function getSalesChannelEntityId(); // 1
}
Multi-Source Inventory developed by Magento 2 Community
- Technical Vision. Catalog Inventory
- Installation Guide
- List of Inventory APIs and their legacy analogs
- MSI Roadmap
- Known Issues in Order Lifecycle
- MSI User Guide
- 2.3 LIVE User Guide
- MSI Release Notes and Installation
- Overview
- Get Started with MSI
- MSI features and processes
- Global and Product Settings
- Configure Source Selection Algorithm
- Create Sources
- Create Stock
- Assign Inventory and Product Notifications
- Configure MSI backorders
- MSI Import and Export Product Data
- Mass Action Tool
- Shipment and Order Management
- CLI reference
- Reports and MSI
- MSI FAQs
- DevDocs Documentation
- Manage Inventory Management Modules (install/upgrade info)
- Inventory Management
- Reservations
- Inventory CLI reference
- Inventory API reference
- Inventory In-Store Pickup API reference
- Order Processing with Inventory Management
- Managing sources
- Managing stocks
- Link and unlink stocks and sources
- Manage source items
- Perform bulk actions
- Manage Low-Quantity Notifications
- Check salable quantities
- Manage source selection algorithms
- User Stories
- Support of Store Pickup for MSI
- Product list assignment per Source
- Source assignment per Product
- Stocks to Sales Channel Mapping
- Adapt Product Import/Export to support multi Sourcing
- Introduce SourceCode attribute for Source and SourceItem entities
- Assign Source Selector for Processing of Returns Credit Memo
- User Scenarios:
- Technical Designs:
- Module Structure in MSI
- When should an interface go into the Model directory and when should it go in the Api directory?
- Source and Stock Item configuration Design and DB structure
- Stock and Source Configuration design
- Open Technical Questions
- Inconsistent saving of Stock Data
- Source API
- Source WebAPI
- Sources to Sales Channels mapping
- Service Contracts MSI
- Salable Quantity Calculation and Mechanism of Reservations
- StockItem indexation
- Web API and How To cover them with Functional Testing
- Source Selection Algorithms
- Validation of Domain Entities
- PHP 7 Syntax usage for Magento contribution
- The first step towards pre generated IDs. And how this will improve your Integration tests
- The Concept of Default Source and Domain Driven Design
- Extension Point of Product Import/Export
- Source Selection Algorithm
- SourceItem Entity Extension
- Design Document for changing SerializerInterface
- Stock Management for Order Cancelation
- Admin UI
- MFTF Extension Tests
- Weekly MSI Demos
- Tutorials