projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Customer Transaction Inquiry on Reference (partly) fixed.
[fa-stable.git]
/
inventory
/
manage
/
sales_kits.php
diff --git
a/inventory/manage/sales_kits.php
b/inventory/manage/sales_kits.php
index 219f7f353d044e66eaf534b8cad260574439d703..849564dd75c32792a44e53862c10867e29e31d84 100644
(file)
--- a/
inventory/manage/sales_kits.php
+++ b/
inventory/manage/sales_kits.php
@@
-46,7
+46,7
@@
function display_kit_items($selected_kit)
label_cell($myrow["stock_id"]);
label_cell($myrow["comp_name"]);
qty_cell($myrow["quantity"], false,
label_cell($myrow["stock_id"]);
label_cell($myrow["comp_name"]);
qty_cell($myrow["quantity"], false,
- $myrow["units"] == '' ? 0 : get_qty_dec($myrow["
comp_name
"]));
+ $myrow["units"] == '' ? 0 : get_qty_dec($myrow["
stock_id
"]));
label_cell($myrow["units"] == '' ? _('kit') : $myrow["units"]);
edit_button_cell("Edit".$myrow['id'], _("Edit"));
delete_button_cell("Delete".$myrow['id'], _("Delete"));
label_cell($myrow["units"] == '' ? _('kit') : $myrow["units"]);
edit_button_cell("Edit".$myrow['id'], _("Edit"));
delete_button_cell("Delete".$myrow['id'], _("Delete"));
@@
-224,8
+224,8
@@
if (get_post('item_code') == '') {
if (get_post('item_code') == '') { // new kit/alias
if ($Mode!='ADD_ITEM' && $Mode!='UPDATE_ITEM') {
if (get_post('item_code') == '') { // new kit/alias
if ($Mode!='ADD_ITEM' && $Mode!='UPDATE_ITEM') {
- $_POST['description'] =
$props['description']
;
- $_POST['category'] =
$props['category_id']
;
+ $_POST['description'] =
is_array($props) ? $props['description'] : ''
;
+ $_POST['category'] =
is_array($props) ? $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);