6 [% cv_cvars = SELF.cv.cvars_by_config %]
8 <form method="post" action="controller.pl">
9 <div class="listtop">[% FORM.title %]</div>
11 [% L.hidden_tag('db', FORM.db) %]
12 [% L.hidden_tag('callback', FORM.callback) %]
13 [% L.hidden_tag('cv.id', SELF.cv.id) %]
15 [%- INCLUDE 'common/flash.html' %]
17 <div class="tabwidget">
19 <li><a href="#billing">[% 'Billing Address' | $T8 %]</a></li>
20 <li><a href="#shipto">[% 'Shipping Address' | $T8 %]</a></li>
21 <li><a href="#contacts">[% 'Contacts' | $T8 %]</a></li>
22 [% IF ( SELF.cv.id ) %]
23 <li><a href="#deliveries">[% 'Supplies' | $T8 %]</a></li>
25 <li><a href="#vcnotes">[% 'Notes' | $T8 %]</a></li>
27 [% IF ( cv_cvars.size ) %]
28 <li><a href="#custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
37 [% IF ( conf_vertreter ) %]<!-- == $::lx_office_conf{features}->{vertreter}; -->
40 [% IF SELF.is_vendor() %]
41 [% 'Type of Vendor' | $T8 %]
43 [% 'Type of Customer' | $T8 %]
48 [% L.select_tag('cv.business_id', SELF.all_business, value_key = 'id', title_key = 'description', default = SELF.cv.business_id, with_empty = 1) %]
54 [% 'Representative' | $T8 %]
58 <!-- TODO: ALL_SALESMAN_CUSTOMERS -->
59 [% L.select_tag('cv.salesman_id', SELF.all_employees, value_key = 'id', title_key = 'safe_name', with_empty = 1) %]
66 [% IF SELF.is_vendor() %]
67 <th align="right" nowrap>[% 'Vendor Number' | $T8 %]</th>
69 [% L.input_tag('cv.vendornumber', SELF.cv.vendornumber) %]
72 <th align="right" nowrap>[% 'Customer Number' | $T8 %]</th>
74 [% L.input_tag('cv.customernumber', SELF.cv.customernumber) %]
80 <th align="right" nowrap>[% 'Greeting' | $T8 %]</th>
83 [% L.input_tag('cv.greeting', SELF.cv.greeting) %]
84 [% L.select_tag('cv_greeting_select', SELF.all_greetings, default = SELF.cv.greeting, with_empty = 1, onchange = '$("#cv_greeting").val(this.value);') %]
89 <th align="right" nowrap>
90 [% IF SELF.is_vendor() %]
91 [% 'Vendor Name' | $T8 %]
93 [% 'Customer Name' | $T8 %]
98 [% L.input_tag('cv.name', SELF.cv.name) %]
103 <th align="right" nowrap>[% 'Department' | $T8 %]</th>
106 [% L.input_tag('cv.department_1', SELF.cv.department_1, size = 16, maxlength = 75) %]
107 [% L.input_tag('cv.department_2', SELF.cv.department_2, size = 16, maxlength = 75) %]
112 <th align="right" nowrap>[% 'Street' | $T8 %]</th>
115 [% L.input_tag('cv.street', SELF.cv.street) %]
116 <a href="#" onclick="namespace('kivi.CustomerVendor').showMap('cv_');" title="[% 'Map' | $T8 %]">
117 <img src="image/map.png" alt="[% 'Map' | $T8 %]" />
123 <th align="right" nowrap>[% 'Zipcode' | $T8 %]/[% 'City' | $T8 %]</th>
126 [% L.input_tag('cv.zipcode', SELF.cv.zipcode, size = 5 maxlength = 10) %]
127 [% L.input_tag('cv.city', SELF.cv.city, size = 30 maxlength = 75) %]
132 <th align="right" nowrap>[% 'Country' | $T8 %]</th>
135 [% L.input_tag('cv.country', SELF.cv.country, size = 30 maxlength = 75) %]
140 <th align="right" nowrap>[% 'Contact' | $T8 %]</th>
143 [% L.input_tag('cv.contact', SELF.cv.contact, size = 28 maxlength = 75) %]
148 <th align="right" nowrap>[% 'Phone' | $T8 %]</th>
151 [% L.input_tag('cv.phone', SELF.cv.phone, size = 30) %]
156 <th align="right" nowrap>[% 'Fax' | $T8 %]</th>
159 [% L.input_tag('cv.fax', SELF.cv.fax, size = 30 maxlength = 30) %]
164 <th align="right" nowrap>[% 'E-mail' | $T8 %]</th>
167 [% L.input_tag('cv.email', SELF.cv.email, size = 45) %]
172 <th align="right" nowrap>
174 <a href="[% HTML.escape(SELF.cv.homepage) %]" title="[% 'Open this Website' | $T8 %]" target="_blank">[% 'Homepage' | $T8 %]</a>
176 [% 'Homepage' | $T8 %]
181 [% L.input_tag('cv.homepage', SELF.cv.homepage, size = 45, title = LxERP.t8('Example: http://kivitendo.de')) %]
186 <th align="right" nowrap>[% 'Username' | $T8 %]</th>
189 [% L.input_tag('cv.username', SELF.cv.username, size = 45) %]
194 <th align="right" nowrap>[% 'Password' | $T8 %]</th>
197 [% L.input_tag('cv.user_password', SELF.cv.user_password, size = 45) %]
206 <th align="right">[% 'Credit Limit' | $T8 %]</th>
209 [% L.input_tag('cv.creditlimit', LxERP.format_amount(SELF.cv.creditlimit, 0), size = 9) %]
213 <th align="right">[% 'Payment Terms' | $T8 %]</th>
216 [% L.select_tag('cv.payment_id', SELF.all_payment_terms, value_key = 'id', title_key = 'description', default = SELF.cv.payment_id, with_empty = 1) %]
220 <th align="right">[% 'Discount' | $T8 %]</th>
223 [% L.input_tag('cv.discount', SELF.cv.discount, size = 4) %]
228 <th align="right">[% 'Tax Number / SSN' | $T8 %]</th>
231 [% L.input_tag('cv.taxnumber', SELF.cv.taxnumber, size = 20) %]
235 <!-- 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 -->
236 <th align="right">[% 'sales tax identification number' | $T8 %]</th>
239 [% L.input_tag('cv.ustid', SELF.cv.ustid, maxlength = 14 size = 20 ) %]
243 [%- IF ( SELF.is_vendor() ) %]
244 <th align="right">[% 'Customer Number' | $T8 %]</th>
246 [% L.input_tag('cv.v_customer_id', SELF.cv.v_customer_id, size = 10) %]
249 <th align="right">[% 'our vendor number at customer' | $T8 %]</th>
251 [% L.input_tag('cv.c_vendor_id', SELF.cv.c_vendor_id, size = 10) %]
257 <th align="right">[% 'Account Number' | $T8 %]</th>
260 [% L.input_tag('cv.account_number', SELF.cv.account_number, size = 10, maxlength = 100) %]
264 <th align="right">[% 'Bank Code Number' | $T8 %]</th>
267 [% L.input_tag('cv.bank_code', SELF.cv.bank_code, size = 10, maxlength = 100) %]
271 <th align="right">[% 'Bank' | $T8 %]</th>
274 [% L.input_tag('cv.bank', SELF.cv.bank, size = 20) %]
279 <th align="right">[% 'IBAN' | $T8 %]</th>
282 [% L.input_tag('cv.iban', SELF.cv.iban, size = 10, maxlength = 100) %]
286 <th align="right">[% 'BIC' | $T8 %]</th>
288 [% L.input_tag('cv.bic', SELF.cv.bic, size = 10, maxlength = 100) %]
292 [% IF ( SELF.all_currencies.size ) %]
293 <th align="right">[% 'Currency' | $T8 %]</th>
296 [% L.select_tag('cv.curr', SELF.all_currencies, default = SELF.cv.curr, with_empty = 1) %]
302 [% IF ( !conf_vertreter ) %]
304 [% IF ( SELF.is_vendor() ) %]
305 [% 'Type of Vendor' | $T8 %]
307 [% 'Type of Customer' | $T8 %]
312 [% L.select_tag('cv.business_id', SELF.all_business, default = SELF.cv.business_id, value_key = 'id', title_key = 'description', with_empty = 1) %]
317 <th align="right">[% 'Language' | $T8 %]</th>
320 [% L.select_tag('cv.language_id', SELF.all_languages, default = SELF.cv.language_id, value_key = 'id', title_key = 'description', with_empty = 1) %]
324 <th align="right">[% 'Bcc' | $T8 %]</th>
327 [% L.input_tag('cv.bcc', SELF.cv.bcc, size = 40) %]
331 [% IF ( SELF.is_customer() ) %]
332 <th align="right">[% 'Preisklasse' | $T8 %]</th>
335 [% L.select_tag('cv.klass', SELF.all_pricegroups, default = SELF.cv.klass, value_key = 'id', title_key = 'pricegroup', with_empty = 1) %]
342 <label for="cv_obsolete">[% 'Obsolete' | $T8 %]</label>
346 [% L.checkbox_tag('cv.obsolete', checked = SELF.cv.obsolete) %]
351 <label for="cv_direct_debit">[% 'direct debit' | $T8 %]</label>
355 [% L.checkbox_tag('cv.direct_debit', checked = SELF.cv.direct_debit) %]
360 <th align="right">[% 'Steuersatz' | $T8 %]</th>
363 [% L.select_tag('cv.taxzone_id', SELF.all_taxzones, default = SELF.cv.taxzone_id, value_key = 'id', title_key = 'description') %]
367 [% IF ( SELF.is_customer() && !conf_vertreter ) %]
368 <th align="right">[% 'Salesman' | $T8 %]</th>
371 <!-- TODO: ALL_SALESMAN -->
372 [% L.select_tag('cv.salesman_id', SELF.all_employees, default = salesman_id, value_key = 'id', title_key = 'safe_name', with_empty = 1) %]
375 <td>[% 'taxincluded checked' | $T8 %]</td>
378 [% 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) %]
386 <th align="left" nowrap>[% 'Internal Notes' | $T8 %]</th>
391 [% L.textarea_tag('cv.notes', SELF.cv.notes, rows = 3 cols = 60 wrap = soft) %]
398 <table width="100%" id="shipto_table">
400 <th align="right">[% 'Shipping Address' | $T8 %]</th>
406 default = SELF.shipto.shipto_id,
407 value_key = 'shipto_id',
408 title_key = 'displayable_id',
410 empty_title = LxERP.t8('New shipto'),
411 onchange = "namespace('kivi.CustomerVendor').selectShipto();"
418 <th align="right" nowrap>[% 'Name' | $T8 %]</th>
421 [% L.input_tag('shipto.shiptoname', SELF.shipto.shiptoname, size = 35, maxlength = 75) %]
426 <th align="right" nowrap>[% 'Abteilung' | $T8 %]</th>
429 [% L.input_tag('shipto.shiptodepartment_1', SELF.shipto.shiptodepartment_1, size = 16, maxlength = 75) %]
430 [% L.input_tag('shipto.shiptodepartment_2', SELF.shipto.shiptodepartment_2, size = 16, maxlength = 75) %]
435 <th align="right" nowrap>[% 'Street' | $T8 %]</th>
438 [% L.input_tag('shipto.shiptostreet', SELF.shipto.shiptostreet, size = 35, maxlength = 75) %]
440 <a href="#" onclick="namespace('kivi.CustomerVendor').showMap('shipto_shipto');" title="[% 'Map' | $T8 %]">
441 <img src="image/map.png" alt="[% 'Map' | $T8 %]" />
447 <th align="right" nowrap>[% 'Zipcode' | $T8 %]/[% 'City' | $T8 %]</th>
450 [% L.input_tag('shipto.shiptozipcode', SELF.shipto.shiptostreet, size = 5, maxlength = 75) %]
451 [% L.input_tag('shipto.shiptocity', SELF.shipto.shiptocity, size = 30, maxlength = 75) %]
456 <th align="right" nowrap>[% 'Country' | $T8 %]</th>
459 [% L.input_tag('shipto.shiptocountry', SELF.shipto.shiptocountry, size = 35, maxlength = 75) %]
464 <th align="right" nowrap>[% 'Contact' | $T8 %]</th>
467 [% L.input_tag('shipto.shiptocontact', SELF.shipto.shiptocontact, size = 30, maxlength = 75) %]
472 <th align="right" nowrap>[% 'Phone' | $T8 %]</th>
475 [% L.input_tag('shipto.shiptophone', SELF.shipto.shiptophone, size = 30, maxlength = 30) %]
480 <th align="right" nowrap>[% 'Fax' | $T8 %]</th>
483 [% L.input_tag('shipto.shiptofax', SELF.shipto.shiptofax, size = 30, maxlength = 30) %]
488 <th align="right" nowrap>[% 'E-mail' | $T8 %]</th>
491 [% L.input_tag('shipto.shiptoemail', SELF.shipto.shiptoemail, size = 45) %]
496 [% L.button_tag('submitInputButton(this);', LxERP.t8('Delete Shipto'), name = 'action_delete_shipto', class = 'submit') %]
497 [% IF ( !SELF.shipto.shipto_id ) %]
498 <script type="text/javascript">
499 $('#action_delete_shipto').hide();
507 <th align="left">[% 'Contacts' | $T8 %]</th>
514 default = SELF.contact.cp_id,
516 empty_title = LxERP.t8('New contact'),
518 title_key = 'full_name',
519 onchange = "namespace('kivi.CustomerVendor').selectContact();")
525 <th align="left" nowrap>[% 'Gender' | $T8 %]</th>
531 [['m', LxERP.t8('male')], ['f', LxERP.t8('female')]],
532 default = SELF.contact.cp_gender
539 <th align="left" nowrap>[% 'Title' | $T8 %]</th>
542 [% L.input_tag('contact.cp_title', SELF.contact.cp_title, size = 40 maxlength = 75) %]
543 [% L.select_tag('contact_cp_title_select', SELF.all_titles, with_empty = 1, onchange = '$("#contact_cp_title").val(this.value);') %]
548 <th align="left" nowrap>[% 'Department' | $T8 %]</th>
551 [% L.input_tag('contact.cp_abteilung', SELF.contact.cp_abteilung, size = 40) %]
552 [% L.select_tag('contact_cp_abteilung_select', SELF.all_departments, default = SELF.contact.cp_abteilung, with_empty = 1, onchange = '$("#contact_cp_abteilung").val(this.value);') %]
557 <th align="left" nowrap>[% 'Function/position' | $T8 %]</th>
560 [% L.input_tag('contact.cp_position', SELF.contact.cp_position, size = 40, maxlength = 75) %]
565 <th align="left" nowrap>[% 'Given Name' | $T8 %]</th>
568 [% L.input_tag('contact.cp_givenname', SELF.contact.cp_givenname, size = 40, maxlength = 75) %]
573 <th align="left" nowrap>[% 'Name' | $T8 %]</th>
576 [% L.input_tag('contact.cp_name', SELF.contact.cp_name, size = 40, maxlength = 75) %]
581 <th align="left" nowrap>[% 'E-mail' | $T8 %]</th>
584 [% L.input_tag('contact.cp_email', SELF.contact.cp_email, size = 40) %]
589 <th align="left" nowrap>[% 'Phone1' | $T8 %]</th>
592 [% L.input_tag('contact.cp_phone1', SELF.contact.cp_phone1, size = 40, maxlength = 75) %]
597 <th align="left" nowrap>[% 'Phone2' | $T8 %]</th>
600 [% L.input_tag('contact.cp_phone2', SELF.contact.cp_phone2, size = 40, maxlength = 75) %]
605 <th align="left" nowrap>[% 'Fax' | $T8 %]</th>
608 [% L.input_tag('contact.cp_fax', SELF.contact.cp_fax, size = 40) %]
613 <th align="left" nowrap>[% 'Mobile1' | $T8 %]</th>
616 [% L.input_tag('contact.cp_mobile1', SELF.contact.cp_mobile1, size = 40) %]
621 <th align="left" nowrap>[% 'Mobile2' | $T8 %]</th>
624 [% L.input_tag('contact.cp_mobile2', SELF.contact.cp_mobile2, size = 40) %]
629 <th align="left" nowrap>[% 'Sat. Phone' | $T8 %]</th>
632 [% L.input_tag('contact.cp_satphone', SELF.contact.cp_satphone, size = 40) %]
637 <th align="left" nowrap>[% 'Sat. Fax' | $T8 %]</th>
640 [% L.input_tag('contact.cp_satfax', SELF.contact.cp_satfax, size = 40) %]
645 <th align="left" nowrap>[% 'Project' | $T8 %]</th>
648 [% L.input_tag('contact.cp_project', SELF.contact.cp_project, size = 40) %]
653 <th align="left" nowrap>[% 'Street' | $T8 %]</th>
656 [% L.input_tag('contact.cp_street', SELF.contact.cp_street, size = 40, maxlength = 75) %]
658 <a href="#" onclick="namespace('kivi.CustomerVendor').showMap('contact_cp_');" title="[% 'Map' | $T8 %]">
659 <img src="image/map.png" alt="[% 'Map' | $T8 %]" />
665 <th align="left" nowrap>[% 'Zip, City' | $T8 %]</th>
668 [% L.input_tag('contact.cp_zipcode', SELF.contact.cp_zipcode, size = 5, maxlength = 10) %]
669 [% L.input_tag('contact.cp_city', SELF.contact.cp_city, size = 25, maxlength = 75) %]
674 <th align="left" nowrap>[% 'Private Phone' | $T8 %]</th>
677 [% L.input_tag('contact.cp_privatphone', SELF.contact.cp_privatphone, size = 40) %]
682 <th align="left" nowrap>[% 'Private E-mail' | $T8 %]</th>
685 [% L.input_tag('contact.cp_privatemail', SELF.contact.cp_privatemail, size = 40) %]
690 <th align="left" nowrap>[% 'Birthday' | $T8 %]</th>
693 [% L.date_tag('contact.cp_birthday', SELF.contact.cp_birthday) %]
697 [% contact_cvars = SELF.contact.cvars_by_config %]
699 [% IF ( contact_cvars.size ) %]
706 [% FOREACH var = contact_cvars %]
708 <th align="left" valign="top" nowrap>[% var.config.description | html %]</th>
712 INCLUDE 'customer_vendor/render_cvar_input.html'
713 cvar_name_prefix = 'contact_cvars.'
722 [% L.button_tag('submitInputButton(this);', LxERP.t8('Delete Contact'), name = 'action_delete_contact', class = 'submit') %]
723 [% IF ( !SELF.contact.cp_id ) %]
724 <script type="text/javascript">
725 $('#action_delete_contact').hide();
730 <div id="deliveries">
733 <th align="right">[% 'Shipping Address' | $T8 %]</th>
735 [% temp = [{shipto_id = 'all', displayable_id = LxERP.t8('All')}] %]
736 [% temp = temp.merge(SELF.shiptos) %]
741 value_key = 'shipto_id',
742 title_key = 'displayable_id',
744 onchange = "namespace('kivi.CustomerVendor').selectDelivery();"
751 <th align="right" nowrap>[% 'From' | $T8 %]</th>
758 onchange => "namespace('kivi.CustomerVendor').selectDelivery(this.form.delivery_from.value, this.form.delivery_to.value);"
764 <th align="right" nowrap>[% 'To (time)' | $T8 %]</th>
771 onchange => "namespace('kivi.CustomerVendor').selectDelivery(this.form.delivery_from.value, this.form.delivery_to.value);"
779 <div id="delivery"></div>
787 [% IF ( NOTES && NOTES.size ) %]
791 <th class="listheading">[% 'Delete' | $T8 %]</th>
792 <th class="listheading">[% 'Subject' | $T8 %]</th>
793 <th class="listheading">[% 'Created on' | $T8 %]</th>
794 <th class="listheading">[% 'Created by' | $T8 %]</th>
795 <th class="listheading">[% 'Follow-Up Date' | $T8 %]</th>
796 <th class="listheading">[% 'Follow-Up for' | $T8 %]</th>
797 <th class="listheading">[% 'Follow-Up done' | $T8 %]</th>
800 [%- FOREACH row = SELF.notes %]
801 <tr class="listrow[% loop.count % 2 %]">
803 [% L.hidden_tag('notes[+].id', row.id) %]
804 [% IF ( !NOTE_id || (NOTE_id != row.id) ) %]
805 [% L.checkbox_tag('notes[].delete', 0) %]
810 <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>
814 [% HTML.escape(row.created_on) %]
818 [% IF ( row.created_by_name ) %]
819 [% HTML.escape(row.created_by_name) %]
821 [% HTML.escape(row.created_by_login) %]
826 [% HTML.escape(row.follow_up_date) %]
830 [% IF ( row.created_for_name ) %]
831 [% HTML.escape(row.created_for_name) %]
833 [% HTML.escape(row.created_for_login) %]
838 [% IF ( row.follow_up_date ) %]
839 [% IF ( row.follow_up_done ) %]
852 <div class="listtop">
854 [% 'Edit note' | $T8 %]
856 [% 'Add note' | $T8 %]
860 [% L.hidden_tag('note.id', SELF.note.id) %]
865 <td valign="right">[% 'Subject' | $T8 %]</td>
868 [% L.input_tag('note.subject', SELF.note.subject, size = 50) %]
873 <td valign="right" align="top">[% 'Body' | $T8 %]</td>
876 [% L.textarea_tag('note.body', SELF.note.body, cols = 50 rows = 10) %]
881 <td valign="right">[% 'Follow-Up On' | $T8 %]</td>
884 [% L.date_tag('note_followup.follow_up_date', SELF.note_followup.follow_up_date) %]
887 'note_followup.created_for_user',
889 default = SELF.note_followup.created_for_user,
890 title_key = 'safe_name'
900 [% L.checkbox_tag('note_followup.done', checked = SELF.note_followup.done) %]
901 <label for="note_followup_done">[% 'Follow-Up done' | $T8 %]</label>
909 [% IF ( cv_cvars.size ) %]
910 <div id="custom_variables">
913 [% FOREACH var = cv_cvars %]
915 <th align="left" valign="top" nowrap>[% var.config.description | html %]</th>
919 INCLUDE 'customer_vendor/render_cvar_input.html'
920 cvar_name_prefix = 'cv_cvars.'
933 [% L.hidden_tag('action', 'CustomerVendor/dispatch') %]
935 [% L.submit_tag('action_save', LxERP.t8('Save'), onclick = "return check_taxzone_and_ustid()", accesskey = "s") %]
936 [% L.submit_tag('action_save_and_close', LxERP.t8('Save and Close'), onclick = "return check_taxzone_and_ustid()") %]
938 [%- IF ( SELF.is_vendor ) %]
939 [% L.submit_tag('action_save_and_ap_transaction', LxERP.t8('Save and AP Transaction'), onclick = "return check_taxzone_and_ustid()") %]
941 [% L.submit_tag('action_save_and_ar_transaction', LxERP.t8('Save and AR Transaction'), onclick = "return check_taxzone_and_ustid()") %]
944 [% L.submit_tag('action_save_and_invoice', LxERP.t8('Save and Invoice'), onclick = "return check_taxzone_and_ustid()") %]
945 [% L.submit_tag('action_save_and_order', LxERP.t8('Save and Order'), onclick = "return check_taxzone_and_ustid()") %]
947 [%- IF ( SELF.is_vendor ) %]
948 [% L.submit_tag('action_save_and_rfq', LxERP.t8('Save and RFQ'), onclick = "return check_taxzone_and_ustid()") %]
950 [% L.submit_tag('action_save_and_quotation', LxERP.t8('Save and Quotation'), onclick = "return check_taxzone_and_ustid()") %]
953 [%- IF ( SELF.cv.id && SELF.is_orphaned ) %]
954 [% L.submit_tag('action_delete', LxERP.t8('Delete'), confirm => LxERP.t8('Do you really want to delete this object?')) %]
957 [%- IF ( SELF.cv.id ) %]
958 <input type="button" class="submit" onclick="namespace('kivi.CustomerVendor').showHistoryWindow([% SELF.cv.id %]);" name="history" id="history" value="[% 'history' | $T8 %]">
963 <script type="text/javascript">
965 function submitInputButton(button)
967 var hidden = document.createElement("input");
968 hidden.setAttribute("type", "hidden");
970 if ( button.hasAttribute("name") )
971 hidden.setAttribute("name", button.getAttribute("name"));
973 if ( button.hasAttribute("value") )
974 hidden.setAttribute("value", button.getAttribute("value"));
977 button.form.appendChild(hidden);
979 button.disabled = true;
981 button.form.submit();
984 function check_taxzone_and_ustid() {
985 if ( ($('#cv_taxzone_id').val() == '1') && ($('#cv_ustid').val() == '') ) {
986 alert('[% LxERP.t8('Please enter the sales tax identification number.') %]');