$var->{VALID_BOX} = $form->parse_html_template('amcvar/render_checkboxes', { var => $var, %options });
}
+ # needed for customer_vendor_picker
+ $::request->{layout}->add_javascripts('autocomplete_customer.js');
+
$main::lxdebug->leave_sub(2);
}
$form->{follow_up_trans_info} = $form->{donumber} .'('. $follow_up_vc .')';
- $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.SalesPurchase ckeditor/ckeditor ckeditor/adapters/jquery kivi.io));
+ $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.SalesPurchase ckeditor/ckeditor ckeditor/adapters/jquery kivi.io autocomplete_customer));
$form->header();
# Fix für Bug 1082 Erwartet wird: 'abteilungsNAME--abteilungsID'
), @custom_hiddens,
map { $_.'_rate', $_.'_description', $_.'_taxnumber' } split / /, $form->{taxaccounts}];
- $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.SalesPurchase ckeditor/ckeditor ckeditor/adapters/jquery kivi.io));
+ $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.SalesPurchase ckeditor/ckeditor ckeditor/adapters/jquery kivi.io autocomplete_customer));
$form->header();
), @custom_hiddens,
map { $_.'_rate', $_.'_description', $_.'_taxnumber' } split / /, $form->{taxaccounts}];
- $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.SalesPurchase ckeditor/ckeditor ckeditor/adapters/jquery kivi.io));
+ $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.SalesPurchase ckeditor/ckeditor ckeditor/adapters/jquery kivi.io autocomplete_customer));
$form->header();
}
}
- $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.SalesPurchase show_form_details show_history show_vc_details ckeditor/ckeditor ckeditor/adapters/jquery kivi.io));
+ $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.SalesPurchase show_form_details show_history show_vc_details ckeditor/ckeditor ckeditor/adapters/jquery kivi.io autocomplete_customer));
$form->header;
if ($form->{CFDD_shipto} && $form->{CFDD_shipto_id} ) {
<input name="[% var_name %]" value="[% HTML.escape(var.value) %]">
[%- ELSIF var.type == 'customer' %]
-[% L.customer_picker(var_name, var.value) %]
+[% L.customer_vendor_picker(var_name, var.value, type='customer') %]
[%- ELSIF var.type == 'vendor' %]
-[% L.vendor_selector(var_name, var.value) %]
+[% L.customer_vendor_picker(var_name, var.value, type='vendor') %]
[%- ELSIF var.type == 'part' %]
[% L.part_selector(var_name, var.value) %]
</select>
[%- ELSIF cvar.var.type == 'customer' %]
-[%- L.customer_picker(cvar_tag_name, cvar.value, render_cvar_tag_options) %]
+[%- render_cvar_tag_options.type = 'customer' %]
+[%- L.customer_vendor_picker(cvar_tag_name, cvar.value, render_cvar_tag_options) %]
[%- ELSIF cvar.var.type == 'vendor' %]
-[% L.vendor_selector(cvar_tag_name, cvar.value, render_cvar_tag_options) %]
+[%- render_cvar_tag_options.type = 'vendor' %]
+[%- L.customer_vendor_picker(cvar_tag_name, cvar.value, render_cvar_tag_options) %]
[%- ELSIF cvar.var.type == 'part' %]
[% L.part_selector(cvar_tag_name, cvar.value, render_cvar_tag_options) %]
[%- BLOCK customer %]
<tr>
<th align=right nowrap>[% 'Customer' | $T8 %]</th>
- <td colspan=3>[% L.customer_picker('customer_id') %]</td>
+ <td colspan=3>[% L.customer_vendor_picker('customer_id', '', type='customer') %]</td>
</tr>
[%- END %]
[%- BLOCK projectnumber %]