[%- USE LxERP -%][%- USE L -%][%- USE HTML -%] [% SET style="width: 400px" %]
[% IF SELF.defaults.feature_ustva %] [% ELSE %] [% END %] [% FOREACH currency = SELF.all_currencies %] [% END %] [% IF SELF.all_weightunits.size %] [% END %]
[% LxERP.t8("Company name and address") %]
[% LxERP.t8("Company name") %] [% L.input_tag('defaults.company', SELF.defaults.company, style=style) %]
[% LxERP.t8("Street 1") %] [% L.input_tag('defaults.address_street1', SELF.defaults.address_street1, style=style) %]
[% LxERP.t8("Street 2") %] [% L.input_tag('defaults.address_street2', SELF.defaults.address_street2, style=style) %]
[% LxERP.t8("Zipcode and city") %] [% L.input_tag('defaults.address_zipcode', SELF.defaults.address_zipcode, size=8) %] [% L.input_tag('defaults.address_city', SELF.defaults.address_city, size=30) %]
[% LxERP.t8("Country") %] [% L.input_tag('defaults.address_country', SELF.defaults.address_country, style=style) %]
[% LxERP.t8("Company settings") %]
[% LxERP.t8("Signature") %] [% L.textarea_tag('defaults.signature', SELF.defaults.signature, style=style, rows=4) %]
[% LxERP.t8("Tax number") %][% SELF.defaults.taxnumber %]  ([% LxERP.t8("For changeing goto USTVA Config") %])[% L.input_tag('defaults.taxnumber', SELF.defaults.taxnumber, style=style) %]
[% LxERP.t8("Tax ID number") %] [% L.input_tag('defaults.co_ustid', SELF.defaults.co_ustid, style=style) %]
[% LxERP.t8("SEPA creditor ID") %] [% L.input_tag('defaults.sepa_creditor_id', SELF.defaults.sepa_creditor_id, style=style) %]
[% LxERP.t8("Business Number") %] [% L.input_tag('defaults.businessnumber', SELF.defaults.businessnumber, style=style) %]
[% LxERP.t8("DUNS number") %] [% L.input_tag('defaults.duns', SELF.defaults.duns, style=style) %]
[% LxERP.t8("Language settings") %]
[% LxERP.t8('Default Customer/Vendor Language') %] [% L.select_tag('defaults.language_id', SELF.all_languages, title_key='description', default=SELF.defaults.language_id, with_empty=1, style=style) %]
[% LxERP.t8("Print templates") %]
[% LxERP.t8("Print templates to use") %]
[% L.radio_button_tag('use_templates', value='existing', id='use_templates_existing', label=LxERP.t8('Use existing templates'), checked=(FORM.use_templates == 'existing')) %] [% L.select_tag('defaults.templates', SELF.all_templates.print_templates, default=SELF.defaults.templates, value_sub=\make_templates_value, style=style) %]
[% L.radio_button_tag('use_templates', value='new', id='use_templates_new', label=LxERP.t8('Create new templates from master templates'), checked=(FORM.use_templates == 'new')) %] [% L.select_tag('new_master_templates', SELF.all_templates.master_templates, default=FORM.new_master_templates, style=style) %]
[% LxERP.t8("New name") %] [% L.input_tag('new_templates', FORM.new_templates, style=style) %]
[% LxERP.t8("Currencies") %]
[% LxERP.t8("Currency name") %] [% LxERP.t8("Default currency") %] [% LxERP.t8("Hints") %]
[% L.hidden_tag("currencies[+].id", currency.id) %] [% IF loop.count == 1 %][% LxERP.t8("Currencies") %][% END %] [% L.input_tag("currencies[].name", currency.name, style=style) %] [% L.radio_button_tag('defaults.currency_id', value=currency.id, id='defaults.currency_id_' _ currency.id, checked=(SELF.defaults.currency_id == currency.id)) %] [% IF loop.count == 1 %][% LxERP.t8("Edit the currency names in order to rename them.") %][%- END %]
[% LxERP.t8("Add new currency") %] [% L.input_tag("new_currency", FORM.new_currency, style=style) %] [% L.radio_button_tag('defaults.currency_id', value=-1, id='defaults.currency_id__1', checked=(SELF.defaults.currency_id == -1)) %]
[% LxERP.t8("Weight") %]
[% LxERP.t8("Weight unit") %] [% L.select_tag('defaults.weightunit', SELF.all_weightunits, default=SELF.defaults.weightunit, value_key='name', title_key='name', style=style) %]
[% LxERP.t8('Show weights') %] [% L.yes_no_tag('defaults.show_weight', SELF.defaults.show_weight, style=style) %] [% LxERP.t8('Show the weights of articles and the total weight in orders, invoices and delivery notes?') %]