From: Janusz Dobrowolski Date: Thu, 20 Nov 2008 13:31:32 +0000 (+0000) Subject: Fixed [0000082] bad js allocations after All/None button press. X-Git-Tag: 2.3-final~1380 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=bfbaa838e7ecc10e60da4f894ec0d2fffb7d1938;p=fa-stable.git Fixed [0000082] bad js allocations after All/None button press. --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index cf942b6d..0516a846 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,10 @@ Legend: ! -> Note $ -> Affected files +20-Nov-2008 Janusz Dobrowolski +# [0000082] Bad js allocation on All/None button press. +$ /sales/allocations/customer_allocate.php + 20-Nov-2008 Joe Hunt # Do not allow editing invoice if allocated > 0 $ /sales/inquiry/customer_inquiry.php diff --git a/sales/allocations/customer_allocate.php b/sales/allocations/customer_allocate.php index 39076ec1..5f30f66c 100644 --- a/sales/allocations/customer_allocate.php +++ b/sales/allocations/customer_allocate.php @@ -54,7 +54,7 @@ function check_data() /*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) > $_POST['un_allocated' . $counter]) + if (input_num('amount' . $counter) > input_num('un_allocated' . $counter)) { //$_POST['amount' . $counter] = $_POST['un_allocated' . $counter]; } @@ -219,7 +219,7 @@ function edit_allocations_for_transaction($type, $trans_no) label_cell("" . _("All") . ""); label_cell("" - . _("None") . "".hidden("un_allocated" . $counter, $un_allocated, false)); + . _("None") . "".hidden("un_allocated" . $counter, price_format($un_allocated), false)); end_row(); $total_allocated += input_num('amount' . $counter);