Fix for P&L report

This commit is contained in:
Hillel Coren 2018-03-21 18:11:00 +02:00
parent 2c59c766aa
commit 164d466369

View File

@ -82,9 +82,9 @@ class ProfitAndLossReport extends AbstractReport
if ($subgroup == 'type') { if ($subgroup == 'type') {
$dimension = trans('texts.expense'); $dimension = trans('texts.expense');
} else { } else {
$dimension = $this->getDimension($payment); $dimension = $this->getDimension($expense);
} }
$this->addChartData($dimension, $payment->expense_date, $expense->amountWithTax()); $this->addChartData($dimension, $expense->expense_date, $expense->amountWithTax());
} }
//$this->addToTotals($client->currency_id, 'paid', $payment ? $payment->getCompletedAmount() : 0); //$this->addToTotals($client->currency_id, 'paid', $payment ? $payment->getCompletedAmount() : 0);