EC
Asked
I am writing a sales add api for v3.5.5.
I am adding to the sma_sales
sma_sale_items
sma_costing
sma_payments
tables but it is not deducted from the warehouse number
I am also decreasing the stock number in the sma_warehouses_products table
I am also decreasing the stock number in the sma_products table
When I do Quantity Synchronization, the stock becomes esk
What am I missing, I would be glad if you could answer
I am adding to the sma_sales
sma_sale_items
sma_costing
sma_payments
tables but it is not deducted from the warehouse number
I am also decreasing the stock number in the sma_warehouses_products table
I am also decreasing the stock number in the sma_products table
When I do Quantity Synchronization, the stock becomes esk
What am I missing, I would be glad if you could answer
- MSAnsweredHello,
You can check the `addSale` method of sales model `app/models/admin/Sales_model.php` I suggest you use the same method to add you sales.
Thank you - Login to Reply