X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fallocations%2Fcustomer_allocate.php;h=5f30f66cf2a54d36c9aa5a52fd419bb7d5a4f0d5;hb=bfbaa838e7ecc10e60da4f894ec0d2fffb7d1938;hp=39076ec19fce4b1b0342fac31fa0c8fbfddc29ca;hpb=ccf82b7df70ade51e6aa7799cd23bb01fdc2d6ed;p=fa-stable.git
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);