mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Fix for profit and loss report
This commit is contained in:
parent
ce49bf30dd
commit
9aeacb0d15
@ -54,9 +54,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);
|
||||
}
|
||||
|
||||
//$this->addToTotals($client->currency_id, 'paid', $payment ? $payment->getCompletedAmount() : 0);
|
||||
|
Loading…
Reference in New Issue
Block a user