projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rerun of tax_groups.php
[fa-stable.git]
/
inventory
/
manage
/
item_units.php
diff --git
a/inventory/manage/item_units.php
b/inventory/manage/item_units.php
index 39be1be54d192d1c986488d67063d1aa50a68907..fa63bbe532a2176603cf3881a5258fc331f8ba0c 100644
(file)
--- a/
inventory/manage/item_units.php
+++ b/
inventory/manage/item_units.php
@@
-13,7
+13,7
@@
$page_security = 'SA_UOM';
$path_to_root = "../..";
include($path_to_root . "/includes/session.inc");
$path_to_root = "../..";
include($path_to_root . "/includes/session.inc");
-page(_("Units of Measure"));
+page(_(
$help_context =
"Units of Measure"));
include_once($path_to_root . "/includes/ui.inc");
include_once($path_to_root . "/includes/ui.inc");
@@
-34,6
+34,12
@@
if ($Mode=='ADD_ITEM' || $Mode=='UPDATE_ITEM')
display_error(_("The unit of measure code cannot be empty."));
set_focus('abbr');
}
display_error(_("The unit of measure code cannot be empty."));
set_focus('abbr');
}
+ if (strlen(db_escape($_POST['abbr']))>(20+2))
+ {
+ $input_error = 1;
+ display_error(_("The unit of measure code is too long."));
+ set_focus('abbr');
+ }
if (strlen($_POST['description']) == 0)
{
$input_error = 1;
if (strlen($_POST['description']) == 0)
{
$input_error = 1;
@@
-84,7
+90,7
@@
if ($Mode == 'RESET')
$result = get_all_item_units(check_value('show_inactive'));
start_form();
$result = get_all_item_units(check_value('show_inactive'));
start_form();
-start_table(
"$table_style
width=40%");
+start_table(
TABLESTYLE, "
width=40%");
$th = array(_('Unit'), _('Description'), _('Decimals'), "", "");
inactive_control_column($th);
$th = array(_('Unit'), _('Description'), _('Decimals'), "", "");
inactive_control_column($th);
@@
-111,7
+117,7
@@
end_table(1);
//----------------------------------------------------------------------------------
//----------------------------------------------------------------------------------
-start_table(
$table_style
2);
+start_table(
TABLESTYLE
2);
if ($selected_id != '')
{
if ($selected_id != '')
{