close #412 Fixed: Invoice add payment problem

This commit is contained in:
cuneytsenturk
2018-07-10 18:30:03 +03:00
parent 7641d7e315
commit 6405aafef9
13 changed files with 64 additions and 16 deletions

View File

@ -112,7 +112,7 @@ class Payment extends Model
*/
public function setAmountAttribute($value)
{
$this->attributes['amount'] = (double) $value;
$this->attributes['amount'] = (double) money($value, $this->attributes['currency_code'])->getAmount();
}
/**