updated money
package to 5.0 version
This commit is contained in:
@ -319,7 +319,7 @@ class Transaction extends Model
|
||||
// Convert amount if not same currency
|
||||
if ($this->account->currency_code != $this->currency_code) {
|
||||
$to_code = $this->account->currency_code;
|
||||
$to_rate = config('money.' . $this->account->currency_code . '.rate');
|
||||
$to_rate = config('money.currencies.' . $this->account->currency_code . '.rate');
|
||||
|
||||
$amount = $this->convertBetween($amount, $this->currency_code, $this->currency_rate, $to_code, $to_rate);
|
||||
}
|
||||
|
Reference in New Issue
Block a user