From cc33df2fe2610b3e0f447dea6f5726edb5dafa65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Thu, 1 Apr 2021 12:03:12 +0300 Subject: [PATCH] close #1963 Fixed: Invoice different currency paid. wrong calculate paid amount --- app/Models/Document/Document.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Document/Document.php b/app/Models/Document/Document.php index 6969acbf0..f103427ec 100644 --- a/app/Models/Document/Document.php +++ b/app/Models/Document/Document.php @@ -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()) {