First code for liabilities and some tests.

This commit is contained in:
James Cole
2018-08-03 16:35:55 +02:00
parent ae85876965
commit 2290fcde22
10 changed files with 282 additions and 54 deletions

View File

@@ -700,6 +700,7 @@ return [
'revenue_accounts' => 'Revenue accounts',
'cash_accounts' => 'Cash accounts',
'Cash account' => 'Cash account',
'liabilities_accounts' => 'Liabilities',
'reconcile_account' => 'Reconcile account ":account"',
'overview_of_reconcile_modal' => 'Overview of reconciliation',
'delete_reconciliation' => 'Delete reconciliation',
@@ -1187,6 +1188,10 @@ return [
'no_accounts_intro_revenue' => 'You have no revenue accounts yet. Revenue accounts are the places where you receive money from, such as your employer.',
'no_accounts_imperative_revenue' => 'Revenue accounts are created automatically when you create transactions, but you can create one manually too, if you want. Let\'s create one now:',
'no_accounts_create_revenue' => 'Create a revenue account',
'no_accounts_title_liabilities' => 'Let\'s create a liability!',
'no_accounts_intro_liabilities' => 'You have no liabilities yet. Liabilities are the accounts that register your credit card(s), (student) loans and other debts.',
'no_accounts_imperative_liabilities' => 'You don\'t have to use this feature, but it can be useful if you want to keep track of these things.',
'no_accounts_create_liabilities' => 'Create a liability',
'no_budgets_title_default' => 'Let\'s create a budget',
'no_budgets_intro_default' => 'You have no budgets yet. Budgets are used to organise your expenses into logical groups, which you can give a soft-cap to limit your expenses.',
'no_budgets_imperative_default' => 'Budgets are the basic tools of financial management. Let\'s create one now:',

View File

@@ -27,6 +27,11 @@
<i class="fa fa-download fa-fw"></i> {{ 'revenue_accounts'|_ }}
</a>
</li>
<li class="{{ activeRoutePartialWhat('accounts', 'liabilities') }}">
<a href="{{ route('accounts.index','liabilities') }}">
<i class="fa fa-ticket fa-fw"></i> {{ 'liabilities_accounts'|_ }}
</a>
</li>
</ul>
</li>
<li class="{{ activeRoutePartial('budgets') }}" id="budget-menu">