CVars: In Masken die Cvars filtern. Muss über Userpräferenzen aktiviert werden.
[kivitendo-erp.git] / templates / webpages / am / edit_accounts_en.html
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 ****************************************************/
6 </script>
7
8 <script type="text/javascript">
9 window.onload = function() {
10     setupDependencies('EditAccount'); //name of form(s). Seperate each with a comma (ie: 'weboptions', 'myotherform' )
11   };
12 </script>
13
14 <body>
15 <form method="post" name="EditAccount" action="am.pl">
16
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) %]">
27
28 <table border="0" width="100%">
29   <tr>
30     <th class="listtop">[% title %]</th>
31   </tr>
32 </table>
33
34 <fieldset>
35   <legend>
36     Main Preferences
37   </legend>
38   <table>
39     <tr>
40       <td>
41         <label>
42           Account Number
43         </label></td>
44         <td><input name="accno" size="20" value="[% HTML.escape(accno) %]"></td>
45     </tr>
46     <tr>
47       <td>
48         <label>
49           Description
50         </label>
51       </td>
52       <td><input name="description" size="40" value="[% HTML.escape(description) %]"></td>
53     </tr>
54     <tr>
55       <td>
56         <label>
57           Chart Type
58
59         </label>
60       </td>
61       <td><select name="charttype">[% select_charttype %]</select></td>
62     </tr>
63   </table>
64 </fieldset>
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>
69 </fieldset>
70
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) %]>
75     &nbsp;Sales
76     <input name="AP" type="checkbox" class="checkbox" value="AP" [% HTML.escape(AP) %]>
77     &nbsp;Purchases
78     <input name="IC" type="checkbox" class="checkbox" value="IC" [% HTML.escape(IC) %]>
79     &nbsp;Inventory
80 </fieldset>
81
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>
85   <table width="100%">
86     <tr>
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>
91     </tr>
92     <tr>
93       <td>
94         <input name="AR_amount" type="checkbox" class="checkbox" value="AR_amount"
95           [% HTML.escape(AR_amount) %]>&nbsp;
96         Revenue <br>
97         <input name="AR_paid" type="checkbox" class="checkbox" value="AR_paid"
98           [% HTML.escape(AR_paid) %]>&nbsp;
99         Receipt <br>
100         <input name="AR_tax" type="checkbox" class="checkbox" value="AR_tax"
101           [% HTML.escape(AR_tax) %]>&nbsp;
102         Tax
103       </td>
104       <td>
105         <input name="AP_amount" type="checkbox" class="checkbox" value="AP_amount"
106           [% HTML.escape(AP_amount) %]>&nbsp;
107         Expense/Asset <br>
108         <input name="AP_paid" type="checkbox" class="checkbox" value="AP_paid"
109           [% HTML.escape(AP_paid) %]>&nbsp;
110         Payment <br>
111         <input name="AP_tax" type="checkbox" class="checkbox" value="AP_tax"
112             [% HTML.escape(AP_tax) %]>&nbsp;
113         Tax
114       </td>
115       <td>
116         <input name="IC_sale" type="checkbox" class="checkbox" value="IC_sale"
117           [% HTML.escape(IC_sale) %]>&nbsp;
118         Revenue <br>
119         <input name="IC_cogs" type="checkbox" class="checkbox" value="IC_cogs"
120           [% HTML.escape(IC_cogs) %]>&nbsp;
121         Expense <br>
122         <input name="IC_taxpart" type="checkbox" class="checkbox" value="IC_taxpart"
123           [% HTML.escape(IC_taxpart) %]>&nbsp;
124         Tax
125       </td>
126       <td>
127         <input name=IC_income type=checkbox class=checkbox value="IC_income"
128           [% HTML.escape(IC_income) %]>&nbsp;
129         Revenue <br>
130         <input name=IC_expense type=checkbox class=checkbox value="IC_expense"
131           [% HTML.escape(IC_expense) %]>&nbsp;
132         Expense <br>
133         <input name=IC_taxservice type=checkbox class=checkbox value="IC_taxservice"
134           [% HTML.escape(IC_taxservice) %]>&nbsp;
135         Tax
136       </td>
137     </tr>
138   </table>
139 </fieldset>
140
141 <fieldset class="DEPENDS ON charttype BEING A">
142   <legend>
143     Taxkeys and Taxreport Preferences
144   </legend>
145   <p style='font-weight:normal'>Note: Taxkeys must have a "valid from" date, and will not be in effect otherwise.</p>
146
147             <table>
148 [% IF account_exists %]
149               <tr>
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>
154               </tr>
155 [% FOREACH tk = ACCOUNT_TAXKEYS %]
156               <tr>
157     [% IF tk.id %]
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>
164     [% ELSE %]
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>
169                 <td>&nbsp;</td>
170     [% END %]
171               </tr>
172
173 [% END %]
174 [% ELSE %]
175 <tr>
176   <td align="center" colspan="4"><p>Save account first to insert taxkeys</p>
177   </td>
178 </tr>
179 [% END %]
180             </table>
181 </fieldset>
182
183 <fieldset class="DEPENDS ON charttype BEING A">
184   <legend>Report and misc. Preferences</legend>
185   <table>
186         <tr>
187           <th align="left">EUER</th>
188           <td colspan="3"><select name="pos_eur">[% select_eur %]</select></td>
189         </tr>
190         <tr>
191           <th align="left">BWA</th>
192           <td colspan="3"><select name="pos_bwa">[% select_bwa %]</select></td>
193         </tr>
194         <!-- Diese Steuerfunktion hat keine Auswirkung in der Bilanz und wird erstmal deaktiviert. -->
195         <!-- tr>
196           <th align="left">Bilanz</th>
197           <td colspan="3"><select name="pos_bilanz">[% select_bilanz %]</select></td>
198         </tr -->
199         <tr>
200           <th align="left">Datevautomatik</th>
201           <td colspan="3"><input name="datevautomatik" type="checkbox" class="checkbox" value="T" [% IF datevautomatik %]checked [% END %]></td>
202         </tr>
203         <tr>
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>
208         </tr>
209   </table>
210 [% END %]
211 </fieldset>
212 <hr size="3" noshade>