Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 62bf9a5c

Von Sven Schöling vor etwa 7 Jahren hinzugefügt

  • ID 62bf9a5c87218a9c1205c594c500346b4a7ec670
  • Vorgänger 7e7aae8d
  • Nachfolger ec2323b2

CustomerVendor Picker: autocomplete_customer.js includes umgestellt

Unterschiede anzeigen:

SL/Controller/PriceRule.pm
239 239
}
240 240

  
241 241
sub add_javascripts  {
242
  $::request->{layout}->add_javascripts(qw(kivi.PriceRule.js autocomplete_customer.js autocomplete_vendor.js kivi.Part.js));
242
  $::request->{layout}->add_javascripts(qw(kivi.PriceRule.js autocomplete_vendor.js kivi.Part.js kivi.CustomerVendor.js));
243 243
}
244 244

  
245 245
sub init_price_rule {
SL/Controller/RequirementSpec.pm
325 325

  
326 326
  $::auth->assert('requirement_spec_edit');
327 327
  $::request->{layout}->use_stylesheet("${_}.css") for qw(jquery.contextMenu requirement_spec);
328
  $::request->{layout}->use_javascript("${_}.js")  for qw(jquery.jstree jquery/jquery.contextMenu jquery/jquery.hotkeys requirement_spec ckeditor/ckeditor ckeditor/adapters/jquery kivi.Part autocomplete_customer);
328
  $::request->{layout}->use_javascript("${_}.js")  for qw(jquery.jstree jquery/jquery.contextMenu jquery/jquery.hotkeys requirement_spec ckeditor/ckeditor ckeditor/adapters/jquery kivi.Part kivi.CustomerVendor.js);
329 329
  $self->init_visible_section;
330 330

  
331 331
  return 1;
bin/mozilla/ap.pl
437 437
  my $follow_up_vc         = $form->{vendor_id} ? SL::DB::Vendor->load_cached($form->{vendor_id})->name : '';
438 438
  my $follow_up_trans_info =  "$form->{invnumber} ($follow_up_vc)";
439 439

  
440
  $::request->layout->add_javascripts("autocomplete_chart.js", "autocomplete_customer.js", "show_vc_details.js", "show_history.js", "follow_up.js", "kivi.Draft.js", "kivi.GL.js", "kivi.RecordTemplate.js", "kivi.File.js", "kivi.AP.js");
440
  $::request->layout->add_javascripts("autocomplete_chart.js", "show_vc_details.js", "show_history.js", "follow_up.js", "kivi.Draft.js", "kivi.GL.js", "kivi.RecordTemplate.js", "kivi.File.js", "kivi.AP.js", "kivi.CustomerVendor.js");
441 441
  my $transdate = $::form->{transdate} ? DateTime->from_kivitendo($::form->{transdate}) : DateTime->today_local;
442 442
  my $first_taxchart;
443 443

  
bin/mozilla/ar.pl
393 393
  my $follow_up_vc         = $form->{customer_id} ? SL::DB::Customer->load_cached($form->{customer_id})->name : '';
394 394
  my $follow_up_trans_info =  "$form->{invnumber} ($follow_up_vc)";
395 395

  
396
  $::request->layout->add_javascripts("autocomplete_chart.js", "autocomplete_customer.js", "show_vc_details.js", "show_history.js", "follow_up.js", "kivi.Draft.js", "kivi.GL.js", "kivi.File.js", "kivi.RecordTemplate.js", "kivi.AR.js");
396
  $::request->layout->add_javascripts("autocomplete_chart.js", "show_vc_details.js", "show_history.js", "follow_up.js", "kivi.Draft.js", "kivi.GL.js", "kivi.File.js", "kivi.RecordTemplate.js", "kivi.AR.js", "kivi.CustomerVendor.js");
397 397

  
398 398
  my $transdate = $::form->{transdate} ? DateTime->from_kivitendo($::form->{transdate}) : DateTime->today_local;
399 399
  my $first_taxchart;
bin/mozilla/cp.pl
103 103

  
104 104
  $auth->assert('cash');
105 105

  
106
  $::request->layout->add_javascripts("autocomplete_customer.js");
106
  $::request->layout->add_javascripts("kivi.CustomerVendor.js");
107 107

  
108 108
  my ($arap, $exchangerate);
109 109

  
bin/mozilla/do.pl
460 460

  
461 461
  $form->{follow_up_trans_info} = $form->{donumber} .'('. $form->{VC_OBJ}->name .')' if $form->{VC_OBJ};
462 462

  
463
  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.File kivi.MassDeliveryOrderPrint kivi.SalesPurchase kivi.Part ckeditor/ckeditor ckeditor/adapters/jquery kivi.io autocomplete_customer));
463
  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.File kivi.MassDeliveryOrderPrint kivi.SalesPurchase kivi.Part kivi.CustomerVendor ckeditor/ckeditor ckeditor/adapters/jquery kivi.io));
464 464

  
465 465
  my @custom_hidden;
466 466
  push @custom_hidden, map { "shiptocvar_" . $_->name } @{ SL::DB::Manager::CustomVariableConfig->get_all(where => [ module => 'ShipTo' ]) };
bin/mozilla/ir.pl
389 389
  $TMPL_VAR{payment_terms_obj} = get_payment_terms_for_invoice();
390 390
  $form->{duedate}             = $TMPL_VAR{payment_terms_obj}->calc_date(reference_date => $form->{invdate}, due_date => $form->{duedate})->to_kivitendo if $TMPL_VAR{payment_terms_obj};
391 391

  
392
  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.Draft kivi.File  kivi.SalesPurchase kivi.Part ckeditor/ckeditor ckeditor/adapters/jquery kivi.io autocomplete_customer autocomplete_project client_js));
392
  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.Draft kivi.File kivi.SalesPurchase kivi.Part kivi.CustomerVendor ckeditor/ckeditor ckeditor/adapters/jquery kivi.io autocomplete_project client_js));
393 393

  
394 394
  setup_ir_action_bar();
395 395

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

  
485
  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.Draft kivi.File kivi.SalesPurchase kivi.Part ckeditor/ckeditor ckeditor/adapters/jquery kivi.io autocomplete_customer client_js));
485
  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.Draft kivi.File kivi.SalesPurchase kivi.Part kivi.CustomerVendor.js ckeditor/ckeditor ckeditor/adapters/jquery kivi.io client_js));
486 486

  
487 487
  $TMPL_VAR{payment_terms_obj} = get_payment_terms_for_invoice();
488 488
  $form->{duedate}             = $TMPL_VAR{payment_terms_obj}->calc_date(reference_date => $form->{invdate}, due_date => $form->{duedate})->to_kivitendo if $TMPL_VAR{payment_terms_obj};
bin/mozilla/oe.pl
600 600
    }
601 601
  }
602 602

  
603
  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.SalesPurchase kivi.File kivi.Part show_form_details show_history show_vc_details ckeditor/ckeditor ckeditor/adapters/jquery kivi.io autocomplete_customer));
603
  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.SalesPurchase kivi.File kivi.Part kivi.CustomerVendor show_form_details show_history show_vc_details ckeditor/ckeditor ckeditor/adapters/jquery kivi.io));
604 604

  
605 605

  
606 606
  # original snippets:
bin/mozilla/rp.pl
143 143
  );
144 144

  
145 145
  $::form->{title} = $title{$::form->{report}};
146
  $::request->{layout}->add_javascripts('autocomplete_customer.js');
146
  $::request->{layout}->add_javascripts('kivi.CustomerVendor.js');
147 147
  $::request->{layout}->add_javascripts('autocomplete_project.js');
148 148
  $::form->{fromdate} = DateTime->today->truncate(to => 'year')->to_kivitendo;
149 149
  $::form->{todate} = DateTime->today->truncate(to => 'year')->add(years => 1)->add(days => -1)->to_kivitendo;

Auch abrufbar als: Unified diff