mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for profit and loss report
This commit is contained in:
parent
459d662e76
commit
e114794f3a
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user