refs #273 change solution system
This commit is contained in:
@ -158,6 +158,28 @@ 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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user