refs #273 change solution system

This commit is contained in:
cuneytsenturk
2018-07-11 14:05:42 +03:00
parent da091525b0
commit 5503e546c1
14 changed files with 99 additions and 208 deletions

View File

@ -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.
*