Kunden->Lieferanten Dialog mit Links versehen.
[kivitendo-erp.git] / templates / webpages / ct / form_header_de.html
1 [% USE HTML %][% USE LxERP %]<body onLoad="fokus()">
2
3  <div class="listtop">[% title %]</div>
4
5  <form method="post" name="ct" action="ct.pl">
6
7   <ul id="maintab" class="shadetabs">
8    <li class="selected"><a href="#" rel="billing">Rechnungsadresse</a></li>
9    <li><a href="#" rel="shipto">Lieferadresse</a></li>
10    <li><a href="#" rel="contacts">Ansprechpartner</a></li>
11    <li><a href="#" rel="deliveries">Lieferungen</a></li>
12    <li><a href="#" rel="vcnotes">Bemerkungen</a></li>
13    [%- IF CUSTOM_VARIABLES.size %]
14    <li><a href="#" rel="custom_variables">Benutzerdefinierte Variablen</a></li>
15    [%- END %]
16   </ul>
17
18   <div class="tabcontentstyle">
19
20    <div id="billing" class="tabcontent">
21
22     <table width="100%">
23      <tr height="5"></tr>
24      <tr>
25       [%- IF is_customer %]
26       <th align="right" nowrap>Kundennummer</th>
27       <td><input name="customernumber" size="35" value="[% HTML.escape(customernumber) %]"></td>
28       [%- ELSE %]
29       <th align="right" nowrap>Lieferantennummer</th>
30       <td><input name="vendornumber" size="35" value="[% HTML.escape(vendornumber) %]"></td>
31       [%- END %]
32      </tr>
33
34      <tr>
35       <th align="right" nowrap>Anrede</th>
36       <td>
37        <input id="greeting" name="greeting" size="30" value="[% HTML.escape(greeting) %]">&nbsp;
38        [%- INCLUDE generic/multibox.html
39              name       = 'selected_company_greeting',
40              DATA       = MB_COMPANY_GREETINGS,
41              show_empty = 1,
42              id_key     = 'id',
43              label_key  = 'description',
44        -%]
45       </td>
46      </tr>
47
48      <tr>
49       <th align="right" nowrap>Firmenname</th>
50       <td><input name="name" size="35" maxlength="75" value="[% HTML.escape(name) %]"></td>
51      </tr>
52
53      <tr>
54       <th align="right" nowrap>Abteilung</th>
55       <td>
56        <input name="department_1" size="16" maxlength="75" value="[% HTML.escape(department_1) %]">
57        <input name="department_2" size="16" maxlength="75" value="[% HTML.escape(department_2) %]">
58       </td>
59      </tr>
60
61      <tr>
62       <th align="right" nowrap>Straße</th>
63       <td><input name="street" size="35" maxlength="75" value="[% HTML.escape(street) %]"></td>
64      </tr>
65
66      <tr>
67       <th align="right" nowrap>PLZ/Stadt</th>
68       <td>
69        <input name="zipcode" size="5" maxlength="10" value="[% HTML.escape(zipcode) %]">
70        <input name="city" size="30" maxlength="75" value="[% HTML.escape(city) %]">
71       </td>
72      </tr>
73
74      <tr>
75       <th align="right" nowrap>Land</th>
76       <td><input name="country" size="35" maxlength="75" value="[% HTML.escape(country) %]"></td>
77      </tr>
78
79      <tr>
80       <th align="right" nowrap>Kontakt</th>
81       <td><input name="contact" size="28" maxlength="75" value="[% HTML.escape(contact) %]"></td>
82      </tr>
83
84      <tr>
85       <th align="right" nowrap>Telefon</th>
86       <td><input name="phone" size="30" maxlength="30" value="[% HTML.escape(phone) %]"></td>
87      </tr>
88
89      <tr>
90       <th align="right" nowrap>Fax</th>
91       <td><input name="fax" size="30" maxlength="30" value="[% HTML.escape(fax) %]"></td>
92      </tr>
93
94      <tr>
95       <th align="right" nowrap>eMail</th>
96       <td><input name="email" size="45" value="[% HTML.escape(email) %]"></td>
97      </tr>
98
99      <tr>
100       <th align="right" nowrap>Homepage</th>
101       <td><input name="homepage" size="45" value="[% HTML.escape(homepage) %]"></td>
102      </tr>
103     </table>
104
105     <table>
106      <tr>
107       <th align="right">Kreditlimit</th>
108       <td><input name="creditlimit" size="9" value="[% LxERP.format_amount(creditlimit, 0) %]"></td>
109       <input type="hidden" name="terms" value="[% HTML.escape(terms) %]">
110       <th align="right">Zahlungskonditionen</th>
111       <td>
112        [%- INCLUDE generic/multibox.html
113              name       = 'payment_id',
114              DATA       = payment_terms,
115              show_empty = 1,
116              id_key     = 'id',
117              label_key  = 'description',
118        -%]
119       </td>
120
121       <th align="right">Rabatt</th>
122       <td><input name="discount" size="4" value="[% LxERP.format_amount(discount) %]"> %</td>
123      </tr>
124
125      <tr>
126       <th align="right">Steuernummer</th>
127       <td><input name="taxnumber" size="20" value="[% HTML.escape(taxnumber) %]"></td>
128       <!-- 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 -->
129         <th align="right">USt-IdNr.</th>
130       <td><input name="ustid" maxlength="14" size="20" value="[% HTML.escape(ustid) %]"></td>
131       [%- IF is_customer %]
132       <th align="right">unsere Lieferanten-Nr. beim Kunden</th>
133       <td><input name="c_vendor_id" size="10" value="[% HTML.escape(c_vendor_id) %]"></td>
134       [%- ELSE %]
135       <th align="right">Kundennummer</th>
136         <td><input name="v_customer_id" size="10" value="[% HTML.escape(v_customer_id) %]"></td>
137       [%- END %]
138      </tr>
139
140      <tr>
141       <th align="right">Kontonummer</th>
142       <td><input name="account_number" size="10" maxlength="15" value="[% HTML.escape(account_number) %]"></td>
143       <th align="right">Bankleitzahl</th>
144       <td><input name="bank_code" size="10" maxlength="10" value="[% HTML.escape(bank_code) %]"></td>
145       <th align="right">Bank</th>
146       <td><input name="bank" size="30" value="[% HTML.escape(bank) %]"></td>
147      </tr>
148
149      <tr>
150       <th align="right">Kunden-/Lieferantentyp</th>
151       <td>
152        [%- INCLUDE generic/multibox.html
153              name       = 'business',
154              DATA       = all_business,
155              show_empty = 1,
156              id_key     = 'id',
157              label_key  = 'description',
158        -%]
159       </td>
160       <th align="right">Sprache</th>
161       <td>
162        [%- INCLUDE generic/multibox.html
163              name       = 'language_id',
164              DATA       = languages,
165              show_empty = 1,
166              id_key     = 'id',
167              label_key  = 'description',
168        -%]
169       </td>
170
171       [%- IF is_customer %]
172       <th align="right">Preisgruppe</th>
173       <td>
174        [%- INCLUDE generic/multibox.html
175              name       = 'klass',
176              DATA       = all_pricegroup,
177              show_empty = 1,
178              id_key     = 'id',
179              label_key  = 'pricegroup',
180        -%]
181       </td>
182       [%- END  %]
183      </tr>
184
185      <tr>
186       <td align="right">Ungültig</td>
187       <td><input name="obsolete" class="checkbox" type="checkbox" value="1" [% IF obsolete %]checked[% END %]></td>
188       <td align="right">Lastschrift</td>
189       <td><input name="direct_debit" class="checkbox" type="checkbox" value="1" [% IF direct_debit %]checked[% END %]></td>
190      </tr>
191
192      <tr>
193       <th align="right">Steuersatz</th>
194       <td>
195        [%- INCLUDE generic/multibox.html
196              name       = 'taxzone_id',
197              DATA       = ALL_TAXZONES,
198              show_empty = 1,
199              id_key     = 'id',
200              label_key  = 'description',
201        -%]
202       </td>
203       [%- IF is_customer %]
204       <th align="right">Verkäufer/in</th>
205       <td>
206        [%- INCLUDE generic/multibox.html
207              name       = 'salesman_id',
208              DATA       = ALL_SALESMEN,
209              show_empty = 1,
210              id_key     = 'id',
211              label_sub  = 'salesman_label',
212        -%]
213       </td>
214       [%- END %]
215      </tr>
216     </table>
217
218     <table>
219      <tr>
220       <th align="left" nowrap>Bemerkungen</th>
221      </tr>
222
223      <tr>
224       <td><textarea name="notes" rows="3" cols="60" wrap="soft">[% HTML.escape(notes) %]</textarea></td>
225      </tr>
226     </table>
227
228     <br style="clear: left" />
229    </div>
230
231    <div id="shipto" class="tabcontent">
232
233     <table width="100%">
234      <tr>
235       <th align="right">Lieferadresse</th>
236       <td>
237        [%- INCLUDE generic/multibox.html
238              name       = 'shipto_id',
239              id         = 'shipto_id',
240              DATA       = SHIPTO,
241              onChange   = "get_shipto(['shipto_id__' + this.value], ['shiptoname','shiptodepartment_1', 'shiptodepartment_2','shiptostreet','shiptozipcode','shiptocity','shiptocountry','shiptocontact','shiptophone','shiptofax','shiptoemail',enable_delete_shipto])",
242              id_key     = 'shipto_id',
243              label_sub  = 'shipto_label',
244              label_key  = 'shipto_label',
245        -%]
246       </td>
247      </tr>
248
249      <tr>
250       <th align="right" nowrap>Firmenname</th>
251       <td><input id="shiptoname" name="shiptoname" size="35" maxlength="75" value="[% HTML.escape(shiptoname) %]"></td>
252      </tr>
253
254      <tr>
255       <th align="right" nowrap>Abteilung</th>
256       <td>
257        <input id="shiptodepartment_1" name="shiptodepartment_1" size="16" maxlength="75" value="[% HTML.escape(shiptodepartment_1) %]">
258        <input id="shiptodepartment_2" name="shiptodepartment_2" size="16" maxlength="75" value="[% HTML.escape(shiptodepartment_2) %]">
259       </td>
260      </tr>
261
262      <tr>
263       <th align="right" nowrap>Straße</th>
264       <td><input id="shiptostreet" name="shiptostreet" size="35" maxlength="75" value="[% HTML.escape(shiptostreet) %]"></td>
265      </tr>
266
267      <tr>
268       <th align="right" nowrap>PLZ/Stadt</th>
269       <td>
270        <input id="shiptozipcode" name="shiptozipcode" size="5" maxlength="75" value="[% HTML.escape(shiptozipcode) %]">
271        <input id="shiptocity" name="shiptocity" size="30" maxlength="75" value="[% HTML.escape(shiptocity) %]">
272       </td>
273      </tr>
274
275      <tr>
276       <th align="right" nowrap>Land</th>
277       <td><input id="shiptocountry" name="shiptocountry" size="35" maxlength="75" value="[% HTML.escape(shiptocountry) %]"></td>
278      </tr>
279
280      <tr>
281       <th align="right" nowrap>Kontakt</th>
282       <td><input id="shiptocontact" name="shiptocontact" size="30" maxlength="75" value="[% HTML.escape(shiptocontact) %]"></td>
283      </tr>
284
285      <tr>
286       <th align="right" nowrap>Telefon</th>
287       <td><input id="shiptophone" name="shiptophone" size="30" maxlength="30" value="[% HTML.escape(shiptophone) %]"></td>
288      </tr>
289
290      <tr>
291       <th align="right" nowrap>Fax</th>
292       <td><input id="shiptofax" name="shiptofax" size="30" maxlength="30" value="[% HTML.escape(shiptofax) %]"></td>
293      </tr>
294
295      <tr>
296       <th align="right" nowrap>eMail</th>
297       <td><input id="shiptoemail" name="shiptoemail" size="45" value="[% HTML.escape(shiptoemail) %]"></td>
298      </tr>
299
300      <tr>
301       <td>&nbsp;</td>
302      </tr>
303      <tr>
304       <td>&nbsp;</td>
305      </tr>
306     </table>
307
308     <input type="submit" id="delete_shipto" name="action" value="Lieferadresse löschen" disabled>
309     <br style="clear: left" />
310    </div>
311
312    <div id="contacts" class="tabcontent">
313     <table>
314      <input type="hidden" name="cp_id" value="[% HTML.escape(cp_id) %]">
315      <tr>
316       <th align="right">Ansprechpartner</th>
317       <td>
318        [%- INCLUDE generic/multibox.html
319              name       = 'cp_id',
320              id         = 'cp_id',
321              DATA       = CONTACTS,
322              onChange   = "get_contact(['cp_id__'+this.value],['cp_name','cp_greeting','cp_title','cp_givenname','cp_phone1','cp_phone2','cp_email','cp_abteilung','cp_fax','cp_mobile1','cp_mobile2','cp_satphone','cp_satfax','cp_project','cp_privatphone','cp_privatemail','cp_birthday',enable_delete_contact])",
323              id_key     = 'cp_id',
324              label_sub  = 'contacts_label',
325        -%]
326       </td>
327      </tr>
328
329      <tr>
330       <th align="left" nowrap>Anrede</th>
331       <td>
332        <input id="cp_greeting" name="cp_greeting" size="40" maxlength="75" value="[% HTML.escape(cp_greeting) %]">&nbsp;
333         [%- INCLUDE generic/multibox.html
334               name       = 'selected_cp_greeting',
335               DATA       = MB_GREETINGS,
336               show_empty = 1,
337               id_key     = 'id',
338               label_key  = 'description',
339         -%]
340       </td>
341      </tr>
342
343      <tr>
344       <th align="left" nowrap>Titel</th>
345       <td>
346        <input id="cp_title" name="cp_title" size="40" maxlength="75" value="[% HTML.escape(cp_title) %]">&nbsp;
347        [%- INCLUDE generic/multibox.html
348              name       = 'selected_cp_title',
349              DATA       = MB_TITLES,
350              show_empty = 1,
351              id_key     = 'id',
352              label_key  = 'description',
353        -%]
354       </td>
355      </tr>
356
357      <tr>
358       <th align="left" nowrap>Abteilung</th>
359       <td>
360        <input id="cp_abteilung" name="cp_abteilung" size="40" value="[% HTML.escape(cp_abteilung) %]">&nbsp;
361        [%- INCLUDE generic/multibox.html
362              name       = 'selected_cp_abteilung',
363              DATA       = MB_DEPARTMENT,
364              show_empty = 1,
365              id_key     = 'id',
366              label_key  = 'description',
367        -%]
368       </td>
369      </tr>
370
371      <tr>
372       <th align="left" nowrap>Vorname</th>
373       <td><input id="cp_givenname" name="cp_givenname" size="40" maxlength="75" value="[% HTML.escape(cp_givenname) %]"></td>
374      </tr>
375
376      <tr>
377       <th align="left" nowrap>Name</th>
378       <td><input id="cp_name" name="cp_name" size="40" maxlength="75" value="[% HTML.escape(cp_name) %]"></td>
379      </tr>
380
381      <tr>
382       <th align="left" nowrap>Telefon 1 </th>
383       <td><input id="cp_phone1" name="cp_phone1" size="40" maxlength="75" value="[% HTML.escape(cp_phone1) %]"></td>
384      </tr>
385
386      <tr>
387       <th align="left" nowrap>Telefon 2</th>
388       <td><input id="cp_phone2" name="cp_phone2" size="40" maxlength="75" value="[% HTML.escape(cp_phone2) %]"></td>
389      </tr>
390
391      <tr>
392       <th align="left" nowrap>Fax</th>
393       <td><input id="cp_fax" name="cp_fax" size="40" value="[% HTML.escape(cp_fax) %]"></td>
394      </tr>
395
396      <tr>
397       <th align="left" nowrap>Mobile 1</th>
398       <td><input id="cp_mobile1" name="cp_mobile1" size="40" value="[% HTML.escape(cp_mobile1) %]"></td>
399      </tr>
400
401      <tr>
402       <th align="left" nowrap>Mobile 2</th>
403       <td><input id="cp_mobile2" name="cp_mobile2" size="40" value="[% HTML.escape(cp_mobile2) %]"></td>
404      </tr>
405
406      <tr>
407       <th align="left" nowrap>Sat. Tel.</th>
408       <td><input id="cp_satphone" name="cp_satphone" size="40" value="[% HTML.escape(cp_satphone) %]"></td>
409      </tr>
410
411      <tr>
412       <th align="left" nowrap>Sat. Fax</th>
413       <td><input id="cp_satfax" name="cp_satfax" size="40" value="[% HTML.escape(cp_satfax) %]"></td>
414      </tr>
415
416      <tr>
417       <th align="left" nowrap>Projekt</th>
418       <td><input id="cp_project" name="cp_project" size="40" value="[% HTML.escape(cp_project) %]"></td>
419      </tr>
420
421      <tr>
422       <th align="left" nowrap>eMail</th>
423       <td><input id="cp_email" name="cp_email" size="40" value="[% HTML.escape(cp_email) %]"></td>
424      </tr>
425
426      <tr>
427       <th align="left" nowrap>Privates Tel.</th>
428       <td><input id="cp_privatphone" name="cp_privatphone" size="40" value="[% HTML.escape(cp_privatphone) %]"></td>
429      </tr>
430
431      <tr>
432       <th align="left" nowrap>Private eMail</th>
433       <td><input id="cp_privatemail" name="cp_privatemail" size="40" value="[% HTML.escape(cp_privatemail) %]"></td>
434      </tr>
435
436      <tr>
437       <th align="left" nowrap>Geburtstag</th>
438       <td><input id="cp_birthday" name="cp_birthday" size="40" value="[% HTML.escape(cp_birthday) %]"></td>
439      </tr>
440
441      <tr>
442       <td colspan="2"><hr></td>
443      </tr>
444
445      <tr>
446       <th align="left" nowrap>Bcc</th>
447       <td><input name="bcc" size="40" value="[% HTML.escape(bcc) %]"></td>
448      </tr>
449     </table>
450
451     <input type="submit" id="delete_contact" name="action" value="Ansprechpartner löschen" disabled>
452     <br style="clear: left" />
453    </div>
454
455    <div id="deliveries" class="tabcontent">
456     <table>
457      <tr>
458       <th align="right">Lieferadresse</th>
459       <td>
460        [%- INCLUDE generic/multibox.html
461              name       = 'delivery_id',
462              id         = 'delivery_id',
463              DATA       = SHIPTO,
464              onChange   = "get_delivery(['shipto_id__' + this.value, 'from__' + from.value, 'to__' + to.value, 'id__' + cvid.value, 'db__' + db.value], ['delivery'])",
465              id_key     = 'shipto_id',
466              label_sub  = 'shipto_label',
467        -%]
468       </td>
469      </tr>
470
471      <tr>
472       <th align="left" nowrap>Von</th>
473       <td>
474        <input id="from" name="from" size="10" maxlength="10" value="[% HTML.escape(from) %]">
475        <input type="button" name="fromB" id="trigger_from" value="?">
476       </td>
477       <th align="left" nowrap>Bis</th>
478       <td>
479        <input id="to" name="to" size="10" maxlength="10" value="[% HTML.escape(to) %]">
480        <input type="button" name="toB" id="trigger_to" value="?">
481       </td>
482      </tr>
483
484      <tr>
485       <td colspan="4">
486        <div id="delivery">
487        </div>
488       </td>
489      </tr>
490     </table>
491
492     <br style="clear: left" />
493    </div>
494
495    <div id="vcnotes" class="tabcontent">
496
497     [%- IF NOTES && NOTES.size %]
498     <p>
499      <table>
500       <tr>
501        <th class="listheading">Löschen</th>
502        <th class="listheading">Betreff</th>
503        <th class="listheading">Erstellt am</th>
504        <th class="listheading">Erstellt von</th>
505        <th class="listheading">Wiedervorlagedatum</th>
506        <th class="listheading">Wiedervorlage f&uuml;r</th>
507        <th class="listheading">Wiedervorlage erledigt</th>
508       </tr>
509
510       [%- FOREACH row = NOTES %]
511       <tr class="listrow[% loop.count % 2 %]">
512        <input type="hidden" name="NOTE_id_[% loop.count %]" value="[% HTML.escape(row.id) %]">
513        <td>[% UNLESS NOTE_id && (NOTE_id == row.id) %]<input type="checkbox" name="NOTE_delete_[% loop.count %]" value="1">[% END %]</td>
514        <td><a href="ct.pl?action=edit&db=[% HTML.url(db) %]&id=[% HTML.url(id) %]&edit_note_id=[% HTML.url(row.id) %]">[% HTML.escape(row.subject) %]</a></td>
515        <td>[% HTML.escape(row.created_on) %]</td>
516        <td>[% IF row.created_by_name %][% HTML.escape(row.created_by_name) %][% ELSE %][% HTML.escape(row.created_by_login) %][% END %]</td>
517        <td>[% HTML.escape(row.follow_up_date) %]</td>
518        <td>[% IF row.created_for_name %][% HTML.escape(row.created_for_name) %][% ELSE %][% HTML.escape(row.created_for_login) %][% END %]</td>
519        <td>[% IF row.follow_up_date %][% IF row.follow_up_done %]Ja[% ELSE %]Nein[% END %][% END %]</td>
520       </tr>
521       [%- END %]
522
523       <input type="hidden" name="NOTES_rowcount" value="[% NOTES.size %]">
524
525      </table>
526     </p>
527     [%- END %]
528
529     <div class="listtop">[% IF NOTE_id %]Notiz bearbeiten[% ELSE %]Notiz erfassen[% END %]</div>
530
531     <input type="hidden" name="NOTE_id" value="[% HTML.escape(NOTE_id) %]">
532     <input type="hidden" name="FU_id" value="[% HTML.escape(FU_id) %]">
533
534     <p>
535      <table>
536       <tr>
537        <td valign="right">Betreff</td>
538        <td><input name="NOTE_subject" value="[% HTML.escape(NOTE_subject) %]" size="50"></td>
539       </tr>
540
541       <tr>
542        <td valign="right" align="top">Text</td>
543        <td align="top"><textarea cols="50" rows="10" name="NOTE_body">[% HTML.escape(NOTE_body) %]</textarea></td>
544       </tr>
545
546       <tr>
547        <td valign="right">Wiedervorlage am</td>
548        <td>
549         <input name="FU_date" id="FU_date" value="[% HTML.escape(FU_date) %]" size="12">
550         <input type="button" name="FU_date_button" id="FU_date_trigger" value="?">
551         f&uuml;r
552         <select name="FU_created_for_user">
553          [%- FOREACH row = ALL_EMPLOYEES %]
554          <option value="[% HTML.escape(row.id) %]"[% IF (NOTE_id && (row.id == FU_created_for_user)) || (row.login == login) %] selected[% END %]>
555           [%- IF row.name %][%- HTML.escape(row.name) %] ([% HTML.escape(row.login) %])[% ELSE %][% HTML.escape(row.login) %][% END %]
556          </option>
557          [%- END %]
558         </select>
559        </td>
560       </tr>
561
562       <tr>
563        <td>&nbsp;</td>
564        <td>
565         <input type="checkbox" name="FU_done" id="FU_done" value="1"[% IF FU_done %] checked[% END %]>
566         <label for="FU_done">Wiedervorlage erledigt</label>
567        </td>
568       </tr>
569      </table>
570     </p>
571
572     <br style="clear: left" />
573    </div>
574
575    [%- IF CUSTOM_VARIABLES.size %]
576    <div id="custom_variables" class="tabcontent">
577
578     <p>
579      <table>
580       [%- FOREACH var = CUSTOM_VARIABLES %]
581       <tr>
582        <td align="right" valign="top">[% HTML.escape(var.description) %]</td>
583        <td valign="top">[% var.HTML_CODE %]</td>
584       </tr>
585       [%- END %]
586      </table>
587     </p>
588
589     <br style="clear: left" />
590    </div>
591    [%- END %]
592
593   </div>