Well, I have the feeling that ERP and ecommerce are not that far.
In both case you have to handle Products, stock, customers, orders, invoices, and an ERP does all of this already really well. It “just” miss a frontstore, cart and payment.
You can find plugins that tries to turn ecommerce solution into ERP (Magento, Prestashop…) and more and more ERP that offers ecommerce solution Odoo, FLectra, ERPNext, Semilimes…)
So far, it seems that ERP + ecommerce are closer to the Graal than Ecommerce that tries to mimic an ERP. I really hopethat Dolibarr will follow this trend.