Small bug when editing inside the tabs in Items. The Select button disappeared.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 29 Jan 2013 09:15:26 +0000 (10:15 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 29 Jan 2013 09:15:26 +0000 (10:15 +0100)
inventory/cost_update.php
inventory/prices.php
inventory/purchasing_data.php
inventory/reorder_level.php

index ced20387db19f6a48fd5ef5791bb48766ee0d7f9..3afe0b6412e26c6d15389a2850b521c23ff902a1 100644 (file)
@@ -118,7 +118,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);
index 123c4bd0b0789613bf4faf5f276e119e214bd144..f1c63c40b2b9a52f273a4f84e5495586754678d1 100644 (file)
@@ -185,8 +185,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);
 
index 3f85c0376f522bec9e744933eced092c58ed81c0..1b4602ee785887b11ae5885e84183d502127a41d 100644 (file)
@@ -197,7 +197,10 @@ if ($Mode =='Edit')
 br();
 hidden('selected_id', $selected_id);
 if (@$_GET['popup'])
+{
        hidden('_tabs_sel', get_post('_tabs_sel'));
+       hidden('popup', @$_GET['popup']);
+}
 
 start_table(TABLESTYLE2);
 
index e2ace58ab33402975313a827e146e14092ca6544..c863796a6ece9fbff25b16f9a78f59de59e6b56f 100644 (file)
@@ -74,7 +74,10 @@ $k=0; //row colour counter
 $result = get_loc_details($_POST['stock_id']);
 
 if (@$_GET['popup'])
+{
        hidden('_tabs_sel', get_post('_tabs_sel'));
+       hidden('popup', @$_GET['popup']);
+}
 
 while ($myrow = db_fetch($result))
 {