projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Emailed reports can be send to multiply destinations, fixed email charset selection.
[fa-stable.git]
/
gl
/
manage
/
exchange_rates.php
diff --git
a/gl/manage/exchange_rates.php
b/gl/manage/exchange_rates.php
index e50fc5f308ae6995876c35213866cffca5005969..eaa0796f0cf518ab6d65b97b6f0f336ba9c7adf0 100644
(file)
--- a/
gl/manage/exchange_rates.php
+++ b/
gl/manage/exchange_rates.php
@@
-40,7
+40,12
@@
function check_data()
set_focus('BuyRate');
return false;
}
set_focus('BuyRate');
return false;
}
-
+ if (get_date_exchange_rate($_POST['curr_abrev'], $_POST['date_']))
+ {
+ display_error( _("The exchange rate for the date is already there."));
+ set_focus('date_');
+ return false;
+ }
return true;
}
return true;
}
@@
-96,7
+101,6
@@
function del_link($row)
function display_rates($curr_code)
{
function display_rates($curr_code)
{
- global $table_style;
}
}
@@
-104,9
+108,9
@@
function display_rates($curr_code)
function display_rate_edit()
{
function display_rate_edit()
{
- global $selected_id, $
table_style2, $
Ajax;
+ global $selected_id, $Ajax;
- start_table(
$table_style
2);
+ start_table(
TABLESTYLE
2);
if ($selected_id != "")
{
if ($selected_id != "")
{
@@
-207,6
+211,8
@@
else
br(1);
$table->width = "40%";
br(1);
$table->width = "40%";
+ if ($table->rec_count == 0)
+ $table->ready = false;
display_db_pager($table);
br(1);
display_rate_edit();
display_db_pager($table);
br(1);
display_rate_edit();