Add option to create a financial_link when creating financial_transaction
If multiple financial transaction belong to a bank transaction, it is sometimes easier to create them as a collection and add the bank transaction instead of adding all financial transaction to a link created via a bank transaction.
This commit is contained in:
parent
ef613300e0
commit
260ef90f6b
4 changed files with 28 additions and 11 deletions
|
|
@ -56,6 +56,11 @@
|
|||
%p
|
||||
= link_to t('.new_ordergroup'), '#', 'data-add-transaction' => true, class: 'btn'
|
||||
= link_to t('.add_all_ordergroups'), '#', 'data-add-all-ordergroups' => true, class: 'btn'
|
||||
- if BankAccount.any?
|
||||
%p
|
||||
%label
|
||||
= check_box_tag :create_financial_link, true, params[:create_financial_link]
|
||||
= t('.create_financial_link')
|
||||
.form-actions
|
||||
= submit_tag t('.save'), class: 'btn btn-primary'
|
||||
= link_to t('ui.or_cancel'), finance_ordergroups_path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue