Guidance on Viewnet sales order plugin

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: https://wavelet.atlassian.net/wiki/spaces/WMS/pages/2751299585

  1. All sales orders to be synced to the same branch. Hence, branch info are hard coded in the code

     

  2. 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

3. change the default shipping item_code and use type of GL_CODE (by default should be of type SERVICE)

 

Private & Confidential