Hi,
Usually, the Stock manager is there to restock products (when you get a bunch of stock for a product, you increment the stock of the product of that amount).
And usually, when merchants get on location sales, they create orders in the backend, which update the stock and the product_sales automatically. Doing it like this, it also means that you can keep a more consistent accounting (you can have the taxes calculated for the on location sales too, so that when you look at your taxes via the "manage tax rates" button of the System>Taxes menu, you get these on location sales' tax taken into account, and when you export your orders data to import in an accounting software these on location sales are also in there), and edit invoices for your customers, if necessary. If you use the Stock manager to correct the stock with on location sales, you don't get all this.
So that's why it's currently like this.
Now, there are two ways to go about this:
- The Stock manager plugin has its own events ( onAfterStockCreate and onAfterStockUpdate ), so it's possible to update the product_sales of a product based on how the stock is being changed via the development of a small plugin implementing these events.
- I'm not necessarily against adding an extra option to the Stock manager plugin in order to handle this. But I would first need to better understand the situation on your end. Why are you adding on location sales through the Stock manager ? Could you elaborate on this ? Do you not use the Stock manager when you restock products ? Only for on location sales ?