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">
12 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 %]
63 [% IF AccountIsPosted %]
64 [% L.select_tag('dummy_charttype',
68 default => selected_charttype,
70 [% L.hidden_tag('charttype', selected_charttype) %]
72 [% L.select_tag('charttype',
76 default => selected_charttype) %]
83 <fieldset class="DEPENDS ON charttype BEING A">
84 <legend>[% 'Account Type' | $T8 %]</legend>
85 <select name="category" id="AccountType" class="DEPENDS ON charttype BEING A">
86 [% select_category %]</select>
89 [% IF ChartTypeIsAccount %]
90 <fieldset class="DEPENDS ON charttype BEING A">
91 <legend>[% 'Is this a summary account to record' | $T8 %]</legend>
92 [% L.checkbox_tag('AR', value => 'AR', checked => AR, class => 'checkbox', disabled => AccountIsPosted) %] [% 'AR' | $T8 %]
93 [% L.checkbox_tag('AP', value => 'AP', checked => AP, class => 'checkbox', disabled => AccountIsPosted) %] [% 'AP' | $T8 %]
94 [% L.checkbox_tag('IC', value => 'IC', checked => IC, class => 'checkbox', disabled => AccountIsPosted) %] [% 'Inventory' | $T8 %]
96 [% IF AccountIsPosted %]
97 [% IF AR %] [% L.hidden_tag('AR', 'AR') %] [% END %]
98 [% IF AP %] [% L.hidden_tag('AP', 'AP') %] [% END %]
99 [% IF IC %] [% L.hidden_tag('IC', 'IC') %] [% END %]
104 [% IF AccountIsPosted %]
105 [% IF AR_amount %] [% L.hidden_tag('AR_amount', 'AR_amount') %] [% END %]
106 [% IF AR_paid %] [% L.hidden_tag('AR_paid', 'AR_paid') %] [% END %]
107 [% IF AR_tax %] [% L.hidden_tag('AR_tax', 'AR_tax') %] [% END %]
108 [% IF AP_amount %] [% L.hidden_tag('AP_amount', 'AP_amount') %] [% END %]
109 [% IF AP_paid %] [% L.hidden_tag('AP_paid', 'AP_paid') %] [% END %]
110 [% IF AP_tax %] [% L.hidden_tag('AP_tax', 'AP_tax') %] [% END %]
111 [%- SET DIS = ' disabled="disabled"' %]
113 <fieldset class="DEPENDS ON charttype BEING A">
114 <legend>[% 'Include in drop-down menus' | $T8 %]</legend>
115 <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>
116 <p style='font-weight:normal'>[% 'Changes to Receivables and Payables are only possible if no transactions to this account are posted yet.' | $T8 %]
117 [% '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>
120 <th align="left">[% 'Receivables' | $T8 %]</th>
121 <th align="left">[% 'Payables' | $T8 %]</th>
122 <th align="left">[% 'Parts Inventory' | $T8 %]</th>
123 <th align="left">[% 'Service Items' | $T8 %]</th>
127 [% L.radio_button_tag('AR_include_in_dropdown',
128 value => 'AR_amount',
129 disabled => AccountIsPosted,
130 checked => AR_amount) %]
131 [% 'Revenue' | $T8 %] <br>
132 [% L.radio_button_tag('AR_include_in_dropdown',
134 disabled => AccountIsPosted,
135 checked => AR_paid) %]
136 [% 'Receipt' | $T8 %] <br>
137 [% L.radio_button_tag('AR_include_in_dropdown',
139 disabled => AccountIsPosted,
140 checked => AR_tax) %]
141 [% 'Tax' | $T8 %] <br>
142 [% L.radio_button_tag('AR_include_in_dropdown',
144 disabled => AccountIsPosted) %]
145 [% 'do not include' | $T8 %]
148 [% L.radio_button_tag('AP_include_in_dropdown',
149 value => 'AP_amount',
150 disabled => AccountIsPosted,
151 checked => AP_amount) %]
152 [% 'Expense/Asset' | $T8 %] <br>
153 [% L.radio_button_tag('AP_include_in_dropdown',
155 disabled => AccountIsPosted,
156 checked => AP_paid) %]
157 [% 'Payment' | $T8 %] <br>
158 [% L.radio_button_tag('AP_include_in_dropdown',
160 disabled => AccountIsPosted,
161 checked => AP_tax) %]
162 [% 'Tax' | $T8 %] <br>
163 [% L.radio_button_tag('AP_include_in_dropdown',
165 disabled => AccountIsPosted) %]
166 [% 'do not include' | $T8 %]
169 <input name="IC_sale" type="checkbox" class="checkbox" value="IC_sale"
170 [% HTML.escape(IC_sale) %]>
171 [% 'Revenue' | $T8 %] <br>
172 <input name="IC_cogs" type="checkbox" class="checkbox" value="IC_cogs"
173 [% HTML.escape(IC_cogs) %]>
174 [% 'Expense' | $T8 %] <br>
175 <input name="IC_taxpart" type="checkbox" class="checkbox" value="IC_taxpart"
176 [% HTML.escape(IC_taxpart) %]>
181 <input name=IC_income type=checkbox class=checkbox value="IC_income"
182 [% HTML.escape(IC_income) %]>
183 [% 'Revenue' | $T8 %] <br>
184 <input name=IC_expense type=checkbox class=checkbox value="IC_expense"
185 [% HTML.escape(IC_expense) %]>
186 [% 'Expense' | $T8 %] <br>
187 <input name=IC_taxservice type=checkbox class=checkbox value="IC_taxservice"
188 [% HTML.escape(IC_taxservice) %]>
196 <fieldset class="DEPENDS ON charttype BEING A">
198 [% 'Taxkeys and Taxreport Preferences' | $T8 %]
200 <p style='font-weight:normal'>[% 'Note: Taxkeys must have a "valid from" date, and will not behave correctly without.' | $T8 %]</p>
203 [% IF account_exists %]
205 <th align="left">[% 'Taxkey' | $T8 %]</th>
206 <th align="left">[% 'valid from' | $T8 %]</th>
207 <th align="left">[% 'pos_ustva' | $T8 %]</th>
208 <th align="left">[% 'delete' | $T8 %] ? </th>
210 [% FOREACH tk = ACCOUNT_TAXKEYS %]
213 <input type="hidden" name="taxkey_id_[% tk.runningnumber %]" value="[% tk.id %]">
214 <td><select name="taxkey_tax_[% tk.runningnumber %]">[% tk.selecttaxkey %]</select></td>
215 <td><input name="taxkey_startdate_[% tk.runningnumber %]" value="[% HTML.escape(tk.startdate) %]"></td>
216 <td><select name="taxkey_pos_ustva_[% tk.runningnumber %]">[% tk.select_tax %]</select></td>
217 <td><input name="taxkey_del_[% tk.runningnumber %]" type="checkbox"
218 class="checkbox" value="delete"></td>
220 <input type="hidden" name="taxkey_id_[% tk.runningnumber %]" value="NEW">
221 <td><select name="taxkey_tax_[% tk.runningnumber %]">[% tk.selecttaxkey %]</select></td>
222 <td><input name="taxkey_startdate_[% tk.runningnumber %]" value="[% HTML.escape(tk.startdate) %]"></td>
223 <td><select name="taxkey_pos_ustva_[% tk.runningnumber %]">[% tk.select_tax %]</select></td>
231 <td align="center" colspan="4"><p>[% 'Save account first to insert taxkeys' | $T8 %]</p>
238 <fieldset class="DEPENDS ON charttype BEING A">
239 <legend>[% 'Report and misc. Preferences' | $T8 %]</legend>
242 <th align="left">[% 'EUER' | $T8 %]</th>
243 <td colspan="3"><select name="pos_eur">[% select_eur %]</select></td>
246 <th align="left">[% 'BWA' | $T8 %]</th>
247 <td colspan="3"><select name="pos_bwa">[% select_bwa %]</select></td>
249 <!-- Diese Steuerfunktion hat keine Auswirkung in der Bilanz und wird erstmal deaktiviert. -->
251 <th align="left">[% 'Bilanz' | $T8 %]</th>
252 <td colspan="3"><select name="pos_bilanz">[% select_bilanz %]</select></td>
255 <th align="left">[% 'Datevautomatik' | $T8 %]</th>
256 <td colspan="3"><input name="datevautomatik" type="checkbox" class="checkbox" value="T" [% IF datevautomatik %]checked [% END %]>[% 'If checked the taxkey will not be exported in the DATEV Export, but only IF chart taxkeys differ from general ledger taxkeys' | $T8 %] </td>
259 <th align="left">[% 'Folgekonto' | $T8 %]</th>
260 <td><select name="new_chart_id">[% selectnewaccount %]</select></td>
261 <th align="left">[% 'Valid from' | $T8 %]</th>
262 <td><input name="valid_from" value="[% valid_from %]"></td>
267 <hr size="3" noshade>