Updated for new lnApp
This commit is contained in:
@@ -28,10 +28,10 @@ class Model_Invoice extends ORM_OSB implements Cartable {
|
||||
|
||||
protected $_display_filters = array(
|
||||
'date_orig'=>array(
|
||||
array('Config::date',array(':value')),
|
||||
array('Site::Date',array(':value')),
|
||||
),
|
||||
'due_date'=>array(
|
||||
array('Config::date',array(':value')),
|
||||
array('Site::Date',array(':value')),
|
||||
),
|
||||
'status'=>array(
|
||||
array('StaticList_YesNo::get',array(':value',TRUE)),
|
||||
@@ -46,6 +46,10 @@ class Model_Invoice extends ORM_OSB implements Cartable {
|
||||
'invoice_item'=>'service_id,item_type,date_start,date_stop',
|
||||
);
|
||||
|
||||
protected $_compress_column = array(
|
||||
'reminders',
|
||||
);
|
||||
|
||||
private $_render = array();
|
||||
|
||||
// Our required Interface Methods
|
||||
|
@@ -21,13 +21,13 @@ class Model_Invoice_Item extends ORM_OSB {
|
||||
|
||||
protected $_display_filters = array(
|
||||
'date_orig'=>array(
|
||||
array('Config::date',array(':value')),
|
||||
array('Site::Date',array(':value')),
|
||||
),
|
||||
'date_start'=>array(
|
||||
array('Config::date',array(':value')),
|
||||
array('Site::Date',array(':value')),
|
||||
),
|
||||
'date_stop'=>array(
|
||||
array('Config::date',array(':value')),
|
||||
array('Site::Date',array(':value')),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -104,7 +104,7 @@ class Model_Invoice_Item extends ORM_OSB {
|
||||
|
||||
// Display the period that a transaction applies
|
||||
public function period() {
|
||||
return ($this->date_start == $this->date_stop) ? Config::date($this->date_start) : sprintf('%s -> %s',Config::date($this->date_start),Config::date($this->date_stop));
|
||||
return ($this->date_start == $this->date_stop) ? Site::Date($this->date_start) : sprintf('%s -> %s',Site::Date($this->date_start),Site::Date($this->date_stop));
|
||||
}
|
||||
|
||||
public function save(Validation $validation = NULL) {
|
||||
|
@@ -23,8 +23,12 @@ class Model_Invoice_Memo extends ORM_OSB {
|
||||
*/
|
||||
protected $_display_filters = array(
|
||||
'date_orig'=>array(
|
||||
array('Config::datetime',array(':value')),
|
||||
array('Site::Datetime',array(':value')),
|
||||
),
|
||||
);
|
||||
|
||||
protected $_compress_column = array(
|
||||
'memo',
|
||||
);
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user