From c3f27d0fc6a44b99864a4b56d1be77decc158929 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Mon, 4 Mar 2013 16:04:50 +0100 Subject: [PATCH] Wrong test order --- purchasing/includes/po_class.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/purchasing/includes/po_class.inc b/purchasing/includes/po_class.inc index b767e9ea..a7b9db37 100644 --- a/purchasing/includes/po_class.inc +++ b/purchasing/includes/po_class.inc @@ -55,7 +55,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); -- 2.30.2