added events to manipulate report data

This commit is contained in:
Denis Duliçi
2020-07-02 01:55:45 +03:00
parent a96d6f22bc
commit d22a3e2001
5 changed files with 68 additions and 12 deletions

View File

@@ -72,17 +72,6 @@ class ProfitLoss extends Report
break;
}
// TODO: move to views
foreach ($this->footer_totals as $table => $dates) {
foreach ($dates as $date => $total) {
if (!isset($this->net_profit[$date])) {
$this->net_profit[$date] = 0;
}
$this->net_profit[$date] += $total;
}
}
}
public function getFields()