Misc fixes for ADSL excess traffic and strtotime() functions for last month

This commit is contained in:
Deon George
2013-12-31 17:18:49 +11:00
parent e19518c505
commit 82c51de550
11 changed files with 27 additions and 15 deletions

View File

@@ -61,7 +61,7 @@ class Model_Invoice_Item extends ORM_OSB {
case 1:
// @todo
return $ii;
return $this->product_name;
case 2:
case 3:
@@ -69,7 +69,10 @@ class Model_Invoice_Item extends ORM_OSB {
case 5:
case 6:
return ((! $this->service_id OR $this->product_id OR $this->charge_id OR $this->product_name OR $this->recurring_schedule OR ! $this->date_start OR ! $this->date_stop) ? '+ ' : '').$ii;
case 8:
return $this->product_name;
case 124:
case 125:
case 126:
@@ -130,7 +133,7 @@ class Model_Invoice_Item extends ORM_OSB {
} else
throw new Kohana_Exception('Couldnt save invoice_item for some reason?');
return $this;
}