Rebuild frontend.

This commit is contained in:
James Cole
2021-04-03 10:40:31 +02:00
parent 7f55a870d9
commit 34f4b16a63
70 changed files with 266 additions and 43 deletions

View File

@@ -396,10 +396,11 @@ class BudgetRepository implements BudgetRepositoryInterface
{
Log::debug('Now in update()');
// TODO update rules
$oldName = $budget->name;
if (array_key_exists('name', $data)) {
$budget->name = $data['name'];
$this->updateRuleActions($oldName, $budget->name);
$this->updateRuleTriggers($oldName, $budget->name);
}
if (array_key_exists('active', $data)) {
$budget->active = $data['active'];

View File

@@ -320,18 +320,4 @@ class AccountUpdateService
}
Log::debug('Account was not marked as inactive, do nothing.');
}
/**
* @param string $type
*
* @return bool
*/
private function isLiabilityType(string $type): bool
{
if ('' === $type) {
return false;
}
return 1 === AccountType::whereIn('type', [AccountType::DEBT, AccountType::LOAN, AccountType::MORTGAGE])->where('type', ucfirst($type))->count();
}
}