Merged changes from stable branch up to 2.3.12
[fa-stable.git] / purchasing / supplier_credit.php
index fdd04dd912666520fb366e00f4d467285754abb7..a35533218f0e2f002dd315445255e5d27b24b8ba 100644 (file)
@@ -212,7 +212,7 @@ function check_data()
                        if (is_inventory_item($item->item_code))
                        {
                                $qoh = get_qoh_on_date($item->item_code, null, $_SESSION['supp_trans']->tran_date);
-                               if ($item->qty_recd > $qoh)
+                               if ($item->this_quantity_inv > $qoh)
                                {
                                        $stock = get_item($item->item_code);
                                        display_error(_("The return cannot be processed because there is an insufficient quantity for item:") .