This commit is contained in:
cuneytsenturk
2018-08-06 23:16:18 +03:00
parent b04e6d1ce5
commit bfdd3b21dc
12 changed files with 158 additions and 15 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ class Bill extends Model
*/
public function setAmountAttribute($value)
{
$this->attributes['amount'] = (double) money($value, $this->attributes['currency_code'])->getAmount();
$this->attributes['amount'] = (double) $value;
}
/**
+1 -1
View File
@@ -61,7 +61,7 @@ class BillPayment extends Model
*/
public function setAmountAttribute($value)
{
$this->attributes['amount'] = (double) money($value, $this->account->currency_code)->getAmount();
$this->attributes['amount'] = (double) $value;
}
/**
+1 -1
View File
@@ -113,7 +113,7 @@ class Payment extends Model
*/
public function setAmountAttribute($value)
{
$this->attributes['amount'] = (double) money($value, $this->attributes['currency_code'])->getAmount();
$this->attributes['amount'] = (double) $value;
}
/**
+1 -1
View File
@@ -61,7 +61,7 @@ class InvoicePayment extends Model
*/
public function setAmountAttribute($value)
{
$this->attributes['amount'] = (double) money($value, $this->account->currency_code)->getAmount();
$this->attributes['amount'] = (double) $value;
}
/**
+1 -1
View File
@@ -119,7 +119,7 @@ class Revenue extends Model
*/
public function setAmountAttribute($value)
{
$this->attributes['amount'] = (double) money($value, $this->attributes['currency_code'])->getAmount();
$this->attributes['amount'] = (double) $value;
}
/**