Rerun
[fa-stable.git] / includes / ui / allocation_cart.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);