[%- USE T8 %]
[%- USE L %]
-[% USE HTML %]<script type="text/javascript" src="js/FormManager.js" >
+[% USE HTML %]
+<h1>[% title %]</h1>
+
+<script type="text/javascript" src="js/FormManager.js" >
/****************************************************
* Form Dependency Manager- By Twey- http://www.twey.co.uk
* Visit Dynamic Drive for this script and more: http://www.dynamicdrive.com
<input type="hidden" name="expense_accno_id" value="[% HTML.escape(expense_accno_id) %]">
<input type="hidden" name="fxgain_accno_id" value="[% HTML.escape(fxgain_accno_id) %]">
<input type="hidden" name="fxloss_accno_id" value="[% HTML.escape(fxloss_accno_id) %]">
-
-<table border="0" width="100%">
- <tr>
- <th class="listtop">[% title %]</th>
- </tr>
-</table>
+<input type="hidden" name="rndgain_accno_id" value="[% HTML.escape(rndgain_accno_id) %]">
+<input type="hidden" name="rndloss_accno_id" value="[% HTML.escape(rndloss_accno_id) %]">
<fieldset>
<legend>
<label>
[% 'Account Number' | $T8 %]
</label></td>
- <td><input name="accno" size="20" value="[% HTML.escape(accno) %]"></td>
+ <td><input id="accno" name="accno" size="20" value="[% HTML.escape(accno) %]"></td>
</tr>
<tr>
<td>
[% 'Description' | $T8 %]
</label>
</td>
- <td><input name="description" size="40" value="[% HTML.escape(description) %]"></td>
+ <td><input id="description" name="description" size="40" value="[% HTML.escape(description) %]"></td>
</tr>
<tr>
<td>
<legend>[% 'Include in drop-down menus' | $T8 %]</legend>
<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 %]
- [% '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>
+ [% 'The changing of tax-o-matic account is NOT recommended, but if you do so please also (re)configure booking groups and reconfigure ALL charts which point to this tax-o-matic account. ' | $T8 %]</p>
<table width="100%">
<tr>
<th align="left">[% 'Receivables' | $T8 %]</th>
<th align="left">[% 'EUER' | $T8 %]</th>
<td colspan="3"><select name="pos_eur">[% select_eur %]</select></td>
</tr>
+ <tr>
+ <th align="left">[% 'Erfolgsrechnung' | $T8 %]</th>
+ <td colspan="3"><select name="pos_er">[% select_er %]</select></td>
+ </tr>
<tr>
<th align="left">[% 'BWA' | $T8 %]</th>
<td colspan="3"><select name="pos_bwa">[% select_bwa %]</select></td>
[% END %]
</fieldset>
<hr size="3" noshade>
+
+[% IF ( id ) %]
+ <script type="text/javascript">
+ function callback_save() {
+ var prev_desc = "[% description | html %]";
+ var prev_accno = "[% accno | html %]";
+ var cur_desc = $("#description").val();
+ var cur_accno = $("#accno").val();
+
+ if ( prev_desc != cur_desc || prev_accno != cur_accno )
+ return confirm(kivi.t8("Do you want to set the account number \"#1\" to \"#2\" and the name \"#3\" to \"#4\"?", [prev_accno, cur_accno, prev_desc, cur_desc]));
+ else
+ return true;
+ }
+ </script>
+[% END %]