Updated for new lnApp
This commit is contained in:
@@ -267,18 +267,18 @@ $(document).ready(function() {
|
||||
case 4:
|
||||
case 5:
|
||||
if ($iio->date_start != $pdata['start_time']) {
|
||||
$doutput .= sprintf('%s: Set start_time: %s [%s]<br/>',$iio->id,Config::date($pdata['start_time']),$pdata['start_time']);
|
||||
$doutput .= sprintf('%s: Set start_time: %s [%s]<br/>',$iio->id,Site::Date($pdata['start_time']),$pdata['start_time']);
|
||||
$iio->date_start=$pdata['start_time'];
|
||||
}
|
||||
|
||||
if (! $pr AND $iio->date_stop != $pdata['end_time']) {
|
||||
$doutput .= sprintf('%s: Set end_time: %s [%s] <br/>',$iio->id,Config::date($pdata['end_time']),$pdata['end_time']);
|
||||
$doutput .= sprintf('%s: Set end_time: %s [%s] <br/>',$iio->id,Site::Date($pdata['end_time']),$pdata['end_time']);
|
||||
$iio->date_stop = $pdata['end_time'];
|
||||
}
|
||||
|
||||
$bt = ($pr ? $iio->date_stop : $pdata['end_time'])+86400;
|
||||
|
||||
// $doutput .= sprintf('%s: BT now: %s (%s) [%s]<br/>',$iio->id,Config::date($bt),Config::date($pdata['end_time']),$bt);
|
||||
// $doutput .= sprintf('%s: BT now: %s (%s) [%s]<br/>',$iio->id,Site::Date($bt),Site::Date($pdata['end_time']),$bt);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@@ -47,16 +47,16 @@ class Model_Service extends ORM_OSB {
|
||||
*/
|
||||
protected $_display_filters = array(
|
||||
'date_start'=>array(
|
||||
array('Config::date',array(':value')),
|
||||
array('Site::Date',array(':value')),
|
||||
),
|
||||
'date_end'=>array(
|
||||
array('Config::date',array(':value')),
|
||||
array('Site::Date',array(':value')),
|
||||
),
|
||||
'date_last_invoice'=>array(
|
||||
array('Config::date',array(':value')),
|
||||
array('Site::Date',array(':value')),
|
||||
),
|
||||
'date_next_invoice'=>array(
|
||||
array('Config::date',array(':value')),
|
||||
array('Site::Date',array(':value')),
|
||||
),
|
||||
'external_billing'=>array(
|
||||
array('StaticList_YesNo::get',array(':value',TRUE)),
|
||||
@@ -136,7 +136,7 @@ class Model_Service extends ORM_OSB {
|
||||
// If $expire is NULL, we'll use the next invoice date
|
||||
$expire = is_null($expire) ? $this->paid_to() : $expire;
|
||||
|
||||
return $format ? Config::date($expire) : $expire;
|
||||
return $format ? Site::Date($expire) : $expire;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -183,7 +183,7 @@ class Model_Service extends ORM_OSB {
|
||||
|
||||
$x = (! $iio->loaded() AND $this->date_next_invoice) ? $this->date_next_invoice-86400 : ($iio->total() < 0 ? $iio->date_start-86400 : $iio->date_stop);
|
||||
|
||||
return $format ? Config::date($x) : $x;
|
||||
return $format ? Site::Date($x) : $x;
|
||||
}
|
||||
|
||||
private function last_invoice_item() {
|
||||
@@ -217,7 +217,7 @@ class Model_Service extends ORM_OSB {
|
||||
break;
|
||||
}
|
||||
|
||||
return $format ? ($x ? Config::date($metric) : ' ') : ($x ? $metric : NULL);
|
||||
return $format ? ($x ? Site::Date($metric) : ' ') : ($x ? $metric : NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -23,10 +23,10 @@ class Model_Service_Change extends ORM_OSB {
|
||||
*/
|
||||
protected $_display_filters = array(
|
||||
'date_ordered'=>array(
|
||||
array('Config::date',array(':value')),
|
||||
array('Site::Date',array(':value')),
|
||||
),
|
||||
'date_effective'=>array(
|
||||
array('Config::date',array(':value')),
|
||||
array('Site::Date',array(':value')),
|
||||
),
|
||||
);
|
||||
|
||||
|
@@ -18,12 +18,16 @@ class Model_Service_Memo extends ORM_OSB {
|
||||
'account'=>array('foreign_key'=>'id'),
|
||||
);
|
||||
|
||||
protected $_compress_column = array(
|
||||
'memo',
|
||||
);
|
||||
|
||||
/**
|
||||
* Filters used to format the display of values into friendlier values
|
||||
*/
|
||||
protected $_display_filters = array(
|
||||
'date_orig'=>array(
|
||||
array('Config::datetime',array(':value')),
|
||||
array('Site::Datetime',array(':value')),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
@@ -17,7 +17,7 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="input-append date" id="date_next_invoice_label">
|
||||
<?php echo Form::input('date_next_invoice_label',Config::date(time()),array('class'=>'span2','label'=>'Date Next Invoice','add-on'=>'<i class="icon-calendar"></i>','disabled')); ?>
|
||||
<?php echo Form::input('date_next_invoice_label',Site::Date(time()),array('class'=>'span2','label'=>'Date Next Invoice','add-on'=>'<i class="icon-calendar"></i>','disabled')); ?>
|
||||
</div>
|
||||
|
||||
<?php echo Form::hidden('date_next_invoice',time()); ?>
|
||||
|
Reference in New Issue
Block a user