Cleanup, $SysPrefs.
authorJoe <unknown>
Sun, 28 Dec 2014 22:19:56 +0000 (23:19 +0100)
committerJoe <unknown>
Sun, 28 Dec 2014 22:19:56 +0000 (23:19 +0100)
sales/sales_order_entry.php

index ecca77d0b4f812976eeba61f65ac54f9f0880f26..7dbf471b2bc40e1412c1661853b2c021eb54bf42 100644 (file)
@@ -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;