Rerun
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 22 Feb 2010 00:24:18 +0000 (00:24 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 22 Feb 2010 00:24:18 +0000 (00:24 +0000)
gl/manage/exchange_rates.php

index 449168c40e1c73e422af1a87254d839bc655ea6e..55259ff8fa4a16ef43956c0022264f5b958f58c6 100644 (file)
@@ -40,7 +40,12 @@ function check_data()
                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;
 }