2. Installation

First Installation

To install Embedded ERP on your platform, process the following steps :

  • Download zip archive from your boostmyshop customer account
  • Upload files on your server : once uploaded, module must be in directory app/code/BoostMyShop/
  • Connect on your server via ssh, and run the following commands :
php bin/magento module:enable BoostMyShop_AdvancedStock
php bin/magento module:enable BoostMyShop_OrderPreparation
php bin/magento module:enable BoostMyShop_Supplier
php bin/magento module:enable BoostMyShop_AvailabilityStatus
php bin/magento module:enable BoostMyShop_UltimateReport
php bin/magento module:enable BoostMyShop_Erp
rm -rf var/generation
rm -rf var/di
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy

you must run additional commands to ensure that the DB is up to date :

php bin/magento bms_advancedstock:refresh_quantity_to_ship
php bin/magento bms_advancedstock:refresh_sales_history
php bin/magento bms_advancedstock:refresh_sellable_quantity

Once everything is done, go back in Magento, select menu system > web setup wizard, then click on the component manager button : you should see the new extension here

Upgrade

The upgrade process is exactly the same as the installation process

Disable extension

To disable an extension, select menu system > web setup wizard, then click on the component manager button Find the extension you want to disable and select “disable” in the “Actions” column

Reset ERP Data

Use this script to reset all ERP data. All stocks will be reset to 0.

UPDATE cataloginventory_stock_item SET qty = 0;

-- Empty ERP tables

TRUNCATE bms_advancedstock_extended_sales_flat_order_item;
TRUNCATE bms_advancedstock_routing_store;
TRUNCATE bms_advancedstock_routing_store_warehouse;
TRUNCATE bms_advancedstock_sales_history;
TRUNCATE bms_advancedstock_stock_movement;
TRUNCATE bms_advancedstock_transfer;
TRUNCATE bms_advancedstock_transfer_item;
TRUNCATE bms_advancedstock_warehouse;
TRUNCATE bms_advancedstock_warehouse_item;

TRUNCATE bms_orderpreparation_carrier_template;
TRUNCATE bms_orderpreparation_inprogress;
TRUNCATE bms_orderpreparation_inprogress_item;

TRUNCATE bms_supplier;
TRUNCATE bms_supplier_product;

TRUNCATE bms_purchase_order;
TRUNCATE bms_purchase_order_product;
TRUNCATE bms_purchase_order_reception;
TRUNCATE bms_purchase_order_reception_item;

-- Empty DropShipping tables

TRUNCATE bms_dropship_log;
TRUNCATE bms_supplier_stock_import;
TRUNCATE bms_supplier_stock_import_details;

Once done, run the following command lines

php bin/magento bms_advancedstock:refresh_sellable_quantity
php bin/magento bms_advancedstock:check_stock_discrepencies --fix