Work on Email and other major consistency work

This commit is contained in:
Deon George
2013-11-22 15:36:50 +11:00
parent 89deb9c97b
commit c18d5a3881
55 changed files with 550 additions and 575 deletions

View File

@@ -96,12 +96,7 @@ class Controller_Admin_Payment extends Controller_Payment {
$pio->alloc_amt = is_numeric($v) ? $v : 0;
}
// Entry updated
if ($po->values($_POST)->check() AND $po->save())
SystemMessage::factory()
->title('Record updated')
->type('success')
->body(_('Your Payment record has been recorded/updated.'));
$this->save($po);
}
Script::factory()

View File

@@ -200,7 +200,7 @@ class Model_Payment extends ORM_OSB {
throw HTTP_Exception::factory(501,'Problem saving payment :id - Failed save()',array(':id'=>$this->id));
}
return TRUE;
return $this;
}
/**