projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New CHANGELOG.txt
[fa-stable.git]
/
inventory
/
prices.php
diff --git
a/inventory/prices.php
b/inventory/prices.php
index 123c4bd0b0789613bf4faf5f276e119e214bd144..650728ca49392514308a34e33e427817b5c09858 100644
(file)
--- 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();
if (!isset($_POST['stock_id']))
$_POST['stock_id'] = get_global_stock_item();
@@
-144,7
+141,7
@@
if (list_updated('stock_id') || isset($_POST['_curr_abrev_update']) || isset($_P
$prices_list = get_prices($_POST['stock_id']);
div_start('price_table');
$prices_list = get_prices($_POST['stock_id']);
div_start('price_table');
-start_table(TABLESTYLE, "width=
30%
");
+start_table(TABLESTYLE, "width=
'30%'
");
$th = array(_("Currency"), _("Sales Type"), _("Price"), "", "");
table_header($th);
$th = array(_("Currency"), _("Sales Type"), _("Price"), "", "");
table_header($th);
@@
-185,8
+182,10
@@
if ($Mode == 'Edit')
hidden('selected_id', $selected_id);
if (@$_GET['popup'])
hidden('selected_id', $selected_id);
if (@$_GET['popup'])
+{
hidden('_tabs_sel', get_post('_tabs_sel'));
hidden('_tabs_sel', get_post('_tabs_sel'));
-
+ hidden('popup', @$_GET['popup']);
+}
div_start('price_details');
start_table(TABLESTYLE2);
div_start('price_details');
start_table(TABLESTYLE2);
@@
-209,7
+208,9
@@
if ($calculated)
submit_add_or_update_center($selected_id == -1, '', 'both');
div_end();
submit_add_or_update_center($selected_id == -1, '', 'both');
div_end();
-end_form();
if (!@$_GET['popup'])
if (!@$_GET['popup'])
+{
+ end_form();
end_page(@$_GET['popup'], false, false);
end_page(@$_GET['popup'], false, false);
+}
?>
?>