From 34629834b5ba829a2d7cb3c51961248a02cde29e Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sat, 16 Aug 2008 22:05:45 +0000 Subject: [PATCH] Fixed foxus after user entry error. --- sales/manage/credit_status.php | 1 + sales/manage/customer_branches.php | 1 + sales/manage/sales_areas.php | 1 + sales/manage/sales_people.php | 1 + 4 files changed, 4 insertions(+) diff --git a/sales/manage/credit_status.php b/sales/manage/credit_status.php index 4373e029..6b0ee02d 100644 --- a/sales/manage/credit_status.php +++ b/sales/manage/credit_status.php @@ -19,6 +19,7 @@ function can_process() if (strlen($_POST['reason_description']) == 0) { display_error(_("The credit status description cannot be empty.")); + set_focus('reason_description'); return false; } diff --git a/sales/manage/customer_branches.php b/sales/manage/customer_branches.php index bd301569..30669dea 100644 --- a/sales/manage/customer_branches.php +++ b/sales/manage/customer_branches.php @@ -49,6 +49,7 @@ if ($Mode=='ADD_ITEM' || $Mode=='UPDATE_ITEM') { $input_error = 1; display_error(_("The Branch name cannot be empty.")); + set_focus('br_name'); } if ($input_error != 1) diff --git a/sales/manage/sales_areas.php b/sales/manage/sales_areas.php index 12b603fb..2f350ab8 100644 --- a/sales/manage/sales_areas.php +++ b/sales/manage/sales_areas.php @@ -20,6 +20,7 @@ if ($Mode=='ADD_ITEM' || $Mode=='UPDATE_ITEM') { $input_error = 1; display_error(_("The area description cannot be empty.")); + set_focus('description'); } if ($input_error != 1) diff --git a/sales/manage/sales_people.php b/sales/manage/sales_people.php index f0e0550a..a6072ff8 100644 --- a/sales/manage/sales_people.php +++ b/sales/manage/sales_people.php @@ -21,6 +21,7 @@ if ($Mode=='ADD_ITEM' || $Mode=='UPDATE_ITEM') { $input_error = 1; display_error(_("The sales person name cannot be empty.")); + set_focus('salesman_name'); } $pr1 = check_num('provision', 0,100); if (!$pr1 || !check_num('provision2', 0, 100)) { -- 2.30.2