CustomerVendor: namespace-Aufrufe entfernt
[kivitendo-erp.git] / templates / webpages / customer_vendor / tabs / billing.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 [%- USE LxERP %]
4 [%- USE L %]
5
6 <div id="billing">
7   <table width="100%">
8
9     <tr height="5"></tr>
10
11     [% IF ( conf_vertreter ) %]
12       <tr>
13         <th align="right">
14           [% IF SELF.is_vendor() %]
15             [% 'Type of Vendor' | $T8 %]
16           [% ELSE %]
17             [% 'Type of Customer' | $T8 %]
18           [% END %]
19         </th>
20
21         <td>
22           [% L.select_tag('cv.business_id', SELF.all_business, value_key = 'id', title_key = 'description', default = SELF.cv.business_id, with_empty = 1) %]
23         </td>
24       </tr>
25
26       <tr>
27         <th align="right">
28           [% 'Representative' | $T8 %]
29         </th>
30
31         <td>
32           [% L.select_tag('cv.salesman_id', SELF.all_salesman_customers, default = SELF.cv.salesman_id, value_key = 'id', title_key = 'name', with_empty = 1) %]
33         </td>
34       </tr>
35
36     [%- END %]
37
38     <tr>
39       [% IF SELF.is_vendor() %]
40         <th align="right" nowrap>[% 'Vendor Number' | $T8 %]</th>
41         <td>
42           [% L.input_tag('cv.vendornumber', SELF.cv.vendornumber) %]
43         </td>
44       [%- ELSE %]
45         <th align="right" nowrap>[% 'Customer Number' | $T8 %]</th>
46         <td>
47           [% L.input_tag('cv.customernumber', SELF.cv.customernumber) %]
48         </td>
49       [%- END %]
50     </tr>
51
52     <tr>
53       <th align="right" nowrap>[% 'Greeting' | $T8 %]</th>
54
55       <td>
56         [% L.input_tag('cv.greeting', SELF.cv.greeting) %]
57         [% L.select_tag('cv_greeting_select', SELF.all_greetings, default = SELF.cv.greeting, with_empty = 1, onchange = '$("#cv_greeting").val(this.value);') %]
58       </td>
59     </tr>
60
61     <tr>
62       <th align="right" nowrap>
63         [% IF SELF.is_vendor() %]
64           [% 'Vendor Name' | $T8 %]
65         [%- ELSE %]
66           [% 'Customer Name' | $T8 %]
67         [%- END %]
68       </th>
69
70       <td>
71         [% L.input_tag('cv.name', SELF.cv.name) %]
72       </td>
73     </tr>
74
75     <tr>
76       <th align="right" nowrap>[% 'Department' | $T8 %]</th>
77
78       <td>
79         [% L.input_tag('cv.department_1', SELF.cv.department_1, size = 16, maxlength = 75) %]
80         [% L.input_tag('cv.department_2', SELF.cv.department_2, size = 16, maxlength = 75) %]
81       </td>
82     </tr>
83
84     <tr>
85       <th align="right" nowrap>[% 'Street' | $T8 %]</th>
86
87       <td>
88         [% L.input_tag('cv.street', SELF.cv.street, size = 35, maxlength = 75) %]
89         <span id="billing_map"></span>
90         <script type="text/javascript">
91           kivi.CustomerVendor.showMapWidget('cv_', $('#billing_map'));
92         </script>
93       </td>
94     </tr>
95
96     <tr>
97       <th align="right" nowrap>[% 'Zipcode' | $T8 %]/[% 'City' | $T8 %]</th>
98
99       <td>
100         [% L.input_tag('cv.zipcode', SELF.cv.zipcode, size = 5 maxlength = 10) %]
101         [% L.input_tag('cv.city', SELF.cv.city, size = 30 maxlength = 75) %]
102       </td>
103     </tr>
104
105     <tr>
106       <th align="right" nowrap>[% 'Country' | $T8 %]</th>
107
108       <td>
109         [% L.input_tag('cv.country', SELF.cv.country, size = 30 maxlength = 75) %]
110       </td>
111     </tr>
112
113     <tr>
114       <th align="right" nowrap>[% 'Contact' | $T8 %]</th>
115
116       <td>
117         [% L.input_tag('cv.contact', SELF.cv.contact, size = 28 maxlength = 75) %]
118       </td>
119     </tr>
120
121     <tr>
122       <th align="right" nowrap>[% 'Phone' | $T8 %]</th>
123
124       <td>
125         [% L.input_tag('cv.phone', SELF.cv.phone, size = 30) %]
126       </td>
127     </tr>
128
129     <tr>
130       <th align="right" nowrap>[% 'Fax' | $T8 %]</th>
131
132       <td>
133         [% L.input_tag('cv.fax', SELF.cv.fax, size = 30 maxlength = 30) %]
134       </td>
135     </tr>
136
137     <tr>
138       <th align="right" nowrap>[% 'E-mail' | $T8 %]</th>
139
140       <td>
141         [% L.input_tag('cv.email', SELF.cv.email, size = 45) %]
142       </td>
143     </tr>
144
145     <tr>
146       <th align="right">[% 'Cc E-mail' | $T8 %]</th>
147
148       <td>
149         [% L.input_tag('cv.cc', SELF.cv.bcc, size = 45) %]
150       </td>
151     </tr>
152
153     <tr>
154       <th align="right">[% 'Bcc E-mail' | $T8 %]</th>
155
156       <td>
157         [% L.input_tag('cv.bcc', SELF.cv.bcc, size = 45) %]
158       </td>
159     </tr>
160
161     <tr>
162       <th align="right" nowrap>
163         [% IF homepage %]
164           <a href="[% HTML.escape(SELF.cv.homepage) %]" title="[% 'Open this Website' | $T8 %]" target="_blank">[% 'Homepage' | $T8 %]</a>
165         [% ELSE %]
166           [% 'Homepage' | $T8 %]
167         [% END %]
168       </th>
169
170       <td>
171         [% L.input_tag('cv.homepage', SELF.cv.homepage, size = 45, title = LxERP.t8('Example: http://kivitendo.de')) %]
172       </td>
173     </tr>
174
175     <tr>
176       <th align="right" nowrap>[% 'Username' | $T8 %]</th>
177
178       <td>
179         [% L.input_tag('cv.username', SELF.cv.username, size = 45) %]
180       </td>
181     </tr>
182
183     <tr>
184       <th align="right" nowrap>[% 'Password' | $T8 %]</th>
185
186       <td>
187         [% L.input_tag('cv.user_password', SELF.cv.user_password, size = 45) %]
188       </td>
189     </tr>
190   </table>
191
192
193   <table>
194
195     <tr>
196       <th align="right">[% 'Credit Limit' | $T8 %]</th>
197
198       <td>
199         [% L.input_tag('cv.creditlimit_as_number', SELF.cv.creditlimit_as_number, size = 9) %]
200       </td>
201
202
203       <th align="right">[% 'Payment Terms' | $T8 %]</th>
204
205       <td>
206         [% L.select_tag('cv.payment_id', SELF.all_payment_terms, value_key = 'id', title_key = 'description', default = SELF.cv.payment_id, with_empty = 1) %]
207       </td>
208
209
210       <th align="right">[% 'Discount' | $T8 %]</th>
211
212       <td>
213         [% L.input_tag('cv.discount_as_percent', SELF.cv.discount_as_percent, size = 4) %]
214       </td>
215     </tr>
216
217     <tr>
218       <th align="right">[% 'Tax Number / SSN' | $T8 %]</th>
219
220       <td>
221         [% L.input_tag('cv.taxnumber', SELF.cv.taxnumber, size = 20) %]
222       </td>
223
224
225       <!-- Anm.: R&B 15.11.2008     VAT Reg No ist Ust-ID in GB, aber generell sollte es laut Richardson die sales tax id sein -->
226       <th align="right">[% 'sales tax identification number' | $T8 %]</th>
227
228       <td>
229         [% L.input_tag('cv.ustid', SELF.cv.ustid, maxlength = 14 size = 20 ) %]
230       </td>
231
232
233       [%- IF ( SELF.is_vendor() ) %]
234         <th align="right">[% 'Customer Number' | $T8 %]</th>
235         <td>
236           [% L.input_tag('cv.v_customer_id', SELF.cv.v_customer_id, size = 10) %]
237         </td>
238       [%- ELSE %]
239         <th align="right">[% 'our vendor number at customer' | $T8 %]</th>
240         <td>
241           [% L.input_tag('cv.c_vendor_id', SELF.cv.c_vendor_id, size = 10) %]
242         </td>
243       [%- END %]
244     </tr>
245
246     <tr>
247       <th align="right">[% 'Account Number' | $T8 %]</th>
248
249       <td>
250         [% L.input_tag('cv.account_number', SELF.cv.account_number, size = 10, maxlength = 100) %]
251       </td>
252
253
254       <th align="right">[% 'Bank Code Number' | $T8 %]</th>
255
256       <td>
257         [% L.input_tag('cv.bank_code', SELF.cv.bank_code, size = 10, maxlength = 100) %]
258       </td>
259
260
261       <th align="right">[% 'Bank' | $T8 %]</th>
262
263       <td>
264         [% L.input_tag('cv.bank', SELF.cv.bank, size = 20) %]
265       </td>
266     </tr>
267
268     <tr>
269       <th align="right">[% 'IBAN' | $T8 %]</th>
270
271       <td>
272         [% L.input_tag('cv.iban', SELF.cv.iban, size = 10, maxlength = 100) %]
273       </td>
274
275
276       <th align="right">[% 'BIC' | $T8 %]</th>
277       <td>
278         [% L.input_tag('cv.bic', SELF.cv.bic, size = 10, maxlength = 100) %]
279       </td>
280
281
282       [% IF ( SELF.all_currencies.size ) %]
283         <th align="right">[% 'Currency' | $T8 %]</th>
284
285         <td>
286           [% L.select_tag('cv.currency_id', SELF.all_currencies, title_key = 'name', value_key = 'id', default = SELF.cv.currency_id, with_empty = 1) %]
287         </td>
288       [% END %]
289     </tr>
290
291     <tr>
292       [% IF ( !conf_vertreter ) %]
293         <th align="right">
294           [% IF ( SELF.is_vendor() ) %]
295             [% 'Type of Vendor' | $T8 %]
296           [% ELSE %]
297             [% 'Type of Customer' | $T8 %]
298           [% END %]
299         </th>
300
301         <td>
302           [% L.select_tag('cv.business_id', SELF.all_business, default = SELF.cv.business_id, value_key = 'id', title_key = 'description', with_empty = 1) %]
303         </td>
304       [% END %]
305
306
307       <th align="right">[% 'Language' | $T8 %]</th>
308
309       <td>
310         [% L.select_tag('cv.language_id', SELF.all_languages, default = SELF.cv.language_id, value_key = 'id', title_key = 'description', with_empty = 1) %]
311       </td>
312
313       [% IF ( SELF.is_customer() ) %]
314         <th align="right">[% 'Preisklasse' | $T8 %]</th>
315
316         <td>
317           [% L.select_tag('cv.klass', SELF.all_pricegroups, default = SELF.cv.klass, value_key = 'id', title_key = 'pricegroup', with_empty = 1) %]
318         </td>
319       [% END  %]
320     </tr>
321
322     <tr>
323       <td align="right">
324         <label for="cv_obsolete">[% 'Obsolete' | $T8 %]</label>
325       </td>
326
327       <td>
328         [% L.checkbox_tag('cv.obsolete', checked = SELF.cv.obsolete) %]
329       </td>
330
331
332       <td align="right">
333         <label for="cv_direct_debit">[% 'direct debit' | $T8 %]</label>
334       </td>
335
336       <td>
337         [% L.checkbox_tag('cv.direct_debit', checked = SELF.cv.direct_debit) %]
338       </td>
339     </tr>
340
341     <tr>
342       <th align="right">[% 'Steuersatz' | $T8 %]</th>
343
344       <td>
345         [% L.select_tag('cv.taxzone_id', SELF.all_taxzones, default = SELF.cv.taxzone_id, value_key = 'id', title_key = 'description') %]
346       </td>
347
348
349       [% IF ( SELF.is_customer() && !conf_vertreter ) %]
350         <th align="right">[% 'Salesman' | $T8 %]</th>
351
352         <td>
353           [% L.select_tag('cv.salesman_id', SELF.all_salesmen, default = SELF.cv.salesman_id, value_key = 'id', title_key = 'safe_name', with_empty = 1) %]
354         </td>
355       [%- END %]
356
357       <td>[% 'taxincluded checked' | $T8 %]</td>
358
359       <td>
360         [% L.select_tag('cv.taxincluded_checked', [[undef, LxERP.t8('use user config')], ['1', LxERP.t8('Yes')], ['0', LxERP.t8('No')]], default = SELF.cv.taxincluded_checked) %]
361       </td>
362
363     </tr>
364   </table>
365
366   <table>
367     <tr>
368       <th align="left" nowrap>[% 'Internal Notes' | $T8 %]</th>
369     </tr>
370
371     <tr>
372       <td>
373         [% L.textarea_tag('cv.notes', SELF.cv.notes, rows = 3 cols = 60 wrap = soft) %]
374       </td>
375     </tr>
376   </table>
377 </div>