Work on Email and other major consistency work
This commit is contained in:
@@ -188,9 +188,6 @@ class Model_Invoice_Item extends ORM_OSB {
|
||||
}
|
||||
|
||||
public function save(Validation $validation = NULL) {
|
||||
if (! $this->changed())
|
||||
return;
|
||||
|
||||
// Save the invoice item
|
||||
parent::save($validation);
|
||||
|
||||
@@ -214,9 +211,6 @@ class Model_Invoice_Item extends ORM_OSB {
|
||||
// @todo Rounding here should come from a global config
|
||||
$iito->amount = round($tax['amount'],2);
|
||||
|
||||
if (! $iito->check())
|
||||
throw new Kohana_Exception('Couldnt save tax for some reason - failed check()?');
|
||||
|
||||
$iito->save();
|
||||
|
||||
if (! $iito->saved())
|
||||
@@ -224,6 +218,8 @@ class Model_Invoice_Item extends ORM_OSB {
|
||||
}
|
||||
} else
|
||||
throw new Kohana_Exception('Couldnt save invoice_item for some reason?');
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user