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
- MSAnsweredHello, You can check the addSalemethod of sales modelapp/models/admin/Sales_model.phpI suggest you use the same method to add you sales.Thank you 
- Login to Reply