From: Joe Hunt Date: Wed, 26 Oct 2011 23:16:11 +0000 (+0200) Subject: Links from Items to Inventory Item Movement and Inventory Item Status. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=355d930777f3674945efe80c5aacf15ffea7b579;p=textcart.git Links from Items to Inventory Item Movement and Inventory Item Status. --- diff --git a/inventory/inquiry/stock_movements.php b/inventory/inquiry/stock_movements.php index 775a2bf..aaee30c 100644 --- a/inventory/inquiry/stock_movements.php +++ b/inventory/inquiry/stock_movements.php @@ -24,7 +24,7 @@ if ($use_popup_windows) if ($use_date_picker) $js .= get_js_date_picker(); -page(_($help_context = "Inventory Item Movement"), false, false, "", $js); +page(_($help_context = "Inventory Item Movement"), @$_REQUEST['popup'], false, "", $js); //------------------------------------------------------------------------------------------------ check_db_has_stock_items(_("There are no items defined in the system.")); @@ -185,6 +185,6 @@ end_row(); end_table(1); div_end(); -end_page(); +end_page(@$_REQUEST['popup'], false, false); ?> diff --git a/inventory/inquiry/stock_status.php b/inventory/inquiry/stock_status.php index 459d75c..0e5f82a 100644 --- a/inventory/inquiry/stock_status.php +++ b/inventory/inquiry/stock_status.php @@ -116,6 +116,6 @@ while ($myrow = db_fetch($loc_details)) end_table(); div_end(); end_form(); -end_page(); +end_page(@$_REQUEST['popup'], false, false); ?> diff --git a/inventory/manage/items.php b/inventory/manage/items.php index 8d65397..c07c198 100644 --- a/inventory/manage/items.php +++ b/inventory/manage/items.php @@ -12,8 +12,11 @@ $page_security = 'SA_ITEM'; $path_to_root = "../.."; include($path_to_root . "/includes/session.inc"); - -page(_($help_context = "Items"), @$_REQUEST['popup']); +$js = ""; +if ($use_popup_windows) + $js .= get_js_open_window(900, 500); + +page(_($help_context = "Items"), @$_REQUEST['popup'], false, "", $js); include_once($path_to_root . "/includes/date_functions.inc"); include_once($path_to_root . "/includes/ui.inc"); @@ -348,6 +351,23 @@ check_row(_("Editable description:"), 'editable'); check_row(_("Exclude from sales:"), 'no_sale'); +if (!$new_item) +{ + if (!@$_REQUEST['popup']) + { + start_row(); + echo ' '; + echo viewer_link(''. _('Inventory Item Movement').'', "inventory/inquiry/stock_movements.php?stock_id=$stock_id&popup=1"); + echo "\n"; + end_row(); + start_row(); + echo ' '; + echo viewer_link(''. _('Inventory Item Status').'', "inventory/inquiry/stock_status.php?stock_id=$stock_id&popup=1"); + echo "\n"; + end_row(); + } +} + table_section(2); $dim = get_company_pref('use_dimension');