refs #import date date time issue solved.
This commit is contained in:
@ -159,28 +159,6 @@ class Bill extends Model
|
||||
$this->attributes['currency_rate'] = (double) $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert billed_at to datetime.
|
||||
*
|
||||
* @param string $value
|
||||
* @return void
|
||||
*/
|
||||
public function setBilledAtAttribute($value)
|
||||
{
|
||||
$this->attributes['billed_at'] = $value . ' ' . Date::now()->format('H:i:s');
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert due_at to datetime.
|
||||
*
|
||||
* @param string $value
|
||||
* @return void
|
||||
*/
|
||||
public function setDueAtAttribute($value)
|
||||
{
|
||||
$this->attributes['due_at'] = $value . ' ' . Date::now()->format('H:i:s');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current balance.
|
||||
*
|
||||
|
@ -86,17 +86,6 @@ class BillPayment extends Model
|
||||
return $query->sum('amount');
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert paid_at to datetime.
|
||||
*
|
||||
* @param string $value
|
||||
* @return void
|
||||
*/
|
||||
public function setPaidAtAttribute($value)
|
||||
{
|
||||
$this->attributes['paid_at'] = $value . ' ' . Date::now()->format('H:i:s');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current balance.
|
||||
*
|
||||
|
@ -132,17 +132,6 @@ class Payment extends Model
|
||||
return $query->orderBy('paid_at', 'desc');
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert paid_at to datetime.
|
||||
*
|
||||
* @param string $value
|
||||
* @return void
|
||||
*/
|
||||
public function setPaidAtAttribute($value)
|
||||
{
|
||||
$this->attributes['paid_at'] = $value . ' ' . Date::now()->format('H:i:s');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current balance.
|
||||
*
|
||||
|
@ -161,28 +161,6 @@ class Invoice extends Model
|
||||
$this->attributes['currency_rate'] = (double) $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert invoiced_at to datetime.
|
||||
*
|
||||
* @param string $value
|
||||
* @return void
|
||||
*/
|
||||
public function setInvoicedAtAttribute($value)
|
||||
{
|
||||
$this->attributes['invoiced_at'] = $value . ' ' . Date::now()->format('H:i:s');
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert due_at to datetime.
|
||||
*
|
||||
* @param string $value
|
||||
* @return void
|
||||
*/
|
||||
public function setDueAtAttribute($value)
|
||||
{
|
||||
$this->attributes['due_at'] = $value . ' ' . Date::now()->format('H:i:s');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current balance.
|
||||
*
|
||||
|
@ -86,17 +86,6 @@ class InvoicePayment extends Model
|
||||
return $query->sum('amount');
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert paid_at to datetime.
|
||||
*
|
||||
* @param string $value
|
||||
* @return void
|
||||
*/
|
||||
public function setPaidAtAttribute($value)
|
||||
{
|
||||
$this->attributes['paid_at'] = $value . ' ' . Date::now()->format('H:i:s');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current balance.
|
||||
*
|
||||
|
@ -133,17 +133,6 @@ class Revenue extends Model
|
||||
$this->attributes['currency_rate'] = (double) $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert paid_at to datetime.
|
||||
*
|
||||
* @param string $value
|
||||
* @return void
|
||||
*/
|
||||
public function setPaidAtAttribute($value)
|
||||
{
|
||||
$this->attributes['paid_at'] = $value . ' ' . Date::now()->format('H:i:s');
|
||||
}
|
||||
|
||||
public function scopeLatest($query)
|
||||
{
|
||||
return $query->orderBy('paid_at', 'desc');
|
||||
|
Reference in New Issue
Block a user