removed redundant method
This commit is contained in:
parent
af79ea4f72
commit
e4dde11156
@ -162,27 +162,6 @@ abstract class Report
|
|||||||
return $this->icon;
|
return $this->icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getGrandTotal()
|
|
||||||
{
|
|
||||||
if (!$this->loaded) {
|
|
||||||
$this->load();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!empty($this->footer_totals)) {
|
|
||||||
$sum = 0;
|
|
||||||
|
|
||||||
foreach ($this->footer_totals as $total) {
|
|
||||||
$sum += is_array($total) ? array_sum($total) : $total;
|
|
||||||
}
|
|
||||||
|
|
||||||
$total = $this->has_money ? money($sum, default_currency(), true)->format() : $sum;
|
|
||||||
} else {
|
|
||||||
$total = trans('general.na');
|
|
||||||
}
|
|
||||||
|
|
||||||
return $total;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getCharts($table_key)
|
public function getCharts($table_key)
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user