False overallocation message fixed.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 6 Jun 2010 15:50:34 +0000 (15:50 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 6 Jun 2010 15:50:34 +0000 (15:50 +0000)
CHANGELOG.txt
includes/ui/allocation_cart.inc

index bce34c11979471091fd3b2fb22a5174a86128ffc..114b5c2cb366cc39988cdd4214eb534ca98a6b84 100644 (file)
@@ -19,6 +19,10 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+06-Jun-2010 Janusz Dobrowolski
+# False overallocation fixed.
+$ /includes/ui/allocation_cart.inc
+
 03-Jun-2010 Joe Hunt
 # Rounding bug when decimals greater than or equal to 6.
 $ /includes/current_user.inc
index a75a78e75cabb8d4321a7ffde6399b3ec4ca1c7e..ad33e573e461d72f6992312bc29922c969ca0f2a 100644 (file)
@@ -330,7 +330,7 @@ function check_allocations()
 
                  /*Now check to see that the AllocAmt is no greater than the
                 amount left to be allocated against the transaction under review */
-                if (input_num('amount' . $counter) > get_post('un_allocated' . $counter))
+                if (input_num('amount' . $counter) > input_num('un_allocated' . $counter))
                 {
                        display_error(_("At least one transaction is overallocated."));
                        set_focus('amount'.$counter);