diff --git a/app/Models/Common/Contact.php b/app/Models/Common/Contact.php index 8ab041a8f..6506a98b0 100644 --- a/app/Models/Common/Contact.php +++ b/app/Models/Common/Contact.php @@ -137,7 +137,7 @@ class Contact extends Model $this->$collection()->accrued()->notPaid()->each(function ($item) use (&$amount) { $unpaid = $item->amount - $item->paid; - $amount += $this->convertFromDefault($unpaid, $item->currency_code, $item->currency_rate); + $amount += $this->convertToDefault($unpaid, $item->currency_code, $item->currency_rate); }); return $amount;