X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fcost_update.php;h=75f04a0e055fd833c4fd63c5d367d613c28b2fb3;hb=ed8422cc500fa848a1e3a85bc0979ff76a802ca9;hp=e16594b383d75df3d7a1e895210e0113befb6b0e;hpb=5d3fcb9c57e586c20651594edf91a2dccb08df00;p=fa-stable.git diff --git a/inventory/cost_update.php b/inventory/cost_update.php index e16594b3..75f04a0e 100644 --- a/inventory/cost_update.php +++ b/inventory/cost_update.php @@ -74,7 +74,7 @@ if (isset($_POST['UpdateData'])) if ($update_no > 0) { - display_notification(get_gl_view_str(ST_COSTUPDATE, $update_no, _("View the GL Journal Entries for this Cost Update")), 0, 1); + display_notification(get_gl_view_str(ST_COSTUPDATE, $update_no, _("View the GL Journal Entries for this Cost Update"))); } } @@ -84,10 +84,8 @@ if (list_updated('stock_id')) $Ajax->activate('cost_table'); //----------------------------------------------------------------------------------------- -$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(); @@ -118,7 +116,10 @@ $_POST['overhead_cost'] = price_decimal_format($myrow["overhead_cost"], $dec3); amount_row(_("Standard Material Cost Per Unit"), "material_cost", null, "class='tableheader2'", null, $dec1); if (@$_GET['popup']) +{ hidden('_tabs_sel', get_post('_tabs_sel')); + hidden('popup', @$_GET['popup']); +} if ($myrow["mb_flag"]=='M') { amount_row(_("Standard Labour Cost Per Unit"), "labour_cost", null, "class='tableheader2'", null, $dec2); @@ -134,8 +135,9 @@ end_table(1); div_end(); submit_center('UpdateData', _("Update"), true, false, 'default'); -end_form(); if (!@$_GET['popup']) +{ + end_form(); end_page(@$_GET['popup'], false, false); - +} ?>