updated category structure of reports
This commit is contained in:
@@ -9,8 +9,6 @@ use App\Utilities\Recurring;
|
||||
|
||||
class ExpenseSummary extends Report
|
||||
{
|
||||
public $category = 'income-expense';
|
||||
|
||||
public $icon = 'fa fa-shopping-cart';
|
||||
|
||||
public $chart = [
|
||||
@@ -28,11 +26,16 @@ class ExpenseSummary extends Report
|
||||
],
|
||||
];
|
||||
|
||||
public function getName()
|
||||
public function getDefaultName()
|
||||
{
|
||||
return trans('reports.summary.expense');
|
||||
}
|
||||
|
||||
public function getCategory()
|
||||
{
|
||||
return trans('reports.income_expense');
|
||||
}
|
||||
|
||||
public function getTotals()
|
||||
{
|
||||
$payments = $this->applyFilters(Transaction::type('expense')->isNotTransfer(), ['date_field' => 'paid_at'])->get();
|
||||
|
||||
@@ -10,15 +10,18 @@ use App\Utilities\Recurring;
|
||||
|
||||
class IncomeExpenseSummary extends Report
|
||||
{
|
||||
public $category = 'income-expense';
|
||||
|
||||
public $icon = 'fa fa-chart-pie';
|
||||
|
||||
public function getName()
|
||||
public function getDefaultName()
|
||||
{
|
||||
return trans('reports.summary.income_expense');
|
||||
}
|
||||
|
||||
public function getCategory()
|
||||
{
|
||||
return trans('reports.income_expense');
|
||||
}
|
||||
|
||||
public function getTotals()
|
||||
{
|
||||
$income_transactions = $this->applyFilters(Transaction::type('income')->isNotTransfer(), ['date_field' => 'paid_at'])->get();
|
||||
|
||||
@@ -9,8 +9,6 @@ use App\Utilities\Recurring;
|
||||
|
||||
class IncomeSummary extends Report
|
||||
{
|
||||
public $category = 'income-expense';
|
||||
|
||||
public $icon = 'fa fa-money-bill';
|
||||
|
||||
public $chart = [
|
||||
@@ -28,11 +26,16 @@ class IncomeSummary extends Report
|
||||
],
|
||||
];
|
||||
|
||||
public function getName()
|
||||
public function getDefaultName()
|
||||
{
|
||||
return trans('reports.summary.income');
|
||||
}
|
||||
|
||||
public function getCategory()
|
||||
{
|
||||
return trans('reports.income_expense');
|
||||
}
|
||||
|
||||
public function getTotals()
|
||||
{
|
||||
$transactions = $this->applyFilters(Transaction::type('income')->isNotTransfer(), ['date_field' => 'paid_at'])->get();
|
||||
|
||||
@@ -11,17 +11,20 @@ use App\Utilities\Recurring;
|
||||
|
||||
class ProfitLoss extends Report
|
||||
{
|
||||
public $category = 'accounting';
|
||||
|
||||
public $icon = 'fa fa-heart';
|
||||
|
||||
public $chart = false;
|
||||
|
||||
public function getName()
|
||||
public function getDefaultName()
|
||||
{
|
||||
return trans('reports.profit_loss');
|
||||
}
|
||||
|
||||
public function getCategory()
|
||||
{
|
||||
return trans('general.accounting');
|
||||
}
|
||||
|
||||
public function setViews()
|
||||
{
|
||||
parent::setViews();
|
||||
|
||||
@@ -15,17 +15,20 @@ class TaxSummary extends Report
|
||||
{
|
||||
use Currencies;
|
||||
|
||||
public $category = 'accounting';
|
||||
|
||||
public $icon = 'fa fa-percent';
|
||||
|
||||
public $chart = false;
|
||||
|
||||
public function getName()
|
||||
public function getDefaultName()
|
||||
{
|
||||
return trans('reports.summary.tax');
|
||||
}
|
||||
|
||||
public function getCategory()
|
||||
{
|
||||
return trans('general.accounting');
|
||||
}
|
||||
|
||||
public function setViews()
|
||||
{
|
||||
parent::setViews();
|
||||
|
||||
Reference in New Issue
Block a user