close #446 Fixed: Wrong transfer amount EUR to TRY currency rate issue

This commit is contained in:
cuneytsenturk
2018-08-07 19:58:24 +03:00
parent 62beb11051
commit 31c21aebd7
3 changed files with 53 additions and 2 deletions

View File

@ -49,4 +49,14 @@ class Transfer extends Model
{
return $this->dynamicConvert($this->default_currency_code, $this->amount, $this->currency_code, $this->currency_rate, $format);
}
public function getReverseConvertedAmount($format = false)
{
return $this->reverseConvert($this->amount, $this->currency_code, $this->currency_rate, $format);
}
public function getDivideConvertedAmount($format = false)
{
return $this->divide($this->amount, $this->currency_code, $this->currency_rate, $format);
}
}