Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 65b7c724

Von Bernd Bleßmann vor fast 10 Jahren hinzugefügt

  • ID 65b7c724e114cd698d3574524a96c282ee7b992c
  • Vorgänger db06bb90
  • Nachfolger 71a46899

customer_vendor_picker bei CVars und Summen- und Saldenliste

- nicht mehr vorhandenen customer_picker durch customer_vendor_picker ersetzt
- vendor_selector durch customer_vendor_picker ersetzt
- autocomplete_customer.js laden

Unterschiede anzeigen:

SL/CVar.pm
301 301
    $var->{VALID_BOX} = $form->parse_html_template('amcvar/render_checkboxes', { var => $var, %options });
302 302
  }
303 303

  
304
  # needed for customer_vendor_picker
305
  $::request->{layout}->add_javascripts('autocomplete_customer.js');
306

  
304 307
  $main::lxdebug->leave_sub(2);
305 308
}
306 309

  
bin/mozilla/do.pl
323 323

  
324 324
  $form->{follow_up_trans_info} = $form->{donumber} .'('. $follow_up_vc .')';
325 325

  
326
  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.SalesPurchase ckeditor/ckeditor ckeditor/adapters/jquery kivi.io));
326
  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.SalesPurchase ckeditor/ckeditor ckeditor/adapters/jquery kivi.io autocomplete_customer));
327 327

  
328 328
  $form->header();
329 329
  # Fix für Bug 1082 Erwartet wird: 'abteilungsNAME--abteilungsID'
bin/mozilla/ir.pl
337 337
  ), @custom_hiddens,
338 338
  map { $_.'_rate', $_.'_description', $_.'_taxnumber' } split / /, $form->{taxaccounts}];
339 339

  
340
  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.SalesPurchase ckeditor/ckeditor ckeditor/adapters/jquery kivi.io));
340
  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.SalesPurchase ckeditor/ckeditor ckeditor/adapters/jquery kivi.io autocomplete_customer));
341 341

  
342 342
  $form->header();
343 343

  
bin/mozilla/is.pl
385 385
  ), @custom_hiddens,
386 386
  map { $_.'_rate', $_.'_description', $_.'_taxnumber' } split / /, $form->{taxaccounts}];
387 387

  
388
  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.SalesPurchase ckeditor/ckeditor ckeditor/adapters/jquery kivi.io));
388
  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.SalesPurchase ckeditor/ckeditor ckeditor/adapters/jquery kivi.io autocomplete_customer));
389 389

  
390 390
  $form->header();
391 391

  
bin/mozilla/oe.pl
465 465
    }
466 466
  }
467 467

  
468
  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.SalesPurchase show_form_details show_history show_vc_details ckeditor/ckeditor ckeditor/adapters/jquery kivi.io));
468
  $::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));
469 469

  
470 470
  $form->header;
471 471
  if ($form->{CFDD_shipto} && $form->{CFDD_shipto_id} ) {
templates/webpages/amcvar/render_inputs.html
25 25
<input name="[% var_name %]" value="[% HTML.escape(var.value) %]">
26 26

  
27 27
[%- ELSIF var.type == 'customer' %]
28
[% L.customer_picker(var_name, var.value) %]
28
[% L.customer_vendor_picker(var_name, var.value, type='customer') %]
29 29

  
30 30
[%- ELSIF var.type == 'vendor' %]
31
[% L.vendor_selector(var_name, var.value) %]
31
[% L.customer_vendor_picker(var_name, var.value, type='vendor') %]
32 32

  
33 33
[%- ELSIF var.type == 'part' %]
34 34
[% L.part_selector(var_name, var.value) %]
templates/webpages/amcvar/render_inputs_block.html
54 54
</select>
55 55

  
56 56
[%- ELSIF cvar.var.type == 'customer' %]
57
[%- L.customer_picker(cvar_tag_name, cvar.value, render_cvar_tag_options) %]
57
[%- render_cvar_tag_options.type = 'customer' %]
58
[%- L.customer_vendor_picker(cvar_tag_name, cvar.value, render_cvar_tag_options) %]
58 59

  
59 60
[%- ELSIF cvar.var.type == 'vendor' %]
60
[% L.vendor_selector(cvar_tag_name, cvar.value, render_cvar_tag_options) %]
61
[%- render_cvar_tag_options.type = 'vendor' %]
62
[%- L.customer_vendor_picker(cvar_tag_name, cvar.value, render_cvar_tag_options) %]
61 63

  
62 64
[%- ELSIF cvar.var.type == 'part' %]
63 65
[% L.part_selector(cvar_tag_name, cvar.value, render_cvar_tag_options) %]
templates/webpages/rp/report.html
70 70
[%- BLOCK customer %]
71 71
  <tr>
72 72
    <th align=right nowrap>[% 'Customer' | $T8 %]</th>
73
    <td colspan=3>[% L.customer_picker('customer_id') %]</td>
73
    <td colspan=3>[% L.customer_vendor_picker('customer_id', '', type='customer') %]</td>
74 74
  </tr>
75 75
[%- END %]
76 76
[%- BLOCK projectnumber %]

Auch abrufbar als: Unified diff