refs #434 money bill, invoice, revenue and payment fixed

This commit is contained in:
cuneytsenturk
2018-08-07 12:30:21 +03:00
parent b355cc17c9
commit 9d8029893f
12 changed files with 65 additions and 147 deletions

View File

@ -42,7 +42,7 @@ class BillItem extends Model
*/
public function setPriceAttribute($value)
{
$this->attributes['price'] = (double) money($value, $this->bill->currency_code)->getAmount();
$this->attributes['price'] = (double) $value;
}
/**
@ -53,7 +53,7 @@ class BillItem extends Model
*/
public function setTotalAttribute($value)
{
$this->attributes['total'] = (double) money($value, $this->bill->currency_code)->getAmount();
$this->attributes['total'] = (double) $value;
}
/**
@ -64,6 +64,6 @@ class BillItem extends Model
*/
public function setTaxAttribute($value)
{
$this->attributes['tax'] = (double) money($value, $this->bill->currency_code)->getAmount();
$this->attributes['tax'] = (double) $value;
}
}