3 [% USE HTML %]<script type="text/javascript" src="js/FormManager.js" >
4 /****************************************************
5 * Form Dependency Manager- By Twey- http://www.twey.co.uk
6 * Visit Dynamic Drive for this script and more: http://www.dynamicdrive.com
7 ****************************************************/
10 <script type="text/javascript">
11 window.onload = function() {
12 setupDependencies('EditAccount'); //name of form(s). Seperate each with a comma (ie: 'weboptions', 'myotherform' )
17 <form method="post" name="EditAccount" action="am.pl">
19 <input type="hidden" name="id" value="[% HTML.escape(id) %]">
20 <input type="hidden" name="type" value="account">
21 <input type="hidden" name="orphaned" value="[% HTML.escape(orphaned) %]">
22 <input type="hidden" name="new_chart_valid" value="[% HTML.escape(new_chart_valid) %]">
23 <input type="hidden" name="original_accno" value="[% HTML.escape(accno) %]">
24 <input type="hidden" name="inventory_accno_id" value="[% HTML.escape(inventory_accno_id) %]">
25 <input type="hidden" name="income_accno_id" value="[% HTML.escape(income_accno_id) %]">
26 <input type="hidden" name="expense_accno_id" value="[% HTML.escape(expense_accno_id) %]">
27 <input type="hidden" name="fxgain_accno_id" value="[% HTML.escape(fxgain_accno_id) %]">
28 <input type="hidden" name="fxloss_accno_id" value="[% HTML.escape(fxloss_accno_id) %]">
30 <table border="0" width="100%">
32 <th class="listtop">[% title %]</th>
38 [% 'Main Preferences' | $T8 %]
44 [% 'Account Number' | $T8 %]
46 <td><input name="accno" size="20" value="[% HTML.escape(accno) %]"></td>
51 [% 'Description' | $T8 %]
54 <td><input name="description" size="40" value="[% HTML.escape(description) %]"></td>
59 [% 'Chart Type' | $T8 %]
63 <td><select name="charttype">[% select_charttype %]</select></td>
67 <fieldset class="DEPENDS ON charttype BEING A">
68 <legend>[% 'Account Type' | $T8 %]</legend>
69 <select name="category" id="AccountType" class="DEPENDS ON charttype BEING A">
70 [% select_category %]</select>
73 [% IF ChartTypeIsAccount %]
74 <fieldset class="DEPENDS ON charttype BEING A">
75 <legend>[% 'Is this a summary account to record' | $T8 %]</legend>
76 <input name="AR" type="checkbox" class="checkbox" value="AR" [% HTML.escape(AR) %]>
77 [% 'AR' | $T8 %]
78 <input name="AP" type="checkbox" class="checkbox" value="AP" [% HTML.escape(AP) %]>
79 [% 'AP' | $T8 %]
80 <input name="IC" type="checkbox" class="checkbox" value="IC" [% HTML.escape(IC) %]>
81 [% 'Inventory' | $T8 %]
84 [% IF AccountIsPosted %]
85 [% IF AR_amount %] [% L.hidden_tag('AR_amount', 'AR_amount') %] [% END %]
86 [% IF AR_paid %] [% L.hidden_tag('AR_paid', 'AR_paid') %] [% END %]
87 [% IF AR_tax %] [% L.hidden_tag('AR_tax', 'AR_tax') %] [% END %]
88 [% IF AP_amount %] [% L.hidden_tag('AP_amount', 'AP_amount') %] [% END %]
89 [% IF AP_paid %] [% L.hidden_tag('AP_paid', 'AP_paid') %] [% END %]
90 [% IF AP_tax %] [% L.hidden_tag('AP_tax', 'AP_tax') %] [% END %]
91 [%- SET DIS = ' disabled="disabled"' %]
93 <fieldset class="DEPENDS ON charttype BEING A">
94 <legend>[% 'Include in drop-down menus' | $T8 %]</legend>
95 <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>
96 <p style='font-weight:normal'>[% 'Changes to Receivables and Payables are only possible if no transactions to this account are posted yet.' | $T8 %]
97 [% 'And if the account does not act as tax-o-matic account.' | $T8 %]</p>
100 <th align="left">[% 'Receivables' | $T8 %]</th>
101 <th align="left">[% 'Payables' | $T8 %]</th>
102 <th align="left">[% 'Parts Inventory' | $T8 %]</th>
103 <th align="left">[% 'Service Items' | $T8 %]</th>
107 <input name="AR_amount" type="checkbox" class="checkbox" value="AR_amount"
108 [% HTML.escape(AR_amount)%][% DIS %]>
109 [% 'Revenue' | $T8 %] <br>
110 <input name="AR_paid" type="checkbox" class="checkbox" value="AR_paid"
111 [% HTML.escape(AR_paid) %][% DIS %]>
112 [% 'Receipt' | $T8 %] <br>
113 <input name="AR_tax" type="checkbox" class="checkbox" value="AR_tax"
114 [% HTML.escape(AR_tax) %][% DIS %]>
118 <input name="AP_amount" type="checkbox" class="checkbox" value="AP_amount"
119 [% HTML.escape(AP_amount) %][% DIS %]>
120 [% 'Expense/Asset' | $T8 %] <br>
121 <input name="AP_paid" type="checkbox" class="checkbox" value="AP_paid"
122 [% HTML.escape(AP_paid) %][% DIS %]>
123 [% 'Payment' | $T8 %] <br>
124 <input name="AP_tax" type="checkbox" class="checkbox" value="AP_tax"
125 [% HTML.escape(AP_tax) %][% DIS %]>
129 <input name="IC_sale" type="checkbox" class="checkbox" value="IC_sale"
130 [% HTML.escape(IC_sale) %]>
131 [% 'Revenue' | $T8 %] <br>
132 <input name="IC_cogs" type="checkbox" class="checkbox" value="IC_cogs"
133 [% HTML.escape(IC_cogs) %]>
134 [% 'Expense' | $T8 %] <br>
135 <input name="IC_taxpart" type="checkbox" class="checkbox" value="IC_taxpart"
136 [% HTML.escape(IC_taxpart) %]>
140 <input name=IC_income type=checkbox class=checkbox value="IC_income"
141 [% HTML.escape(IC_income) %]>
142 [% 'Revenue' | $T8 %] <br>
143 <input name=IC_expense type=checkbox class=checkbox value="IC_expense"
144 [% HTML.escape(IC_expense) %]>
145 [% 'Expense' | $T8 %] <br>
146 <input name=IC_taxservice type=checkbox class=checkbox value="IC_taxservice"
147 [% HTML.escape(IC_taxservice) %]>
154 <fieldset class="DEPENDS ON charttype BEING A">
156 [% 'Taxkeys and Taxreport Preferences' | $T8 %]
158 <p style='font-weight:normal'>[% 'Note: Taxkeys must have a "valid from" date, and will not behave correctly without.' | $T8 %]</p>
161 [% IF account_exists %]
163 <th align="left">[% 'Taxkey' | $T8 %]</th>
164 <th align="left">[% 'valid from' | $T8 %]</th>
165 <th align="left">[% 'pos_ustva' | $T8 %]</th>
166 <th align="left">[% 'delete' | $T8 %] ? </th>
168 [% FOREACH tk = ACCOUNT_TAXKEYS %]
171 <input type="hidden" name="taxkey_id_[% tk.runningnumber %]" value="[% tk.id %]">
172 <td><select name="taxkey_tax_[% tk.runningnumber %]">[% tk.selecttaxkey %]</select></td>
173 <td><input name="taxkey_startdate_[% tk.runningnumber %]" value="[% HTML.escape(tk.startdate) %]"></td>
174 <td><select name="taxkey_pos_ustva_[% tk.runningnumber %]">[% tk.select_tax %]</select></td>
175 <td><input name="taxkey_del_[% tk.runningnumber %]" type="checkbox"
176 class="checkbox" value="delete"></td>
178 <input type="hidden" name="taxkey_id_[% tk.runningnumber %]" value="NEW">
179 <td><select name="taxkey_tax_[% tk.runningnumber %]">[% tk.selecttaxkey %]</select></td>
180 <td><input name="taxkey_startdate_[% tk.runningnumber %]" value="[% HTML.escape(tk.startdate) %]"></td>
181 <td><select name="taxkey_pos_ustva_[% tk.runningnumber %]">[% tk.select_tax %]</select></td>
189 <td align="center" colspan="4"><p>[% 'Save account first to insert taxkeys' | $T8 %]</p>
196 <fieldset class="DEPENDS ON charttype BEING A">
197 <legend>[% 'Report and misc. Preferences' | $T8 %]</legend>
200 <th align="left">[% 'EUER' | $T8 %]</th>
201 <td colspan="3"><select name="pos_eur">[% select_eur %]</select></td>
204 <th align="left">[% 'BWA' | $T8 %]</th>
205 <td colspan="3"><select name="pos_bwa">[% select_bwa %]</select></td>
207 <!-- Diese Steuerfunktion hat keine Auswirkung in der Bilanz und wird erstmal deaktiviert. -->
209 <th align="left">[% 'Bilanz' | $T8 %]</th>
210 <td colspan="3"><select name="pos_bilanz">[% select_bilanz %]</select></td>
213 <th align="left">[% 'Datevautomatik' | $T8 %]</th>
214 <td colspan="3"><input name="datevautomatik" type="checkbox" class="checkbox" value="T" [% IF datevautomatik %]checked [% END %]></td>
217 <th align="left">[% 'Folgekonto' | $T8 %]</th>
218 <td><select name="new_chart_id">[% selectnewaccount %]</select></td>
219 <th align="left">[% 'Valid from' | $T8 %]</th>
220 <td><input name="valid_from" value="[% valid_from %]"></td>
225 <hr size="3" noshade>