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="inventory_accno_id" value="[% HTML.escape(inventory_accno_id) %]">
22 <input type="hidden" name="income_accno_id" value="[% HTML.escape(income_accno_id) %]">
23 <input type="hidden" name="expense_accno_id" value="[% HTML.escape(expense_accno_id) %]">
24 <input type="hidden" name="fxgain_accno_id" value="[% HTML.escape(fxgain_accno_id) %]">
25 <input type="hidden" name="fxloss_accno_id" value="[% HTML.escape(fxloss_accno_id) %]">
27 <table border="0" width="100%">
29 <th class="listtop">[% title %]</th>
43 <td><input name="accno" size="20" value="[% HTML.escape(accno) %]"></td>
51 <td><input name="description" size="40" value="[% HTML.escape(description) %]"></td>
60 <td><select name="charttype">[% select_charttype %]</select></td>
64 <fieldset class="DEPENDS ON charttype BEING A">
65 <legend>Kontoart</legend>
66 <select name="category" id="AccountType" class="DEPENDS ON charttype BEING A">
67 [% select_category %]</select>
70 [% IF ChartTypeIsAccount %]
71 <fieldset class="DEPENDS ON charttype BEING A">
72 <legend>Buchungskonto in</legend>
73 <input name="AR" type="checkbox" class="checkbox" value="AR" [% HTML.escape(AR) %]>
75 <input name="AP" type="checkbox" class="checkbox" value="AP" [% HTML.escape(AP) %]>
77 <input name="IC" type="checkbox" class="checkbox" value="IC" [% HTML.escape(IC) %]>
81 <fieldset class="DEPENDS ON charttype BEING A">
82 <legend>In Aufklappmenü aufnehmen</legend>
85 <th align="left">Forderungen</th>
86 <th align="left">Verbindlichkeiten</th>
87 <th align="left">Warenliste</th>
88 <th align="left">Dienstleistungen</th>
92 <input name="AR_amount" type="checkbox" class="checkbox" value="AR_amount"
93 [% HTML.escape(AR_amount) %]>
95 <input name="AR_paid" type="checkbox" class="checkbox" value="AR_paid"
96 [% HTML.escape(AR_paid) %]>
98 <input name="AR_tax" type="checkbox" class="checkbox" value="AR_tax"
99 [% HTML.escape(AR_tax) %]>
103 <input name="AP_amount" type="checkbox" class="checkbox" value="AP_amount"
104 [% HTML.escape(AP_amount) %]>
106 <input name="AP_paid" type="checkbox" class="checkbox" value="AP_paid"
107 [% HTML.escape(AP_paid) %]>
109 <input name="AP_tax" type="checkbox" class="checkbox" value="AP_tax"
110 [% HTML.escape(AP_tax) %]>
114 <input name="IC_sale" type="checkbox" class="checkbox" value="IC_sale"
115 [% HTML.escape(IC_sale) %]>
117 <input name="IC_cogs" type="checkbox" class="checkbox" value="IC_cogs"
118 [% HTML.escape(IC_cogs) %]>
120 <input name="IC_taxpart" type="checkbox" class="checkbox" value="IC_taxpart"
121 [% HTML.escape(IC_taxpart) %]>
125 <input name=IC_income type=checkbox class=checkbox value="IC_income"
126 [% HTML.escape(IC_income) %]>
128 <input name=IC_expense type=checkbox class=checkbox value="IC_expense"
129 [% HTML.escape(IC_expense) %]>
131 <input name=IC_taxservice type=checkbox class=checkbox value="IC_taxservice"
132 [% HTML.escape(IC_taxservice) %]>
139 <fieldset class="DEPENDS ON charttype BEING A">
141 Steuerautomatik und UStVA
145 [% IF account_exists %]
147 <th align="left">Steuerschlüssel</th>
148 <th align="left">Gültig ab</th>
149 <th align="left">UStVA</th>
150 <th align="left">Löschen ? </th>
152 [% FOREACH tk = ACCOUNT_TAXKEYS %]
155 <input type="hidden" name="taxkey_id_[% tk.runningnumber %]" value="[% tk.id %]">
156 <td><select name="taxkey_tax_[% tk.runningnumber %]">[% tk.selecttaxkey %]</select></td>
157 <td><input name="taxkey_startdate_[% tk.runningnumber %]" value="[% HTML.escape(tk.startdate) %]"></td>
158 <td><select name="taxkey_pos_ustva_[% tk.runningnumber %]">[% tk.select_tax %]</select></td>
159 <td><input name="taxkey_del_[% tk.runningnumber %]" type="checkbox"
160 class="checkbox" value="delete"></td>
162 <input type="hidden" name="taxkey_id_[% tk.runningnumber %]" value="NEW">
163 <td><select name="taxkey_tax_[% tk.runningnumber %]">[% tk.selecttaxkey %]</select></td>
164 <td><input name="taxkey_startdate_[% tk.runningnumber %]" value="[% HTML.escape(tk.startdate) %]"></td>
165 <td><select name="taxkey_pos_ustva_[% tk.runningnumber %]">[% tk.select_tax %]</select></td>
173 <td align="center" colspan="4"><p>Einstellungen sind nach
174 dem Speichern des Kontos verfügbar...</p>
181 <fieldset class="DEPENDS ON charttype BEING A">
182 <legend>Sonstige Einstellungen</legend>
185 <th align="left">Einnahmen-/Überschussrechnung</th>
186 <td colspan="3"><select name="pos_eur">[% select_eur %]</select></td>
189 <th align="left">BWA</th>
190 <td colspan="3"><select name="pos_bwa">[% select_bwa %]</select></td>
193 <th align="left">Bilanz</th>
194 <td colspan="3"><select name="pos_bilanz">[% select_bilanz %]</select></td>
197 <th align="left">Datevexport</th>
198 <td colspan="3"><input name="datevautomatik" type="checkbox" class="checkbox" value="T" [% IF datevautomatik %]checked [% END %]></td>
201 <th align="left">Folgekonto</th>
202 <td><select name="new_chart_id">[% selectnewaccount %]</select></td>
203 <th align="left">Gültig ab</th>
204 <td><input name="valid_from" value="[% valid_from %]"></td>
209 <hr size="3" noshade>