Major theme rework
This commit is contained in:
@@ -40,7 +40,7 @@ class Model_Invoice_Item extends ORMOSB {
|
||||
|
||||
// Items belonging to an invoice
|
||||
private $subitems = array();
|
||||
private $subitems_load = FALSE;
|
||||
private $subitems_loaded = FALSE;
|
||||
|
||||
public function __construct($id = NULL) {
|
||||
// Load our model.
|
||||
@@ -51,9 +51,9 @@ class Model_Invoice_Item extends ORMOSB {
|
||||
|
||||
private function load_sub_items() {
|
||||
// Load our sub items
|
||||
if (! $this->subitems_load AND $this->loaded()) {
|
||||
if (! $this->subitems_loaded AND $this->loaded()) {
|
||||
$this->subitems['tax'] = $this->invoice_item_tax->find_all()->as_array();
|
||||
$this->subitems_load = TRUE;
|
||||
$this->subitems_loaded = TRUE;
|
||||
}
|
||||
|
||||
return $this;
|
||||
|
Reference in New Issue
Block a user