1 [% USE HTML %]<script type="text/javascript" src="js/FormManager.js" >
2 /****************************************************
3 * Form Dependency Manager- By Twey- http://www.twey.co.uk
4 * Visit Dynamic Drive for this script and more: http://www.dynamicdrive.com
5 ****************************************************/
8 <script type="text/javascript">
9 window.onload = function() {
10 setupDependencies('EditAccount'); //name of form(s). Seperate each with a comma (ie: 'weboptions', 'myotherform' )
15 <form method="post" name="EditAccount" action="am.pl">
17 <input type="hidden" name="id" value="[% HTML.escape(id) %]">
18 <input type="hidden" name="type" value="account">
19 <input type="hidden" name="orphaned" value="[% HTML.escape(orphaned) %]">
20 <input type="hidden" name="new_chart_valid" value="[% HTML.escape(new_chart_valid) %]">
21 <input type="hidden" name="original_accno" value="[% HTML.escape(accno) %]">
22 <input type="hidden" name="inventory_accno_id" value="[% HTML.escape(inventory_accno_id) %]">
23 <input type="hidden" name="income_accno_id" value="[% HTML.escape(income_accno_id) %]">
24 <input type="hidden" name="expense_accno_id" value="[% HTML.escape(expense_accno_id) %]">
25 <input type="hidden" name="fxgain_accno_id" value="[% HTML.escape(fxgain_accno_id) %]">
26 <input type="hidden" name="fxloss_accno_id" value="[% HTML.escape(fxloss_accno_id) %]">
28 <table border="0" width="100%">
30 <th class="listtop">[% title %]</th>
44 <td><input name="accno" size="20" value="[% HTML.escape(accno) %]"></td>
52 <td><input name="description" size="40" value="[% HTML.escape(description) %]"></td>
61 <td><select name="charttype">[% select_charttype %]</select></td>
65 <fieldset class="DEPENDS ON charttype BEING A">
66 <legend>Account Type</legend>
67 <select name="category" id="AccountType" class="DEPENDS ON charttype BEING A">
68 [% select_category %]</select>
71 [% IF ChartTypeIsAccount %]
72 <fieldset class="DEPENDS ON charttype BEING A">
73 <legend>Is this a summary account to record</legend>
74 <input name="AR" type="checkbox" class="checkbox" value="AR" [% HTML.escape(AR) %]>
76 <input name="AP" type="checkbox" class="checkbox" value="AP" [% HTML.escape(AP) %]>
78 <input name="IC" type="checkbox" class="checkbox" value="IC" [% HTML.escape(IC) %]>
82 <fieldset class="DEPENDS ON charttype BEING A">
83 <legend>Include in drop-down menus</legend>
84 <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.</p>
87 <th align="left">Receivables</th>
88 <th align="left">Payables</th>
89 <th align="left">Parts Inventory</th>
90 <th align="left">Service Items</th>
94 <input name="AR_amount" type="checkbox" class="checkbox" value="AR_amount"
95 [% HTML.escape(AR_amount) %]>
97 <input name="AR_paid" type="checkbox" class="checkbox" value="AR_paid"
98 [% HTML.escape(AR_paid) %]>
100 <input name="AR_tax" type="checkbox" class="checkbox" value="AR_tax"
101 [% HTML.escape(AR_tax) %]>
105 <input name="AP_amount" type="checkbox" class="checkbox" value="AP_amount"
106 [% HTML.escape(AP_amount) %]>
108 <input name="AP_paid" type="checkbox" class="checkbox" value="AP_paid"
109 [% HTML.escape(AP_paid) %]>
111 <input name="AP_tax" type="checkbox" class="checkbox" value="AP_tax"
112 [% HTML.escape(AP_tax) %]>
116 <input name="IC_sale" type="checkbox" class="checkbox" value="IC_sale"
117 [% HTML.escape(IC_sale) %]>
119 <input name="IC_cogs" type="checkbox" class="checkbox" value="IC_cogs"
120 [% HTML.escape(IC_cogs) %]>
122 <input name="IC_taxpart" type="checkbox" class="checkbox" value="IC_taxpart"
123 [% HTML.escape(IC_taxpart) %]>
127 <input name=IC_income type=checkbox class=checkbox value="IC_income"
128 [% HTML.escape(IC_income) %]>
130 <input name=IC_expense type=checkbox class=checkbox value="IC_expense"
131 [% HTML.escape(IC_expense) %]>
133 <input name=IC_taxservice type=checkbox class=checkbox value="IC_taxservice"
134 [% HTML.escape(IC_taxservice) %]>
141 <fieldset class="DEPENDS ON charttype BEING A">
143 Taxkeys and Taxreport Preferences
145 <p style='font-weight:normal'>Note: Taxkeys must have a "valid from" date, and will not be in effect otherwise.</p>
148 [% IF account_exists %]
150 <th align="left">Taxkey</th>
151 <th align="left">valid from</th>
152 <th align="left">pos_ustva</th>
153 <th align="left">delete ? </th>
155 [% FOREACH tk = ACCOUNT_TAXKEYS %]
158 <input type="hidden" name="taxkey_id_[% tk.runningnumber %]" value="[% tk.id %]">
159 <td><select name="taxkey_tax_[% tk.runningnumber %]">[% tk.selecttaxkey %]</select></td>
160 <td><input name="taxkey_startdate_[% tk.runningnumber %]" value="[% HTML.escape(tk.startdate) %]"></td>
161 <td><select name="taxkey_pos_ustva_[% tk.runningnumber %]">[% tk.select_tax %]</select></td>
162 <td><input name="taxkey_del_[% tk.runningnumber %]" type="checkbox"
163 class="checkbox" value="delete"></td>
165 <input type="hidden" name="taxkey_id_[% tk.runningnumber %]" value="NEW">
166 <td><select name="taxkey_tax_[% tk.runningnumber %]">[% tk.selecttaxkey %]</select></td>
167 <td><input name="taxkey_startdate_[% tk.runningnumber %]" value="[% HTML.escape(tk.startdate) %]"></td>
168 <td><select name="taxkey_pos_ustva_[% tk.runningnumber %]">[% tk.select_tax %]</select></td>
176 <td align="center" colspan="4"><p>Save account first to insert taxkeys</p>
183 <fieldset class="DEPENDS ON charttype BEING A">
184 <legend>Report and misc. Preferences</legend>
187 <th align="left">EUER</th>
188 <td colspan="3"><select name="pos_eur">[% select_eur %]</select></td>
191 <th align="left">BWA</th>
192 <td colspan="3"><select name="pos_bwa">[% select_bwa %]</select></td>
194 <!-- Diese Steuerfunktion hat keine Auswirkung in der Bilanz und wird erstmal deaktiviert. -->
196 <th align="left">Bilanz</th>
197 <td colspan="3"><select name="pos_bilanz">[% select_bilanz %]</select></td>
200 <th align="left">Datevautomatik</th>
201 <td colspan="3"><input name="datevautomatik" type="checkbox" class="checkbox" value="T" [% IF datevautomatik %]checked [% END %]></td>
204 <th align="left">Folgekonto</th>
205 <td><select name="new_chart_id">[% selectnewaccount %]</select></td>
206 <th align="left">Valid from</th>
207 <td><input name="valid_from" value="[% valid_from %]"></td>
212 <hr size="3" noshade>