From e4dde11156ea414571ce7002bc75ae0696384c27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Duli=C3=A7i?= Date: Mon, 24 Oct 2022 23:27:00 +0300 Subject: [PATCH] removed redundant method --- app/Abstracts/Report.php | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/app/Abstracts/Report.php b/app/Abstracts/Report.php index 94b27db1f..9fafb8340 100644 --- a/app/Abstracts/Report.php +++ b/app/Abstracts/Report.php @@ -162,27 +162,6 @@ abstract class Report 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) { return [