1 [% USE HTML %][% USE LxERP %]<body onLoad="fokus()">
3 <div class="listtop">[% title %]</div>
5 <form method="post" name="ct" action="ct.pl">
7 <ul id="maintab" class="shadetabs">
8 <li class="selected"><a href="#" rel="billing"><translate>Billing Address</translate></a></li>
9 <li><a href="#" rel="shipto"><translate>Shipping Address</translate></a></li>
10 <li><a href="#" rel="contacts">Ansprechpartner</a></li>
11 <li><a href="#" rel="deliveries"><translate>Lieferungen</translate></a></li>
12 <li><a href="#" rel="vcnotes"><translate>Notes</translate></a></li>
13 [%- IF CUSTOM_VARIABLES.size %]
14 <li><a href="#" rel="custom_variables"><translate>Custom Variables</translate></a></li>
18 <div class="tabcontentstyle">
20 <div id="billing" class="tabcontent">
26 <th align="right" nowrap><translate>Customer Number</translate></th>
27 <td><input name="customernumber" size="35" value="[% HTML.escape(customernumber) %]"></td>
29 <th align="right" nowrap><translate>Vendor Number</translate></th>
30 <td><input name="vendornumber" size="35" value="[% HTML.escape(vendornumber) %]"></td>
35 <th align="right" nowrap><translate>Greeting</translate></th>
37 <input id="greeting" name="greeting" size="30" value="[% HTML.escape(greeting) %]">
38 [%- INCLUDE generic/multibox.html
39 name = 'selected_company_greeting',
40 DATA = MB_COMPANY_GREETINGS,
43 label_key = 'description',
49 <th align="right" nowrap><translate>Company Name</translate></th>
50 <td><input name="name" size="35" maxlength="75" value="[% HTML.escape(name) %]"></td>
54 <th align="right" nowrap><translate>Department</translate></th>
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) %]">
62 <th align="right" nowrap><translate>Street</translate></th>
63 <td><input name="street" size="35" maxlength="75" value="[% HTML.escape(street) %]"></td>
67 <th align="right" nowrap><translate>Zipcode</translate>/<translate>City</translate></th>
69 <input name="zipcode" size="5" maxlength="10" value="[% HTML.escape(zipcode) %]">
70 <input name="city" size="30" maxlength="75" value="[% HTML.escape(city) %]">
75 <th align="right" nowrap><translate>Country</translate></th>
76 <td><input name="country" size="35" maxlength="75" value="[% HTML.escape(country) %]"></td>
80 <th align="right" nowrap><translate>Contact</translate></th>
81 <td><input name="contact" size="28" maxlength="75" value="[% HTML.escape(contact) %]"></td>
85 <th align="right" nowrap><translate>Phone</translate></th>
86 <td><input name="phone" size="30" maxlength="30" value="[% HTML.escape(phone) %]"></td>
90 <th align="right" nowrap><translate>Fax</translate></th>
91 <td><input name="fax" size="30" maxlength="30" value="[% HTML.escape(fax) %]"></td>
95 <th align="right" nowrap><translate>E-mail</translate></th>
96 <td><input name="email" size="45" value="[% HTML.escape(email) %]"></td>
100 <th align="right" nowrap><translate>Homepage</translate></th>
101 <td><input name="homepage" size="45" value="[% HTML.escape(homepage) %]"></td>
107 <th align="right"><translate>Credit Limit</translate></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"><translate>Payment Terms</translate></th>
112 [%- INCLUDE generic/multibox.html
114 DATA = payment_terms,
117 label_key = 'description',
121 <th align="right"><translate>Discount</translate></th>
122 <td><input name="discount" size="4" value="[% LxERP.format_amount(discount) %]"> %</td>
126 <th align="right"><translate>Tax Number / SSN</translate></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"><translate>sales tax identification number</translate></th>
130 <td><input name="ustid" maxlength="14" size="20" value="[% HTML.escape(ustid) %]"></td>
131 [%- IF is_customer %]
132 <th align="right"><translate>our vendor number at customer</translate></th>
133 <td><input name="c_vendor_id" size="10" value="[% HTML.escape(c_vendor_id) %]"></td>
135 <th align="right"><translate>Customer Number</translate></th>
136 <td><input name="v_customer_id" size="10" value="[% HTML.escape(v_customer_id) %]"></td>
141 <th align="right"><translate>Account Number</translate></th>
142 <td><input name="account_number" size="10" maxlength="15" value="[% HTML.escape(account_number) %]"></td>
143 <th align="right"><translate>Bank Code Number</translate></th>
144 <td><input name="bank_code" size="10" maxlength="10" value="[% HTML.escape(bank_code) %]"></td>
145 <th align="right"><translate>Bank</translate></th>
146 <td><input name="bank" size="30" value="[% HTML.escape(bank) %]"></td>
150 <th align="right"><translate>Type of Business</translate></th>
152 [%- INCLUDE generic/multibox.html
157 label_key = 'description',
160 <th align="right"><translate>Language</translate></th>
162 [%- INCLUDE generic/multibox.html
163 name = 'language_id',
167 label_key = 'description',
171 [%- IF is_customer %]
172 <th align="right"><translate>Preisklasse</translate></th>
174 [%- INCLUDE generic/multibox.html
176 DATA = all_pricegroup,
179 label_key = 'pricegroup',
186 <td align="right"><translate>Obsolete</translate></td>
187 <td><input name="obsolete" class="checkbox" type="checkbox" value="1" [% IF obsolete %]checked[% END %]></td>
188 <td align="right"><translate>direct debit</translate></td>
189 <td><input name="direct_debit" class="checkbox" type="checkbox" value="1" [% IF direct_debit %]checked[% END %]></td>
193 <th align="right"><translate>Steuersatz</translate></th>
195 [%- INCLUDE generic/multibox.html
200 label_key = 'description',
203 [%- IF is_customer %]
204 <th align="right"><translate>Salesman</translate></th>
206 [%- INCLUDE generic/multibox.html
207 name = 'salesman_id',
211 label_sub = 'salesman_label',
220 <th align="left" nowrap><translate>Notes</translate></th>
224 <td><textarea name="notes" rows="3" cols="60" wrap="soft">[% HTML.escape(notes) %]</textarea></td>
228 <br style="clear: left" />
231 <div id="shipto" class="tabcontent">
235 <th align="right"><translate>Shipping Address</translate></th>
237 [%- INCLUDE generic/multibox.html
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',
250 <th align="right" nowrap><translate>Company Name</translate></th>
251 <td><input id="shiptoname" name="shiptoname" size="35" maxlength="75" value="[% HTML.escape(shiptoname) %]"></td>
255 <th align="right" nowrap><translate>Abteilung</translate></th>
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) %]">
263 <th align="right" nowrap><translate>Street</translate></th>
264 <td><input id="shiptostreet" name="shiptostreet" size="35" maxlength="75" value="[% HTML.escape(shiptostreet) %]"></td>
268 <th align="right" nowrap><translate>Zipcode</translate>/<translate>City</translate></th>
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) %]">
276 <th align="right" nowrap><translate>Country</translate></th>
277 <td><input id="shiptocountry" name="shiptocountry" size="35" maxlength="75" value="[% HTML.escape(shiptocountry) %]"></td>
281 <th align="right" nowrap><translate>Contact</translate></th>
282 <td><input id="shiptocontact" name="shiptocontact" size="30" maxlength="75" value="[% HTML.escape(shiptocontact) %]"></td>
286 <th align="right" nowrap><translate>Phone</translate></th>
287 <td><input id="shiptophone" name="shiptophone" size="30" maxlength="30" value="[% HTML.escape(shiptophone) %]"></td>
291 <th align="right" nowrap><translate>Fax</translate></th>
292 <td><input id="shiptofax" name="shiptofax" size="30" maxlength="30" value="[% HTML.escape(shiptofax) %]"></td>
296 <th align="right" nowrap><translate>E-mail</translate></th>
297 <td><input id="shiptoemail" name="shiptoemail" size="45" value="[% HTML.escape(shiptoemail) %]"></td>
308 <input type="submit" id="delete_shipto" name="action" value="<translate>Delete Shipto</translate>" disabled>
309 <br style="clear: left" />
312 <div id="contacts" class="tabcontent">
314 <input type="hidden" name="cp_id" value="[% HTML.escape(cp_id) %]">
316 <th align="right"><translate>Ansprechpartner</translate></th>
318 [%- INCLUDE generic/multibox.html
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])",
324 label_sub = 'contacts_label',
330 <th align="left" nowrap><translate>Greeting</translate></th>
332 <input id="cp_greeting" name="cp_greeting" size="40" maxlength="75" value="[% HTML.escape(cp_greeting) %]">
333 [%- INCLUDE generic/multibox.html
334 name = 'selected_cp_greeting',
338 label_key = 'description',
344 <th align="left" nowrap><translate>Title</translate></th>
346 <input id="cp_title" name="cp_title" size="40" maxlength="75" value="[% HTML.escape(cp_title) %]">
347 [%- INCLUDE generic/multibox.html
348 name = 'selected_cp_title',
352 label_key = 'description',
358 <th align="left" nowrap><translate>Department</translate></th>
360 <input id="cp_abteilung" name="cp_abteilung" size="40" value="[% HTML.escape(cp_abteilung) %]">
361 [%- INCLUDE generic/multibox.html
362 name = 'selected_cp_abteilung',
363 DATA = MB_DEPARTMENT,
366 label_key = 'description',
372 <th align="left" nowrap><translate>Given Name</translate></th>
373 <td><input id="cp_givenname" name="cp_givenname" size="40" maxlength="75" value="[% HTML.escape(cp_givenname) %]"></td>
377 <th align="left" nowrap><translate>Name</translate></th>
378 <td><input id="cp_name" name="cp_name" size="40" maxlength="75" value="[% HTML.escape(cp_name) %]"></td>
382 <th align="left" nowrap><translate>Phone1</translate></th>
383 <td><input id="cp_phone1" name="cp_phone1" size="40" maxlength="75" value="[% HTML.escape(cp_phone1) %]"></td>
387 <th align="left" nowrap><translate>Phone2</translate></th>
388 <td><input id="cp_phone2" name="cp_phone2" size="40" maxlength="75" value="[% HTML.escape(cp_phone2) %]"></td>
392 <th align="left" nowrap><translate>Fax</translate></th>
393 <td><input id="cp_fax" name="cp_fax" size="40" value="[% HTML.escape(cp_fax) %]"></td>
397 <th align="left" nowrap><translate>Mobile1</translate></th>
398 <td><input id="cp_mobile1" name="cp_mobile1" size="40" value="[% HTML.escape(cp_mobile1) %]"></td>
402 <th align="left" nowrap><translate>Mobile2</translate></th>
403 <td><input id="cp_mobile2" name="cp_mobile2" size="40" value="[% HTML.escape(cp_mobile2) %]"></td>
407 <th align="left" nowrap><translate>Sat. Phone</translate></th>
408 <td><input id="cp_satphone" name="cp_satphone" size="40" value="[% HTML.escape(cp_satphone) %]"></td>
412 <th align="left" nowrap><translate>Sat. Fax</translate></th>
413 <td><input id="cp_satfax" name="cp_satfax" size="40" value="[% HTML.escape(cp_satfax) %]"></td>
417 <th align="left" nowrap><translate>Project</translate></th>
418 <td><input id="cp_project" name="cp_project" size="40" value="[% HTML.escape(cp_project) %]"></td>
422 <th align="left" nowrap><translate>E-mail</translate></th>
423 <td><input id="cp_email" name="cp_email" size="40" value="[% HTML.escape(cp_email) %]"></td>
427 <th align="left" nowrap><translate>Private Phone</translate></th>
428 <td><input id="cp_privatphone" name="cp_privatphone" size="40" value="[% HTML.escape(cp_privatphone) %]"></td>
432 <th align="left" nowrap><translate>Private E-mail</translate></th>
433 <td><input id="cp_privatemail" name="cp_privatemail" size="40" value="[% HTML.escape(cp_privatemail) %]"></td>
437 <th align="left" nowrap><translate>Birthday</translate></th>
438 <td><input id="cp_birthday" name="cp_birthday" size="40" value="[% HTML.escape(cp_birthday) %]"></td>
442 <td colspan="2"><hr></td>
446 <th align="left" nowrap><translate>Bcc</translate></th>
447 <td><input name="bcc" size="40" value="[% HTML.escape(bcc) %]"></td>
451 <input type="submit" id="delete_contact" name="action" value="<translate>Delete Contact</translate>" disabled>
452 <br style="clear: left" />
455 <div id="deliveries" class="tabcontent">
458 <th align="right"><translate>Shipping Address</translate></th>
460 [%- INCLUDE generic/multibox.html
461 name = 'delivery_id',
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',
472 <th align="left" nowrap><translate>From</translate></th>
474 <input id="from" name="from" size="10" maxlength="10" value="[% HTML.escape(from) %]">
475 <input type="button" name="fromB" id="trigger_from" value="?">
477 <th align="left" nowrap><translate>To (time)</translate></th>
479 <input id="to" name="to" size="10" maxlength="10" value="[% HTML.escape(to) %]">
480 <input type="button" name="toB" id="trigger_to" value="?">
492 <br style="clear: left" />
495 <div id="vcnotes" class="tabcontent">
497 [%- IF NOTES && NOTES.size %]
501 <th class="listheading"><translate>Delete</translate></th>
502 <th class="listheading"><translate>Subject</translate></th>
503 <th class="listheading"><translate>Created on</translate></th>
504 <th class="listheading"><translate>Created by</translate></th>
505 <th class="listheading"><translate>Follow-Up Date</translate></th>
506 <th class="listheading"><translate>Follow-Up for</translate></th>
507 <th class="listheading"><translate>Follow-Up done</translate></th>
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 %]<translate>Yes</translate>[% ELSE %]<translate>No</translate>[% END %][% END %]</td>
523 <input type="hidden" name="NOTES_rowcount" value="[% NOTES.size %]">
529 <div class="listtop">[% IF NOTE_id %]<translate>Edit note</translate>[% ELSE %]<translate>Add note</translate>[% END %]</div>
531 <input type="hidden" name="NOTE_id" value="[% HTML.escape(NOTE_id) %]">
532 <input type="hidden" name="FU_id" value="[% HTML.escape(FU_id) %]">
537 <td valign="right"><translate>Subject</translate></td>
538 <td><input name="NOTE_subject" value="[% HTML.escape(NOTE_subject) %]" size="50"></td>
542 <td valign="right" align="top"><translate>Body</translate></td>
543 <td align="top"><textarea cols="50" rows="10" name="NOTE_body">[% HTML.escape(NOTE_body) %]</textarea></td>
547 <td valign="right"><translate>Follow-Up On</translate></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 <translate>for</translate>
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 %]
565 <input type="checkbox" name="FU_done" id="FU_done" value="1"[% IF FU_done %] checked[% END %]>
566 <label for="FU_done"><translate>Follow-Up done</translate></label>
572 <br style="clear: left" />
575 [%- IF CUSTOM_VARIABLES.size %]
576 <div id="custom_variables" class="tabcontent">
580 [%- FOREACH var = CUSTOM_VARIABLES %]
582 <td align="right" valign="top">[% HTML.escape(var.description) %]</td>
583 <td valign="top">[% var.HTML_CODE %]</td>
589 <br style="clear: left" />