</script>
<script type="text/javascript">
-window.onload = function() {
+$(function() {
setupDependencies('EditAccount'); //name of form(s). Seperate each with a comma (ie: 'weboptions', 'myotherform' )
- };
+});
</script>
-<body>
<form method="post" name="EditAccount" action="am.pl">
<input type="hidden" name="id" value="[% HTML.escape(id) %]">
<td>
[% IF AccountIsPosted %]
[% L.select_tag('dummy_charttype',
- L.options_for_select(all_charttypes,
- title => 'name', value => 'value',
- default => selected_charttype),
+ all_charttypes,
+ title_key => 'name',
+ value_key => 'value',
+ default => selected_charttype,
disabled => '1') %]
[% L.hidden_tag('charttype', selected_charttype) %]
[% ELSE %]
[% L.select_tag('charttype',
- L.options_for_select(all_charttypes,
- title => 'name', value => 'value',
- default => selected_charttype)) %]
+ all_charttypes,
+ title_key => 'name',
+ value_key => 'value',
+ default => selected_charttype) %]
[% END %]
</td>
</tr>
[% IF ChartTypeIsAccount %]
<fieldset class="DEPENDS ON charttype BEING A">
<legend>[% 'Is this a summary account to record' | $T8 %]</legend>
- <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.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 %]
+
+[% 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 %]
+
</fieldset>
[% IF AccountIsPosted %]
[% END %]
<fieldset class="DEPENDS ON charttype BEING A">
<legend>[% 'Include in drop-down menus' | $T8 %]</legend>
- <p style='font-weight:normal'>[% 'These will only be effective if the account is NOT a summary account AND there exists at least one taxkey. Setting the account as a summary account will erase these settings.' | $T8 %]</p>
+ <p style='font-weight:normal'>[% 'Changes in this block are only sensible if the account is NOT a summary account AND there exists one valid taxkey. To select both Receivables and Payables only make sense for Payment / Receipt (i.e. account cash).' | $T8 %]</p>
<p style='font-weight:normal'>[% 'Changes to Receivables and Payables are only possible if no transactions to this account are posted yet.' | $T8 %]
- [% 'And if the account does not act as tax-o-matic account.' | $T8 %]</p>
+ [% 'The changing of tax-o-matic account is NOT recommended, but if you do so please also (re)configure buchungsgruppen and reconfigure ALL charts which point to this tax-o-matic account. ' | $T8 %]</p>
<table width="100%">
<tr>
<th align="left">[% 'Receivables' | $T8 %]</th>
</tr -->
<tr>
<th align="left">[% 'Datevautomatik' | $T8 %]</th>
- <td colspan="3"><input name="datevautomatik" type="checkbox" class="checkbox" value="T" [% IF datevautomatik %]checked [% END %]></td>
+ <td colspan="3"><input name="datevautomatik" type="checkbox" class="checkbox" value="T" [% IF datevautomatik %]checked [% END %]>[% 'If checked the taxkey will not be exported in the DATEV Export, but only IF chart taxkeys differ from general ledger taxkeys' | $T8 %] </td>
</tr>
<tr>
<th align="left">[% 'Folgekonto' | $T8 %]</th>