From debd4fc144fdda9c3ae207a69572f03efdec26ca Mon Sep 17 00:00:00 2001 From: Joe Date: Sun, 28 Dec 2014 23:19:56 +0100 Subject: [PATCH] Cleanup, $SysPrefs. --- sales/sales_order_entry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sales/sales_order_entry.php b/sales/sales_order_entry.php index ecca77d0..7dbf471b 100644 --- a/sales/sales_order_entry.php +++ b/sales/sales_order_entry.php @@ -517,7 +517,7 @@ function check_item_data() display_error( _("The item could not be updated because you are attempting to set the quantity ordered to less than 0, or the discount percent to more than 100.")); set_focus('qty'); return false; - } elseif (!check_num('price', 0) && (!SysPrefs->$allow_negative_prices() || $is_inventory_item)) { + } elseif (!check_num('price', 0) && (!$SysPrefs->$allow_negative_prices() || $is_inventory_item)) { display_error( _("Price for inventory item must be entered and can not be less than 0")); set_focus('price'); return false; -- 2.30.2