- <input name="AR" type="checkbox" class="checkbox" value="AR" [% HTML.escape(AR) %]>
- [% 'AR' | $T8 %]
- <input name="AP" type="checkbox" class="checkbox" value="AP" [% HTML.escape(AP) %]>
- [% 'AP' | $T8 %]
- <input name="IC" type="checkbox" class="checkbox" value="IC" [% HTML.escape(IC) %]>
- [% '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 %]
+ [% IF AP %] [% L.hidden_tag('AP', 'AP') %] [% END %]
+ [% IF IC %] [% L.hidden_tag('IC', 'IC') %] [% END %]
+[% END %]
+