Some bread crumbs and stuff [skip ci]

This commit is contained in:
James Cole 2017-11-24 23:14:27 +01:00
parent 378b4abaf1
commit f2cf0ed446
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
3 changed files with 13 additions and 0 deletions

View File

@ -871,6 +871,16 @@ Breadcrumbs::register(
$breadcrumbs->push(trans('breadcrumbs.edit_journal', ['description' => $journal->description]), route('transactions.edit', [$journal->id]));
}
);
// also edit reconciliations:
Breadcrumbs::register(
'accounts.reconcile.edit',
function (BreadCrumbGenerator $breadcrumbs, TransactionJournal $journal) {
$breadcrumbs->parent('transactions.show', $journal);
$breadcrumbs->push(trans('breadcrumbs.edit_reconciliation', ['description' => $journal->description]), route('accounts.reconcile.edit', [$journal->id]));
}
);
Breadcrumbs::register(
'transactions.delete',
function (BreadCrumbGenerator $breadcrumbs, TransactionJournal $journal) {

View File

@ -31,10 +31,12 @@ return [
'deposit_list' => 'Revenue, income and deposits',
'transfer_list' => 'Transfers',
'transfers_list' => 'Transfers',
'reconciliation_list' => 'Reconciliations',
'create_withdrawal' => 'Create new withdrawal',
'create_deposit' => 'Create new deposit',
'create_transfer' => 'Create new transfer',
'edit_journal' => 'Edit transaction ":description"',
'edit_reconciliation' => 'Edit ":description"',
'delete_journal' => 'Delete transaction ":description"',
'tags' => 'Tags',
'createTag' => 'Create new tag',

View File

@ -621,6 +621,7 @@ return [
'cash_accounts' => 'Cash accounts',
'Cash account' => 'Cash account',
'reconcile_account' => 'Reconcile account ":account"',
'delete_reconciliation' => 'Delete reconciliation',
'update_reconciliation' => 'Update reconciliation',
'amount_cannot_be_zero' => 'The amount cannot be zero',
'end_of_reconcile_period' => 'End of reconcile period: :period',