Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (body.productList.length > 0) { //dataliost from react
- let results = 0;
- for(let todos = body.productList.length -1; todos >=0; todos--) {
- // for(let yet = body.)
- let prod = await product.stockes(body.productList[todos].temp_id_product)
- let stock = prod.data[0].prod_stock
- results = await mutation.add(
- body.id_transaction,
- body.productList[todos].temp_id_product,
- stock,
- body.productList[todos].temp_prod_amount,
- body.productList[todos].temp_prod_amount
- )
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement