In emp, we have sales order plugin for multiple clients. However, Viewnet had some special requests to be included. Hence, this guide will focus on the code rather than how to install and run the plugin which are explained in: Using EMP Sales Order Plugin
All sales orders to be synced to the same branch. Hence, branch info are hard coded in the code
Customers not to be created in emp. Instead, the marketplace name to be used as a customer since they have multiple stores in lazada and shopee. To do this, virtual market place customers were created in emp. PKID is hard coded and the part of creating customers was commented