Major theme rework

This commit is contained in:
Deon George
2012-01-29 17:23:24 +11:00
parent 3d1c43687c
commit 89bb9004ed
49 changed files with 663 additions and 1320 deletions

View File

@@ -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;