Minor fixes from live site.

This commit is contained in:
Deon George
2013-06-05 13:42:55 +10:00
parent 3ba7eea48d
commit 2322a802de
8 changed files with 17 additions and 14 deletions

View File

@@ -91,9 +91,9 @@ class Controller_Admin_Payment extends Controller_Payment {
foreach ($_POST['payment_item'] as $k=>$v) {
$pio = $po->payment_item;
$pio->invoice_id = $k;
$pio->alloc_amt = is_numeric($v) ? $v : 0;
$pio = $po->add_item($pio);
$po->add_item($pio);
$pio->alloc_amt = is_numeric($v) ? $v : 0;
}
// Entry updated