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