projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup comments. Small bugfixes. Third run
[fa-stable.git]
/
inventory
/
manage
/
item_codes.php
diff --git
a/inventory/manage/item_codes.php
b/inventory/manage/item_codes.php
index d423b9211ae7d5b3d689915ce3772537ad25eac0..9fa68ebb43a813c4f252b4349d7f550909e3bd99 100644
(file)
--- a/
inventory/manage/item_codes.php
+++ b/
inventory/manage/item_codes.php
@@
-17,7
+17,6
@@
page(_($help_context = "Foreign Item Codes"));
include_once($path_to_root . "/includes/date_functions.inc");
include_once($path_to_root . "/includes/ui.inc");
include_once($path_to_root . "/includes/date_functions.inc");
include_once($path_to_root . "/includes/ui.inc");
-include_once($path_to_root . "/includes/manufacturing.inc");
include_once($path_to_root . "/includes/data_checks.inc");
check_db_has_purchasable_items(_("There are no inventory items defined in the system."));
include_once($path_to_root . "/includes/data_checks.inc");
check_db_has_purchasable_items(_("There are no inventory items defined in the system."));
@@
-38,7
+37,7
@@
if ($Mode=='ADD_ITEM' || $Mode=='UPDATE_ITEM')
elseif (!input_num('quantity'))
{
$input_error = 1;
elseif (!input_num('quantity'))
{
$input_error = 1;
- display_error( _("The
price
entered was not positive number."));
+ display_error( _("The
quantity
entered was not positive number."));
set_focus('quantity');
}
elseif ($_POST['description'] == '')
set_focus('quantity');
}
elseif ($_POST['description'] == '')
@@
-103,7
+102,8
@@
if (!isset($_POST['stock_id']))
$_POST['stock_id'] = get_global_stock_item();
echo "<center>" . _("Item:"). " ";
$_POST['stock_id'] = get_global_stock_item();
echo "<center>" . _("Item:"). " ";
-echo stock_purchasable_items_list('stock_id', $_POST['stock_id'], false, true);
+//Manufcatured item visible
+echo stock_items_list('stock_id', $_POST['stock_id'], false, true);
echo "<hr></center>";
echo "<hr></center>";
@@
-117,7
+117,7
@@
$dflt_cat = $result['category_id'];
$result = get_all_item_codes($_POST['stock_id']);
div_start('code_table');
$result = get_all_item_codes($_POST['stock_id']);
div_start('code_table');
- start_table(TABLESTYLE, "width=
60%
");
+ start_table(TABLESTYLE, "width=
'60%'
");
$th = array(_("EAN/UPC Code"), _("Quantity"), _("Units"),
_("Description"),_("Category"), "", "");
$th = array(_("EAN/UPC Code"), _("Quantity"), _("Units"),
_("Description"),_("Category"), "", "");
@@
-185,4
+185,3
@@
submit_add_or_update_center($selected_id == -1, '', 'both');
end_form();
end_page();
end_form();
end_page();
-?>