Merged changes up to 2.3.16 into unstable
[fa-stable.git] / purchasing / includes / po_class.inc
index 4eb5c0b74a7873c6a4a8d876f17306be3295211a..30a30dea4363eef1296d92c37f7bc5e04b96da11 100644 (file)
@@ -62,7 +62,7 @@ class purch_order
        
        function add_to_order($line_no, $stock_id, $qty, $item_descr, $price, $uom, $req_del_date, $qty_inv, $qty_recd)
        {
-               if ($qty != 0 && isset($qty))
+               if (isset($qty) && $qty != 0)
                {
                        $this->line_items[$line_no] = new po_line_details($line_no, $stock_id, $item_descr, $qty, $price, $uom, 
                                $req_del_date, $qty_inv, $qty_recd);