]> wagnertech.de Git - mfinanz.git/blob - templates/webpages/customer_vendor/tabs/billing.html
date error in mapping
[mfinanz.git] / templates / webpages / customer_vendor / tabs / billing.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 [%- USE LxERP %]
4 [%- USE L %]
5 [%- USE P %]
6 [%- USE JavaScript -%]
7
8 <div id="billing">
9   <table width="100%">
10
11     <tr height="5"></tr>
12
13     [% IF (0 && INSTANCE_CONF.get_vertreter ) %]
14       <tr>
15         <th align="right">
16           [% IF SELF.is_vendor() %]
17             [% 'Type of Vendor' | $T8 %]
18           [% ELSE %]
19             [% 'Type of Customer' | $T8 %]
20           [% END %]
21         </th>
22
23         <td>
24           [% L.select_tag('cv.business_id', SELF.all_business, value_key = 'id', title_key = 'description', default = SELF.cv.business_id, with_empty = 1) %]
25         </td>
26       </tr>
27
28       <tr>
29         <th align="right">
30           [% 'Representative' | $T8 %]
31         </th>
32
33         <td>
34           [% L.select_tag('cv.salesman_id', SELF.all_salesman_customers, default = SELF.cv.salesman_id, value_key = 'id', title_key = 'name', with_empty = 1) %]
35         </td>
36       </tr>
37
38     [%- END %]
39
40     <tr>
41       [% IF SELF.is_vendor() %]
42         <th align="right" nowrap>[% 'Vendor Number' | $T8 %]</th>
43         <td>
44           [% L.input_tag_trim('cv.vendornumber', SELF.cv.vendornumber) %]
45         </td>
46       [%- ELSE %]
47         <th align="right" nowrap>[% 'Customer Number' | $T8 %]</th>
48         <td>
49           [% L.input_tag_trim('cv.customernumber', SELF.cv.customernumber) %]
50         </td>
51       [%- END %]
52     </tr>
53
54     <tr>
55       <th align="right" nowrap>[% 'Greeting' | $T8 %]</th>
56
57       <td>
58         [%- IF INSTANCE_CONF.get_vc_greetings_use_textfield -%]
59           [% L.input_tag_trim('cv.greeting', SELF.cv.greeting) %]
60           [% L.select_tag('cv_greeting_select', SELF.all_greetings, default = SELF.cv.greeting, value_key = 'description', title_key = 'description', with_empty = 1, onchange = '$("#cv_greeting").val(this.value);') %]
61         [%- ELSE -%]
62           [% L.select_tag('cv.greeting', SELF.all_greetings, default = SELF.cv.greeting, value_key = 'description', title_key = 'description', with_empty = 1) %]
63         [%- END -%]
64       </td>
65     </tr>
66
67     <tr>
68       <th align="right" nowrap>
69         [% IF SELF.is_vendor() %]
70           [% 'Vendor Name' | $T8 %]
71         [%- ELSE %]
72           [% 'Customer Name' | $T8 %]
73         [%- END %]
74       </th>
75
76       <td>
77         [% L.input_tag_trim('cv.name', SELF.cv.name) %]
78         <label for="cv_natural_person">[% 'natural person' | $T8 %]</label>
79         [% L.checkbox_tag('cv.natural_person', checked = SELF.cv.natural_person, for_submit=1) %]
80       </td>
81     </tr>
82
83     <tr>
84       <th align="right" nowrap>[% 'Department' | $T8 %]</th>
85
86       <td>
87         [% L.input_tag_trim('cv.department_1', SELF.cv.department_1, size = 16) %]
88         [% L.input_tag_trim('cv.department_2', SELF.cv.department_2, size = 16) %]
89       </td>
90     </tr>
91
92     <tr>
93       <th align="right" nowrap>[% 'Street' | $T8 %]</th>
94
95       <td>
96         [% L.input_tag_trim('cv.street', SELF.cv.street, size = 35) %]
97         <span id="billing_map"></span>
98         <script type="text/javascript">
99           billingMapWidget = new kivi.CustomerVendor.MapWidget('cv_', '[% JavaScript.escape(SELF.home_address_for_google_maps) %]');
100           $(function() {
101             billingMapWidget.render($('#billing_map'));
102           });
103         </script>
104       </td>
105     </tr>
106
107     <tr>
108       <th align="right" nowrap>[% 'Zipcode' | $T8 %]/[% 'City' | $T8 %]</th>
109
110       <td>
111         [% L.input_tag_trim('cv.zipcode', SELF.cv.zipcode, size = 5) %]
112         [% L.input_tag_trim('cv.city', SELF.cv.city, size = 30) %]
113       </td>
114     </tr>
115
116     <tr>
117       <th align="right" nowrap>[% 'Country' | $T8 %]</th>
118
119       <td>
120         [% L.input_tag_trim('cv.country', SELF.cv.country, size = 30) %]
121       </td>
122     </tr>
123
124     <tr>
125       <th align="right" nowrap>[% 'GLN' | $T8 %]</th>
126
127       <td>
128         [% L.input_tag_trim('cv.gln', SELF.cv.gln, size = 30) %]
129       </td>
130     </tr>
131
132     <tr>
133       <th align="right" nowrap>[% 'Contact' | $T8 %]</th>
134
135       <td>
136         [% L.input_tag_trim('cv.contact', SELF.cv.contact, size = 28) %]
137       </td>
138     </tr>
139
140     <tr>
141       <th align="right" nowrap>[% 'Phone' | $T8 %]</th>
142
143       <td>
144         [% L.input_tag_trim('cv.phone', SELF.cv.phone, size = 30) %]
145       </td>
146     </tr>
147
148     <tr>
149       <th align="right" nowrap>[% 'Fax' | $T8 %]</th>
150
151       <td>
152         [% L.input_tag_trim('cv.fax', SELF.cv.fax, size = 30) %]
153       </td>
154     </tr>
155
156     <tr>
157       <th align="right" nowrap>[% 'E-mail' | $T8 %]</th>
158
159       <td>
160         [% P.input_email_tag('cv.email', SELF.cv.email, size = 45) %]
161       </td>
162     </tr>
163
164     <tr>
165       <th align="right">[% 'Cc E-mail' | $T8 %]</th>
166
167       <td>
168         [% P.input_email_tag('cv.cc', SELF.cv.cc, size = 45) %]
169       </td>
170     </tr>
171
172     <tr>
173       <th align="right">[% 'Bcc E-mail' | $T8 %]</th>
174
175       <td>
176         [% P.input_email_tag('cv.bcc', SELF.cv.bcc, size = 45) %]
177       </td>
178     </tr>
179     [% IF ( SELF.is_customer() ) %]
180     <tr>
181       <th align="right">[% 'Email of the invoice recipient' | $T8 %]</th>
182       <td>[% P.input_email_tag('cv.invoice_mail', SELF.cv.invoice_mail, size = 30) %] <label for="cv_postal_invoice">[% 'Postal Invoice' | $T8 %]</label>
183         [% L.checkbox_tag('cv.postal_invoice', checked = SELF.cv.postal_invoice, for_submit=1) %]</td>
184     </tr>
185     <tr>
186       <th align="right">[% 'Email of the dunning recipient' | $T8 %]</th>
187       <td>[% P.input_email_tag('cv.dunning_mail', SELF.cv.dunning_mail, size = 30) %]</td>
188     </tr>
189
190     <tr>
191       <th align="right">[% 'Email of the delivery order recipient' | $T8 %]</th>
192       <td>[% P.input_email_tag('cv.delivery_order_mail', SELF.cv.delivery_order_mail, size = 45) %]</td>
193     </tr>
194     [% END %]
195     <tr>
196       <th align="right" nowrap>
197         [% IF SELF.cv.homepage %]
198           <a href="[% HTML.escape(SELF.cv.homepage) %]" title="[% 'Open this Website' | $T8 %]" target="_blank">[% 'Homepage' | $T8 %]</a>
199         [% ELSE %]
200           [% 'Homepage' | $T8 %]
201         [% END %]
202       </th>
203
204       <td>
205         [% L.input_tag_trim('cv.homepage', SELF.cv.homepage, size = 45, title = LxERP.t8('Example: http://kivitendo.de')) %]
206       </td>
207     </tr>
208
209     <tr>
210       <th align="right" nowrap>[% 'Username' | $T8 %]</th>
211
212       <td>
213         [% L.input_tag_trim('cv.username', SELF.cv.username, size = 45) %]
214       </td>
215     </tr>
216
217     <tr>
218       <th align="right" nowrap>[% 'Password' | $T8 %]</th>
219
220       <td>
221         [% L.input_tag_trim('cv.user_password', SELF.cv.user_password, size = 45) %]
222       </td>
223     </tr>
224   </table>
225
226
227   <table>
228
229     <tr>
230       <th align="right">[% 'Credit Limit' | $T8 %]</th>
231
232       <td>
233         [% L.input_tag_trim('cv.creditlimit_as_number', SELF.cv.creditlimit_as_number, size = 9) %]
234       </td>
235
236
237       <th align="right">[% 'Payment Terms' | $T8 %]</th>
238
239       <td>
240         [% L.select_tag('cv.payment_id', SELF.all_payment_terms, value_key = 'id', title_key = 'description', default = SELF.cv.payment_id, with_empty = 1) %]
241       </td>
242
243
244       <th align="right">[% 'Discount' | $T8 %]</th>
245
246       <td>
247         [% L.input_tag_trim('cv.discount_as_percent', SELF.cv.discount_as_percent, size = 4) %]%
248       </td>
249     </tr>
250
251     <tr>
252       [% IF ( SELF.all_currencies.size ) %]
253         <th align="right">[% 'Currency' | $T8 %]</th>
254         <td>
255           [% L.select_tag('cv.currency_id', SELF.all_currencies, title_key = 'name', value_key = 'id', default = SELF.cv.currency_id) %]
256         </td>
257       [% END %]
258
259       <th align="right">[% 'Tax Number / SSN' | $T8 %]</th>
260
261       <td>
262         [% L.input_tag_trim('cv.taxnumber', SELF.cv.taxnumber, size = 20) %]
263       </td>
264
265
266       <!-- 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 -->
267       <th align="right">[% 'sales tax identification number' | $T8 %]</th>
268
269       <td>
270         [% L.input_tag_trim('cv.ustid', SELF.cv.ustid, size = 20 ) %]
271       </td>
272     </tr>
273
274     <tr>
275       [% IF ( SELF.is_customer() ) %]
276         <th align="right">[% 'Commercial court' | $T8 %]</th>
277         <td>
278           [% L.input_tag_trim('cv.commercial_court', SELF.cv.commercial_court, size = 20) %]
279         </td>
280
281         <th align="right">[% 'our vendor number at customer' | $T8 %]</th>
282         <td>
283           [% L.input_tag_trim('cv.c_vendor_id', SELF.cv.c_vendor_id, size = 20) %]
284         </td>
285
286         <th align="right">[% 'Our routing id at customer' | $T8 %]</th>
287         <td>
288           [% L.input_tag_trim('cv.c_vendor_routing_id', SELF.cv.c_vendor_routing_id, size = 20) %]
289         </td>
290
291       [%- ELSE %]
292         <th align="right">[% 'Customer Number' | $T8 %]</th>
293         <td>
294           [% L.input_tag_trim('cv.v_customer_id', SELF.cv.v_customer_id, size = 20) %]
295         </td>
296       [%- END %]
297     </tr>
298     <tr>
299       [% IF ( !INSTANCE_CONF.get_vertreter ) %]
300         <th align="right">
301           [% IF ( SELF.is_vendor() ) %]
302             [% 'Type of Vendor' | $T8 %]
303           [% ELSE %]
304             [% 'Type of Customer' | $T8 %]
305           [% END %]
306         </th>
307
308         <td>
309           [% L.select_tag('cv.business_id', SELF.all_business, default = SELF.cv.business_id, value_key = 'id', title_key = 'description', with_empty = 1) %]
310         </td>
311       [% END %]
312
313
314       <th align="right">[% 'Language' | $T8 %]</th>
315
316       <td>
317         [% L.select_tag('cv.language_id', SELF.all_languages, default = SELF.cv.language_id, value_key = 'id', title_key = 'description', with_empty = 1) %]
318       </td>
319
320       <th align="right">[% 'Delivery Terms' | $T8 %]</th>
321
322       <td>
323         [% 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) %]
324       </td>
325
326     </tr>
327
328     <tr>
329       <td align="right">
330         <label for="cv_obsolete">[% 'Obsolete' | $T8 %]</label>
331       </td>
332
333       <td>
334         [% L.checkbox_tag('cv.obsolete', checked = SELF.cv.obsolete, for_submit=1) %]
335       </td>
336
337
338       <td align="right">
339         <label for="cv_direct_debit">[% 'direct debit' | $T8 %]</label>
340       </td>
341
342       <td>
343         [% L.checkbox_tag('cv.direct_debit', checked = SELF.cv.direct_debit, for_submit=1) %]
344       </td>
345
346       [% IF ( SELF.is_customer() ) %]
347         <th align="right">[% 'Price group' | $T8 %]</th>
348
349         <td>
350           [% L.select_tag('cv.pricegroup_id', SELF.all_pricegroups, default = SELF.cv.pricegroup_id, value_key = 'id', title_key = 'pricegroup', with_empty = 1) %]
351         </td>
352       [% END  %]
353
354     </tr>
355
356     <tr>
357       <th align="right">[% 'Tax rate' | $T8 %]</th>
358
359       <td>
360         [% L.select_tag('cv.taxzone_id', SELF.all_taxzones, default = SELF.cv.taxzone_id, value_key = 'id', title_key = 'description') %]
361       </td>
362
363
364       [% IF ( SELF.is_customer() && !INSTANCE_CONF.get_vertreter ) %]
365         <th align="right">[% 'Salesman' | $T8 %]</th>
366
367         <td>
368           [% L.select_tag('cv.salesman_id', SELF.all_salesmen, default = SELF.cv.salesman_id, value_key = 'id', title_key = 'safe_name', with_empty = 1) %]
369         </td>
370       [%- END %]
371
372       [% IF ( SELF.is_customer() ) %]
373         <td>[% 'taxincluded checked' | $T8 %]</td>
374
375         <td>
376           [% 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) %]
377         </td>
378       [% END %]
379
380     </tr>
381
382     [% IF ( SELF.is_customer() ) %]
383      <tr>
384       <th align="right">[%- LxERP.t8("Hourly rate") %]</th>
385       <td>[% L.input_tag_trim("cv.hourly_rate_as_number", SELF.cv.hourly_rate_as_number) %]</td>
386       <th align="right" valign="top" nowrap>[% 'Shoporderlock' | $T8 %]</th>
387       <td>
388         [% L.checkbox_tag('cv.order_lock', checked = SELF.cv.order_lock, for_submit=1) %]
389       </td>
390       <th align="right" valign="top" nowrap>[% 'Dunning lock' | $T8 %]</th>
391       <td>[% L.checkbox_tag('cv.dunning_lock', checked = SELF.cv.dunning_lock, for_submit=1) %]</td>
392      </tr>
393      <tr>
394       <th align="right" colspan="3">[% LxERP.t8("Create sales invoices with Factur-X/ZUGFeRD data") %]</th>
395       <td colspan="3">[% L.select_tag("cv.create_zugferd_invoices", SELF.zugferd_settings, default=SELF.cv.create_zugferd_invoices) %]</td>
396      </tr>
397     [% END %]
398   </table>
399
400   <table>
401     <tr>
402       <th align="left" nowrap>[% 'Internal Notes' | $T8 %]</th>
403     [% IF ( SELF.is_customer() ) %]
404       <th align="left">[% 'Origin of personal data' | $T8 %]</th>
405     [% END %]
406     </tr>
407     <tr>
408       <td>
409         [% L.textarea_tag('cv.notes', SELF.cv.notes, rows = 3 cols = 60 wrap = soft) %]
410       </td>
411     [% IF ( SELF.is_customer() ) %]
412       <td>
413         [% L.textarea_tag('cv.contact_origin', SELF.cv.contact_origin,  rows = 3 cols = 60 wrap = soft) %]
414       </td>
415     [% END %]
416     </tr>
417   </table>
418 </div>