-
Notifications
You must be signed in to change notification settings - Fork 157
/
_form.html.haml
13 lines (12 loc) · 1.07 KB
/
_form.html.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
= field_set do
= f.input :active
= f.input :country
= f.input :amount, as: :string, input_html: { pattern: "[0-9]+([\.][0-9]+)?" }
= f.input :name
= f.input :nature
= f.referenced_association :collect_account, source: { scope: :collected_vat}, new: { number: Account.find_or_import_from_nomenclature(:collected_vat).number }
= f.referenced_association :deduction_account, source: { scope: :deductible_vat }, new: { number: Account.find_or_import_from_nomenclature(:deductible_vat).number }
= f.referenced_association :fixed_asset_collect_account, source: { scope: { of_usage: :collected_vat }}, new: { number: Account.find_or_import_from_nomenclature(:collected_vat).number }
= f.referenced_association :fixed_asset_deduction_account, source: { scope: { of_usage: :deductible_asset_vat }}, new: { number: Account.find_or_import_from_nomenclature(:deductible_asset_vat).number }
= f.input :intracommunity
= f.referenced_association :intracommunity_payable_account, source: { scope: { of_usage: :vat }}, new: { number: Account.find_or_import_from_nomenclature(:vat).number }