Lieferbedingungen analog zu Zahlungsbedingungen eingeführt.
[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 ( INSTANCE_CONF.get_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           billingMapWidget = new kivi.CustomerVendor.MapWidget('cv_');
92           $(function() {
93             billingMapWidget.render($('#billing_map'));
94           });
95         </script>
96       </td>
97     </tr>
98
99     <tr>
100       <th align="right" nowrap>[% 'Zipcode' | $T8 %]/[% 'City' | $T8 %]</th>
101
102       <td>
103         [% L.input_tag('cv.zipcode', SELF.cv.zipcode, size = 5 maxlength = 10) %]
104         [% L.input_tag('cv.city', SELF.cv.city, size = 30 maxlength = 75) %]
105       </td>
106     </tr>
107
108     <tr>
109       <th align="right" nowrap>[% 'Country' | $T8 %]</th>
110
111       <td>
112         [% L.input_tag('cv.country', SELF.cv.country, size = 30 maxlength = 75) %]
113       </td>
114     </tr>
115
116     <tr>
117       <th align="right" nowrap>[% 'Contact' | $T8 %]</th>
118
119       <td>
120         [% L.input_tag('cv.contact', SELF.cv.contact, size = 28 maxlength = 75) %]
121       </td>
122     </tr>
123
124     <tr>
125       <th align="right" nowrap>[% 'Phone' | $T8 %]</th>
126
127       <td>
128         [% L.input_tag('cv.phone', SELF.cv.phone, size = 30) %]
129       </td>
130     </tr>
131
132     <tr>
133       <th align="right" nowrap>[% 'Fax' | $T8 %]</th>
134
135       <td>
136         [% L.input_tag('cv.fax', SELF.cv.fax, size = 30 maxlength = 30) %]
137       </td>
138     </tr>
139
140     <tr>
141       <th align="right" nowrap>[% 'E-mail' | $T8 %]</th>
142
143       <td>
144         [% L.input_tag('cv.email', SELF.cv.email, size = 45) %]
145       </td>
146     </tr>
147
148     <tr>
149       <th align="right">[% 'Cc E-mail' | $T8 %]</th>
150
151       <td>
152         [% L.input_tag('cv.cc', SELF.cv.cc, size = 45) %]
153       </td>
154     </tr>
155
156     <tr>
157       <th align="right">[% 'Bcc E-mail' | $T8 %]</th>
158
159       <td>
160         [% L.input_tag('cv.bcc', SELF.cv.bcc, size = 45) %]
161       </td>
162     </tr>
163
164     <tr>
165       <th align="right" nowrap>
166         [% IF homepage %]
167           <a href="[% HTML.escape(SELF.cv.homepage) %]" title="[% 'Open this Website' | $T8 %]" target="_blank">[% 'Homepage' | $T8 %]</a>
168         [% ELSE %]
169           [% 'Homepage' | $T8 %]
170         [% END %]
171       </th>
172
173       <td>
174         [% L.input_tag('cv.homepage', SELF.cv.homepage, size = 45, title = LxERP.t8('Example: http://kivitendo.de')) %]
175       </td>
176     </tr>
177
178     <tr>
179       <th align="right" nowrap>[% 'Username' | $T8 %]</th>
180
181       <td>
182         [% L.input_tag('cv.username', SELF.cv.username, size = 45) %]
183       </td>
184     </tr>
185
186     <tr>
187       <th align="right" nowrap>[% 'Password' | $T8 %]</th>
188
189       <td>
190         [% L.input_tag('cv.user_password', SELF.cv.user_password, size = 45) %]
191       </td>
192     </tr>
193   </table>
194
195
196   <table>
197
198     <tr>
199       <th align="right">[% 'Credit Limit' | $T8 %]</th>
200
201       <td>
202         [% L.input_tag('cv.creditlimit_as_number', SELF.cv.creditlimit_as_number, size = 9) %]
203       </td>
204
205
206       <th align="right">[% 'Payment Terms' | $T8 %]</th>
207
208       <td>
209         [% L.select_tag('cv.payment_id', SELF.all_payment_terms, value_key = 'id', title_key = 'description', default = SELF.cv.payment_id, with_empty = 1) %]
210       </td>
211
212
213       <th align="right">[% 'Discount' | $T8 %]</th>
214
215       <td>
216         [% L.input_tag('cv.discount_as_percent', SELF.cv.discount_as_percent, size = 4) %]%
217       </td>
218     </tr>
219
220     <tr>
221       <th align="right">[% 'Tax Number / SSN' | $T8 %]</th>
222
223       <td>
224         [% L.input_tag('cv.taxnumber', SELF.cv.taxnumber, size = 20) %]
225       </td>
226
227
228       <!-- 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 -->
229       <th align="right">[% 'sales tax identification number' | $T8 %]</th>
230
231       <td>
232         [% L.input_tag('cv.ustid', SELF.cv.ustid, maxlength = 14 size = 20 ) %]
233       </td>
234
235
236       [%- IF ( SELF.is_vendor() ) %]
237         <th align="right">[% 'Customer Number' | $T8 %]</th>
238         <td>
239           [% L.input_tag('cv.v_customer_id', SELF.cv.v_customer_id, size = 10) %]
240         </td>
241       [%- ELSE %]
242         <th align="right">[% 'our vendor number at customer' | $T8 %]</th>
243         <td>
244           [% L.input_tag('cv.c_vendor_id', SELF.cv.c_vendor_id, size = 10) %]
245         </td>
246       [%- END %]
247     </tr>
248
249     <tr>
250       <th align="right">[% 'Account Number' | $T8 %]</th>
251
252       <td>
253         [% L.input_tag('cv.account_number', SELF.cv.account_number, size = 20, maxlength = 100) %]
254       </td>
255
256
257       <th align="right">[% 'Bank Code Number' | $T8 %]</th>
258
259       <td>
260         [% L.input_tag('cv.bank_code', SELF.cv.bank_code, size = 20, maxlength = 100) %]
261       </td>
262
263
264       <th align="right">[% 'Bank' | $T8 %]</th>
265
266       <td>
267         [% L.input_tag('cv.bank', SELF.cv.bank, size = 20) %]
268       </td>
269     </tr>
270
271     <tr>
272       <th align="right">[% 'IBAN' | $T8 %]</th>
273
274       <td>
275         [% L.input_tag('cv.iban', SELF.cv.iban, size = 34, maxlength = 100) %]
276       </td>
277
278
279       <th align="right">[% 'BIC' | $T8 %]</th>
280       <td>
281         [% L.input_tag('cv.bic', SELF.cv.bic, size = 11, maxlength = 100) %]
282       </td>
283
284
285       [% IF ( SELF.all_currencies.size ) %]
286         <th align="right">[% 'Currency' | $T8 %]</th>
287
288         <td>
289           [% L.select_tag('cv.currency_id', SELF.all_currencies, title_key = 'name', value_key = 'id', default = SELF.cv.currency_id) %]
290         </td>
291       [% END %]
292     </tr>
293
294     <tr>
295       [% IF ( !INSTANCE_CONF.get_vertreter ) %]
296         <th align="right">
297           [% IF ( SELF.is_vendor() ) %]
298             [% 'Type of Vendor' | $T8 %]
299           [% ELSE %]
300             [% 'Type of Customer' | $T8 %]
301           [% END %]
302         </th>
303
304         <td>
305           [% L.select_tag('cv.business_id', SELF.all_business, default = SELF.cv.business_id, value_key = 'id', title_key = 'description', with_empty = 1) %]
306         </td>
307       [% END %]
308
309
310       <th align="right">[% 'Language' | $T8 %]</th>
311
312       <td>
313         [% L.select_tag('cv.language_id', SELF.all_languages, default = SELF.cv.language_id, value_key = 'id', title_key = 'description', with_empty = 1) %]
314       </td>
315
316       <th align="right">[% 'Delivery Terms' | $T8 %]</th>
317
318       <td>
319         [% L.select_tag('cv.delivery_term_id', SELF.all_delivery_terms, default = SELF.cv.delivery_term_id, value_key = 'id', title_key = 'description', with_empty = 1) %]
320       </td>
321
322     </tr>
323
324     <tr>
325       <td align="right">
326         <label for="cv_obsolete">[% 'Obsolete' | $T8 %]</label>
327       </td>
328
329       <td>
330         [% L.checkbox_tag('cv.obsolete', checked = SELF.cv.obsolete, for_submit=1) %]
331       </td>
332
333
334       <td align="right">
335         <label for="cv_direct_debit">[% 'direct debit' | $T8 %]</label>
336       </td>
337
338       <td>
339         [% L.checkbox_tag('cv.direct_debit', checked = SELF.cv.direct_debit, for_submit=1) %]
340       </td>
341
342       [% IF ( SELF.is_customer() ) %]
343         <th align="right">[% 'Preisklasse' | $T8 %]</th>
344
345         <td>
346           [% L.select_tag('cv.klass', SELF.all_pricegroups, default = SELF.cv.klass, value_key = 'id', title_key = 'pricegroup', with_empty = 1) %]
347         </td>
348       [% END  %]
349
350     </tr>
351
352     <tr>
353       <th align="right">[% 'Steuersatz' | $T8 %]</th>
354
355       <td>
356         [% L.select_tag('cv.taxzone_id', SELF.all_taxzones, default = SELF.cv.taxzone_id, value_key = 'id', title_key = 'description') %]
357       </td>
358
359
360       [% IF ( SELF.is_customer() && !INSTANCE_CONF.get_vertreter ) %]
361         <th align="right">[% 'Salesman' | $T8 %]</th>
362
363         <td>
364           [% L.select_tag('cv.salesman_id', SELF.all_salesmen, default = SELF.cv.salesman_id, value_key = 'id', title_key = 'safe_name', with_empty = 1) %]
365         </td>
366       [%- END %]
367
368       [% IF ( SELF.is_customer() ) %]
369         <td>[% 'taxincluded checked' | $T8 %]</td>
370
371         <td>
372           [% 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) %]
373         </td>
374       [% END %]
375
376     </tr>
377   </table>
378
379   <table>
380     <tr>
381       <th align="left" nowrap>[% 'Internal Notes' | $T8 %]</th>
382     </tr>
383
384     <tr>
385       <td>
386         [% L.textarea_tag('cv.notes', SELF.cv.notes, rows = 3 cols = 60 wrap = soft) %]
387       </td>
388     </tr>
389   </table>
390 </div>