Updated OSB to work with KH 3.1
This commit is contained in:
@@ -31,8 +31,6 @@ class Controller_User_Invoice extends Controller_TemplateDefault {
|
||||
'body'=>View::factory('invoice/list')
|
||||
->set('invoices',$ao->invoice->find_all()),
|
||||
));
|
||||
|
||||
$this->template->content = Block::factory();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -261,9 +261,9 @@ class Model_Invoice extends ORMOSB {
|
||||
return $this->invoice_items[$c];
|
||||
}
|
||||
|
||||
public function save() {
|
||||
public function save(Validation $validation = NULL) {
|
||||
// Save the invoice
|
||||
parent::save();
|
||||
parent::save($validation);
|
||||
|
||||
// Need to save the associated items and their taxes
|
||||
if ($this->saved()) {
|
||||
|
Reference in New Issue
Block a user