# connect to database, turn off AutoCommit
my $dbh = $form->dbconnect_noauto($myconfig);
- for (qw(AR_include_in_dropdown AP_include_in_dropdown)) {
+ for (qw(AR_include_in_dropdown AP_include_in_dropdown summary_account)) {
$form->{$form->{$_}} = $form->{$_} if $form->{$_};
}
'No problems were recognized.' => 'Es wurden keine Probleme gefunden.',
'No report with id #1' => 'Es gibt keinen Report mit der Id #1',
'No shipto selected to delete' => 'Keine Lieferadresse zum Löschen ausgewählt',
+ 'No summary account' => 'Kein Sammelkonto',
'No transaction selected!' => 'Keine Transaktion ausgewählt',
'No transfers were executed in this export.' => 'In diesem SEPA-Export wurden keine Überweisungen ausgeführt.',
'No unknown units where found.' => 'Es wurden keine unbekannten Einheiten gefunden.',
[% 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 %]