# [0000230] Incorrect 'On order' quantity of raw materials in the 'Stock Check Sheets' report.
$ /reporting/rep303.php
+24-May-2010 Janusz Dobrowolski
+# Additional fixes in payment/deposit allocations.
+$ /includes/ui/allocation_cart.inc
+ /js/payalloc.js
+
22-May-2010 Janusz Dobrowolski
-# Fixed html generationfor buttons
+# Fixed html generation for buttons
$ /includes/ui/ui_input.inc
13-May-2010 Janusz Dobrowolski
amount left to be allocated against the transaction under review */
if (input_num('amount' . $counter) > get_post('un_allocated' . $counter))
{
- //$_POST['amount' . $counter] = $_POST['un_allocated' . $counter];
+ display_error(_("At least one transaction is overallocated."));
+ set_focus('amount'.$counter);
+ return false;
}
$_SESSION['alloc']->allocs[$counter]->current_allocated = input_num('amount' . $counter);
}
function blur_alloc(i) {
- var change = Math.min(get_amount(i.name), get_amount('maxval'+i.name.substr(6), 1))
+ var change = get_amount(i.name);
+
+ if (i.name != 'amount' && i.name != 'charge' && i.name != 'discount')
+ change = Math.min(change, get_amount('maxval'+i.name.substr(6), 1))
price_format(i.name, change, user.pdec);
if (i.name != 'amount' && i.name != 'charge') {