MSI support

 

 

 

Magento Objects relation:

 

Salesforce objects need to be created:

 

  • Inventory Source

    • source_code varchar(255)

    • MagentoId text field

    • name varchar(255)

    • enabled checkbox

    • description text

    • latitude decimal(8,6)

    • longitude decimal(9,6)

    • country_id varchar(2)

    •  

    • region varchar(255)

    • city varchar(255)

    • street varchar(255)

    • postcode varchar(255)

    • contact_name varchar(255)

    • email varchar(255)

    • phone varchar(255)

    • fax varchar(255)

    • use_default_carrier_config checkbox

    • is_pickup_location_active tinyint(1)

    • frontend_name varchar(255)

    • frontend_description text

  • Inventory source item

    • source_inventory - lookup on the Inventory Source object

    • product - lookup on the Product2 object

    • quantity decimal(12,4)

    • status - picklist

      • 0 - Out of Stock

      • 1 - In Stock

    • MagentoId text field

  • Inventory Stock

    • MagentoId text field

    • name varchar(255)

  • Inventory stock sales channel

    • type varchar(64)

    • WebsiteId lookup on the Website object

    • stock - lookup on the Inventory Stock object

  • Inventory source stock link

    • MagentoId text field

    • stock - lookup on the Inventory Stock object

    • source_code - lookup on the Inventory Source object

    • priority smallint(5)

Sync dependency:

 

Magento changes:

Create a new module for this feature
Create config page: On/Off + specific settings
Display module version in the config
Create Mapping pages for:
`inventory_source`
`inventory_source_item`
`inventory_source_stock_link`
`inventory_stock`
inventory_stock_sales_channel
Create Mapping data for:
`inventory_source`
`inventory_source_item`
`inventory_source_stock_link`
`inventory_stock`
inventory_stock_sales_channel
Implement the add to sync Queue logic
Implement Realtime sync logic
Implement Bulk sync logic
Entity Grid page changes:
Add SalesforceId + Sync status columns
Add Sync action column
Entity Form page changes:
Add SalesforceId + Sync status fields to the entity view/edit from page
Add Sync action button
Check these entities dependency:
Parent/Blocker” dependencies
Child/Follower“ dependencies