0
/*


    -------------Physical Quantities------------Available Quantities
    *             51                               50
    *             51                               50
    *             63                               62
    *
    *   **********************************************************



this is my table which confusing me too much.Error in this code is that when an order is processed it will add 1 to all the physical quantities,this product have four colours and i have selected only one color.at above i have 50 physical quantities but it add 1 to all the orders.how can i do this that it can only change 1 order by its color.
1:the first line of code is from my inventory.php
2:the 2nd code id from get_inventory.php
*/





 <td><?= ($iQuantity + getDbValue("SUM(quantity)", "tbl_order_details", "product_id='$iId' AND order_id IN (SELECT id FROM tbl_orders WHERE FIND_IN_SET(shippment_status, 'P,C,R'))")) ?></td>


    @utf8_encode($iQuantity - getDbValue("SUM(quantity)", "tbl_order_details", "product_id='$iId' AND order_id IN (SELECT id FROM tbl_orders WHERE FIND_IN_SET(shippment_status, 'P,C,R'))")),

Thanks.

1
Contributor
1
Reply
21
Views
3 Years
Discussion Span
Last Post by Sikander Nasar
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.