Skip to content

Commit

Permalink
close #1963 Fixed: Invoice different currency paid. wrong calculate p…
Browse files Browse the repository at this point in the history
…aid amount
  • Loading branch information
cuneytsenturk committed Apr 1, 2021
1 parent e62504a commit cc33df2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Document/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public function getPaidAttribute()
$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()) {
Expand Down

0 comments on commit cc33df2

Please sign in to comment.