close #1963 Fixed: Invoice different currency paid. wrong calculate paid amount

This commit is contained in:
Cüneyt Şentürk 2021-04-01 12:03:12 +03:00
parent e62504a546
commit cc33df2fe2

View File

@ -269,7 +269,7 @@ class Document extends Model
$reconciled = $reconciled_amount = 0;
$code = $this->currency_code;
$rate = config('money.' . $code . '.rate');
$rate = $this->currency_rate;
$precision = config('money.' . $code . '.precision');
if ($this->transactions->count()) {