From e114794f3a30e5341c04c9aaa7b90e00b197790e Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 5 Feb 2017 23:51:34 +0200 Subject: [PATCH] Fix for profit and loss report --- app/Ninja/Reports/ProfitAndLossReport.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Ninja/Reports/ProfitAndLossReport.php b/app/Ninja/Reports/ProfitAndLossReport.php index d1108bf90a51..d4bddd69fb95 100644 --- a/app/Ninja/Reports/ProfitAndLossReport.php +++ b/app/Ninja/Reports/ProfitAndLossReport.php @@ -55,9 +55,9 @@ class ProfitAndLossReport extends AbstractReport $expense->present()->category, ]; - $this->addToTotals($client->currency_id, 'revenue', 0, $expense->present()->month); - $this->addToTotals($client->currency_id, 'expenses', $expense->amount, $expense->present()->month); - $this->addToTotals($client->currency_id, 'profit', $expense->amount * -1, $expense->present()->month); + $this->addToTotals($expense->expense_currency_id, 'revenue', 0, $expense->present()->month); + $this->addToTotals($expense->expense_currency_id, 'expenses', $expense->amount, $expense->present()->month); + $this->addToTotals($expense->expense_currency_id, 'profit', $expense->amount * -1, $expense->present()->month); }