X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fprices.php;h=66d3bee099482041a449b56a27ddec6f9c900918;hb=56c6e387f78498e190c5018f1b0676acc057273f;hp=123c4bd0b0789613bf4faf5f276e119e214bd144;hpb=5d3fcb9c57e586c20651594edf91a2dccb08df00;p=fa-stable.git diff --git a/inventory/prices.php b/inventory/prices.php index 123c4bd0..66d3bee0 100644 --- a/inventory/prices.php +++ b/inventory/prices.php @@ -50,11 +50,8 @@ if (!isset($_POST['curr_abrev'])) } //--------------------------------------------------------------------------------------------------- - -$action = $_SERVER['PHP_SELF']; -if (@$_GET['popup']) - $action .= "?stock_id=".get_post('stock_id'); -start_form(false, false, $action); +if (!@$_GET['popup']) + start_form(); if (!isset($_POST['stock_id'])) $_POST['stock_id'] = get_global_stock_item(); @@ -185,8 +182,10 @@ if ($Mode == 'Edit') hidden('selected_id', $selected_id); if (@$_GET['popup']) +{ hidden('_tabs_sel', get_post('_tabs_sel')); - + hidden('popup', @$_GET['popup']); +} div_start('price_details'); start_table(TABLESTYLE2); @@ -209,7 +208,9 @@ if ($calculated) submit_add_or_update_center($selected_id == -1, '', 'both'); div_end(); -end_form(); if (!@$_GET['popup']) +{ + end_form(); end_page(@$_GET['popup'], false, false); +} ?>