formatting
This commit is contained in:
parent
61670c1f2d
commit
9f563cb659
@ -45,7 +45,7 @@ class Transactions extends Controller
|
||||
];
|
||||
|
||||
$transactions->each(function ($transaction) use (&$totals) {
|
||||
if (($transaction->isNotIncome() && $transaction->isNotExpense()) || $transaction->isTransfer()) {
|
||||
if (($transaction->isNotIncome() && $transaction->isNotExpense()) || $transaction->isTransferTransaction()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -45,14 +45,14 @@ trait Transactions
|
||||
return ! $this->isRecurring();
|
||||
}
|
||||
|
||||
public function isTransfer(): bool
|
||||
public function isTransferTransaction(): bool
|
||||
{
|
||||
$category_id = $this->category_id ?? $this->transaction->category_id ?? $this->model->category_id ?? 0;
|
||||
|
||||
return $category_id == Category::transfer();
|
||||
}
|
||||
|
||||
public function isNotTransfer(): bool
|
||||
public function isNotTransferTransaction(): bool
|
||||
{
|
||||
return ! $this->isTransfer();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user