2 [% USE HTML %]<script type="text/javascript" src="js/FormManager.js" >
3 /****************************************************
4 * Form Dependency Manager- By Twey- http://www.twey.co.uk
5 * Visit Dynamic Drive for this script and more: http://www.dynamicdrive.com
6 ****************************************************/
9 <script type="text/javascript">
10 window.onload = function() {
11 setupDependencies('EditAccount'); //name of form(s). Seperate each with a comma (ie: 'weboptions', 'myotherform' )
16 <form method="post" name="EditAccount" action="am.pl">
18 <input type="hidden" name="id" value="[% HTML.escape(id) %]">
19 <input type="hidden" name="type" value="account">
20 <input type="hidden" name="orphaned" value="[% HTML.escape(orphaned) %]">
21 <input type="hidden" name="new_chart_valid" value="[% HTML.escape(new_chart_valid) %]">
22 <input type="hidden" name="original_accno" value="[% HTML.escape(accno) %]">
23 <input type="hidden" name="inventory_accno_id" value="[% HTML.escape(inventory_accno_id) %]">
24 <input type="hidden" name="income_accno_id" value="[% HTML.escape(income_accno_id) %]">
25 <input type="hidden" name="expense_accno_id" value="[% HTML.escape(expense_accno_id) %]">
26 <input type="hidden" name="fxgain_accno_id" value="[% HTML.escape(fxgain_accno_id) %]">
27 <input type="hidden" name="fxloss_accno_id" value="[% HTML.escape(fxloss_accno_id) %]">
29 <table border="0" width="100%">
31 <th class="listtop">[% title %]</th>
37 [% 'Main Preferences' | $T8 %]
43 [% 'Account Number' | $T8 %]
45 <td><input name="accno" size="20" value="[% HTML.escape(accno) %]"></td>
50 [% 'Description' | $T8 %]
53 <td><input name="description" size="40" value="[% HTML.escape(description) %]"></td>
58 [% 'Chart Type' | $T8 %]
62 <td><select name="charttype">[% select_charttype %]</select></td>
66 <fieldset class="DEPENDS ON charttype BEING A">
67 <legend>[% 'Account Type' | $T8 %]</legend>
68 <select name="category" id="AccountType" class="DEPENDS ON charttype BEING A">
69 [% select_category %]</select>
72 [% IF ChartTypeIsAccount %]
73 <fieldset class="DEPENDS ON charttype BEING A">
74 <legend>[% 'Is this a summary account to record' | $T8 %]</legend>
75 <input name="AR" type="checkbox" class="checkbox" value="AR" [% HTML.escape(AR) %]>
76 [% 'AR' | $T8 %]
77 <input name="AP" type="checkbox" class="checkbox" value="AP" [% HTML.escape(AP) %]>
78 [% 'AP' | $T8 %]
79 <input name="IC" type="checkbox" class="checkbox" value="IC" [% HTML.escape(IC) %]>
80 [% 'Inventory' | $T8 %]
83 <fieldset class="DEPENDS ON charttype BEING A">
84 <legend>[% 'Include in drop-down menus' | $T8 %]</legend>
85 <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>
88 <th align="left">[% 'Receivables' | $T8 %]</th>
89 <th align="left">[% 'Payables' | $T8 %]</th>
90 <th align="left">[% 'Parts Inventory' | $T8 %]</th>
91 <th align="left">[% 'Service Items' | $T8 %]</th>
95 <input name="AR_amount" type="checkbox" class="checkbox" value="AR_amount"
96 [% HTML.escape(AR_amount) %]>
97 [% 'Revenue' | $T8 %] <br>
98 <input name="AR_paid" type="checkbox" class="checkbox" value="AR_paid"
99 [% HTML.escape(AR_paid) %]>
100 [% 'Receipt' | $T8 %] <br>
101 <input name="AR_tax" type="checkbox" class="checkbox" value="AR_tax"
102 [% HTML.escape(AR_tax) %]>
106 <input name="AP_amount" type="checkbox" class="checkbox" value="AP_amount"
107 [% HTML.escape(AP_amount) %]>
108 [% 'Expense/Asset' | $T8 %] <br>
109 <input name="AP_paid" type="checkbox" class="checkbox" value="AP_paid"
110 [% HTML.escape(AP_paid) %]>
111 [% 'Payment' | $T8 %] <br>
112 <input name="AP_tax" type="checkbox" class="checkbox" value="AP_tax"
113 [% HTML.escape(AP_tax) %]>
117 <input name="IC_sale" type="checkbox" class="checkbox" value="IC_sale"
118 [% HTML.escape(IC_sale) %]>
119 [% 'Revenue' | $T8 %] <br>
120 <input name="IC_cogs" type="checkbox" class="checkbox" value="IC_cogs"
121 [% HTML.escape(IC_cogs) %]>
122 [% 'Expense' | $T8 %] <br>
123 <input name="IC_taxpart" type="checkbox" class="checkbox" value="IC_taxpart"
124 [% HTML.escape(IC_taxpart) %]>
128 <input name=IC_income type=checkbox class=checkbox value="IC_income"
129 [% HTML.escape(IC_income) %]>
130 [% 'Revenue' | $T8 %] <br>
131 <input name=IC_expense type=checkbox class=checkbox value="IC_expense"
132 [% HTML.escape(IC_expense) %]>
133 [% 'Expense' | $T8 %] <br>
134 <input name=IC_taxservice type=checkbox class=checkbox value="IC_taxservice"
135 [% HTML.escape(IC_taxservice) %]>
142 <fieldset class="DEPENDS ON charttype BEING A">
144 [% 'Taxkeys and Taxreport Preferences' | $T8 %]
146 <p style='font-weight:normal'>[% 'Note: Taxkeys must have a "valid from" date, and will not behave correctly without.' | $T8 %]</p>
149 [% IF account_exists %]
151 <th align="left">[% 'Taxkey' | $T8 %]</th>
152 <th align="left">[% 'valid from' | $T8 %]</th>
153 <th align="left">[% 'pos_ustva' | $T8 %]</th>
154 <th align="left">[% 'delete' | $T8 %] ? </th>
156 [% FOREACH tk = ACCOUNT_TAXKEYS %]
159 <input type="hidden" name="taxkey_id_[% tk.runningnumber %]" value="[% tk.id %]">
160 <td><select name="taxkey_tax_[% tk.runningnumber %]">[% tk.selecttaxkey %]</select></td>
161 <td><input name="taxkey_startdate_[% tk.runningnumber %]" value="[% HTML.escape(tk.startdate) %]"></td>
162 <td><select name="taxkey_pos_ustva_[% tk.runningnumber %]">[% tk.select_tax %]</select></td>
163 <td><input name="taxkey_del_[% tk.runningnumber %]" type="checkbox"
164 class="checkbox" value="delete"></td>
166 <input type="hidden" name="taxkey_id_[% tk.runningnumber %]" value="NEW">
167 <td><select name="taxkey_tax_[% tk.runningnumber %]">[% tk.selecttaxkey %]</select></td>
168 <td><input name="taxkey_startdate_[% tk.runningnumber %]" value="[% HTML.escape(tk.startdate) %]"></td>
169 <td><select name="taxkey_pos_ustva_[% tk.runningnumber %]">[% tk.select_tax %]</select></td>
177 <td align="center" colspan="4"><p>[% 'Save account first to insert taxkeys' | $T8 %]</p>
184 <fieldset class="DEPENDS ON charttype BEING A">
185 <legend>[% 'Report and misc. Preferences' | $T8 %]</legend>
188 <th align="left">[% 'EUER' | $T8 %]</th>
189 <td colspan="3"><select name="pos_eur">[% select_eur %]</select></td>
192 <th align="left">[% 'BWA' | $T8 %]</th>
193 <td colspan="3"><select name="pos_bwa">[% select_bwa %]</select></td>
195 <!-- Diese Steuerfunktion hat keine Auswirkung in der Bilanz und wird erstmal deaktiviert. -->
197 <th align="left">[% 'Bilanz' | $T8 %]</th>
198 <td colspan="3"><select name="pos_bilanz">[% select_bilanz %]</select></td>
201 <th align="left">[% 'Datevautomatik' | $T8 %]</th>
202 <td colspan="3"><input name="datevautomatik" type="checkbox" class="checkbox" value="T" [% IF datevautomatik %]checked [% END %]></td>
205 <th align="left">[% 'Folgekonto' | $T8 %]</th>
206 <td><select name="new_chart_id">[% selectnewaccount %]</select></td>
207 <th align="left">[% 'Valid from' | $T8 %]</th>
208 <td><input name="valid_from" value="[% valid_from %]"></td>
213 <hr size="3" noshade>