refs #import date date time issue solved.

This commit is contained in:
cuneytsenturk
2018-08-06 18:41:58 +03:00
parent dbc4bd7608
commit 56a046b866
19 changed files with 193 additions and 96 deletions

View File

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

View File

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

View File

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