Fixed bug [0000124] (cannot add exrate <1 when comma separator is set).
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 28 Mar 2009 15:14:09 +0000 (15:14 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 28 Mar 2009 15:14:09 +0000 (15:14 +0000)
CHANGELOG.txt
gl/manage/exchange_rates.php

index b798ef8c960e926371f6cff7974f71014d9bf164..924c6d11b43ab4635066f1549969f1211025272d 100644 (file)
@@ -19,6 +19,11 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+
+28-Mar-2009 Janusz Dobrowolski
+# [0000124] Cannot add exchange rate <1 when comma is set as dec separator.
+$ /gl/manage/exchange_rates.php
+
 27-Mar-2009 Janusz Dobrowolski
 # Fixed include file path in reports 104,303
 $ /reporting/rep104.php
index 493509f9d7a339eb3da2c23638b11b05972984db..55646fa1d4f00ce74143bdecb534ab1db03b5740 100644 (file)
@@ -34,13 +34,7 @@ function check_data()
                set_focus('date_');
                return false;
        }
-       if (!check_num('BuyRate', 0))
-       {
-               display_error( _("The exchange rate must be numeric and greater than zero."));
-               set_focus('BuyRate');
-               return false;
-       }
-       if ($_POST['BuyRate'] <= 0)
+       if (input_num('BuyRate') <= 0)
        {
                display_error( _("The exchange rate cannot be zero or a negative number."));
                set_focus('BuyRate');