[% IF ChartTypeIsAccount %]
<fieldset class="DEPENDS ON charttype BEING A">
<legend>[% 'Is this a summary account to record' | $T8 %]</legend>
- [% L.checkbox_tag('AR', value => 'AR', checked => AR, class => 'checkbox', disabled => AccountIsPosted) %] [% 'AR' | $T8 %]
- [% L.checkbox_tag('AP', value => 'AP', checked => AP, class => 'checkbox', disabled => AccountIsPosted) %] [% 'AP' | $T8 %]
- [% L.checkbox_tag('IC', value => 'IC', checked => IC, class => 'checkbox', disabled => AccountIsPosted) %] [% 'Inventory' | $T8 %]
+ [% L.radio_button_tag('summary_account',
+ value => 'AR',
+ disabled => AccountIsPosted,
+ checked => AR) %]
+ [% 'AR' | $T8 %]
+ [% L.radio_button_tag('summary_account',
+ value => 'AP',
+ disabled => AccountIsPosted,
+ checked => AP) %]
+ [% 'AP' | $T8 %]
+ [% L.radio_button_tag('summary_account',
+ value => 'IC',
+ disabled => AccountIsPosted,
+ checked => IC) %]
+ [% 'Inventory' | $T8 %]
+ [% L.radio_button_tag('summary_account',
+ value => '',
+ disabled => AccountIsPosted) %]
+ [% 'No summary account' | $T8 %]
[% IF AccountIsPosted %]
[% IF AR %] [% L.hidden_tag('AR', 'AR') %] [% END %]
[% ELSE %]
<input type="hidden" name="taxkey_id_[% tk.runningnumber %]" value="NEW">
<td><select name="taxkey_tax_[% tk.runningnumber %]">[% tk.selecttaxkey %]</select></td>
- [% IF account_exists %]
<td><input name="taxkey_startdate_[% tk.runningnumber %]" value="[% HTML.escape(tk.startdate) %]"></td>
- [% ELSE %]
- <td><input name="taxkey_startdate_[% tk.runningnumber %]" value="01.01.1970"></td>
- [% END %]
<td><select name="taxkey_pos_ustva_[% tk.runningnumber %]">[% tk.select_tax %]</select></td>
<td> </td>
[% END %]