projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[0000227] Fixed sessio cookie naming to support multiply FA instances on same server.
[fa-stable.git]
/
inventory
/
manage
/
sales_kits.php
diff --git
a/inventory/manage/sales_kits.php
b/inventory/manage/sales_kits.php
index 005af381f9d9418587d62e0bf08dffb72d4a9c27..16a78f87bc2fde77d9a04353b7a6c7cfbc284a57 100644
(file)
--- a/
inventory/manage/sales_kits.php
+++ b/
inventory/manage/sales_kits.php
@@
-200,7
+200,8
@@
if (get_post('item_code') == '') {
start_table($table_style2);
text_row(_("Alias/kit code:"), 'kit_code', null, 20, 21);
} else
start_table($table_style2);
text_row(_("Alias/kit code:"), 'kit_code', null, 20, 21);
} else
-{ // Kit selected so display bom or edit component
+{
+ // Kit selected so display bom or edit component
$_POST['description'] = $props['description'];
$_POST['category'] = $props['category_id'];
start_table($table_style2);
$_POST['description'] = $props['description'];
$_POST['category'] = $props['category_id'];
start_table($table_style2);
@@
-226,8
+227,10
@@
if (get_post('item_code') == '') {
// if (get_post('description') == '')
// $_POST['description'] = get_kit_name($_POST['component']);
if (get_post('item_code') == '') { // new kit/alias
// if (get_post('description') == '')
// $_POST['description'] = get_kit_name($_POST['component']);
if (get_post('item_code') == '') { // new kit/alias
- $_POST['description'] = $props['description'];
- $_POST['category'] = $props['category_id'];
+ if ($Mode!='ADD_ITEM' && $Mode!='UPDATE_ITEM') {
+ $_POST['description'] = $props['description'];
+ $_POST['category'] = $props['category_id'];
+ }
text_row(_("Description:"), 'description', null, 50, 200);
stock_categories_list_row(_("Category:"), 'category', null);
}
text_row(_("Description:"), 'description', null, 50, 200);
stock_categories_list_row(_("Category:"), 'category', null);
}