From be5cae9e4ef6cb83d5ed49503a006109b368ad8a Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sun, 6 Jun 2010 15:50:34 +0000 Subject: [PATCH] False overallocation message fixed. --- CHANGELOG.txt | 4 ++++ includes/ui/allocation_cart.inc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index bce34c1..114b5c2 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -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 diff --git a/includes/ui/allocation_cart.inc b/includes/ui/allocation_cart.inc index a75a78e..ad33e57 100644 --- a/includes/ui/allocation_cart.inc +++ b/includes/ui/allocation_cart.inc @@ -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); -- 2.30.2