Cleanups.
authorJanusz Dobrowolski <janusz@frontaccouting.eu>
Thu, 21 Apr 2011 13:42:18 +0000 (15:42 +0200)
committerJanusz Dobrowolski <janusz@frontaccouting.eu>
Thu, 21 Apr 2011 13:42:18 +0000 (15:42 +0200)
includes/db/inventory_db.inc
includes/ui/items_cart.inc

index 244cf93c2e14769838f1fd949bbe31b8f35c196c..2c0f5e6dfb8b5cadc61ce6caf07a54a449c48d4b 100644 (file)
@@ -345,7 +345,7 @@ function handle_negative_inventory($stock_id, $quantity, $standard_cost, $date_)
        //Chaitanya : If negative adjustment result in negative or zero inventory 
        //then difference should be adjusted
        $qoh = get_qoh_on_date($stock_id);
-       display_notification($qoh." : ".$quantity);
+
        if ($qoh + $quantity <= 0 && $qoh > 0) //Positive inventory turning zero/negative
        {
                global $Refs;
index 53a994216a1d82cf494ef2b6cdbdb80502685b5d..a5e15fdbf4a524d1c7ded60d06f48ed4b6a75372 100644 (file)
@@ -20,8 +20,6 @@ class items_cart
 
        var     $order_id;
 
-       var $editing_item, $deleting_item;
-
        var $from_loc;
        var $to_loc;
        var $tran_date;