From: Janusz Dobrowolski Date: Thu, 21 Apr 2011 13:42:18 +0000 (+0200) Subject: Cleanups. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=19fe7b10650a1f730d781304b6d24f2d18d4200a;p=textcart.git Cleanups. --- diff --git a/includes/db/inventory_db.inc b/includes/db/inventory_db.inc index 244cf93..2c0f5e6 100644 --- a/includes/db/inventory_db.inc +++ b/includes/db/inventory_db.inc @@ -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; diff --git a/includes/ui/items_cart.inc b/includes/ui/items_cart.inc index 53a9942..a5e15fd 100644 --- a/includes/ui/items_cart.inc +++ b/includes/ui/items_cart.inc @@ -20,8 +20,6 @@ class items_cart var $order_id; - var $editing_item, $deleting_item; - var $from_loc; var $to_loc; var $tran_date;