From: Janusz Dobrowolski Date: Mon, 22 Sep 2014 21:20:05 +0000 (+0200) Subject: Small cleanups. X-Git-Tag: 2.3-final~106 X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=86b4fb041e5eb3963d40b55387a77198e3fd6844 Small cleanups. --- diff --git a/inventory/transfers.php b/inventory/transfers.php index b04c7d87..39768dc9 100644 --- a/inventory/transfers.php +++ b/inventory/transfers.php @@ -76,7 +76,6 @@ function handle_new_order() if (isset($_POST['Process'])) { - global $Refs; $tr = &$_SESSION['transfer_items']; $input_error = 0; @@ -84,7 +83,7 @@ if (isset($_POST['Process'])) if (count($tr->line_items) == 0) { display_error(_("You must enter at least one non empty item line.")); set_focus('stock_id'); - return false; + $input_error = 1; } if (!$Refs->is_valid($_POST['ref'])) { diff --git a/sales/includes/ui/sales_order_ui.inc b/sales/includes/ui/sales_order_ui.inc index a07ceba0..42d324aa 100644 --- a/sales/includes/ui/sales_order_ui.inc +++ b/sales/includes/ui/sales_order_ui.inc @@ -135,7 +135,6 @@ function get_customer_details_to_order(&$order, $customer_id, $branch_id) function display_order_summary($title, &$order, $editable_items=false) { - global $SysPrefs; display_heading($title);