Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 652b8ed2

Von Hans Peter Schlaepfer vor etwa 6 Jahren hinzugefügt

  • ID 652b8ed267d9b068fc800ff7dd8e2fe4f9d436a6
  • Vorgänger 98768b68
  • Nachfolger 5b4e0fd0

Design 4.0: b/m/oe.pl: notes/intnotes/ALL_DELIVERY_TERMS von footer in header

Unterschiede anzeigen:

bin/mozilla/oe.pl
662 662
    $TMPL_VAR->{transport_cost_reminder_article} = SL::DB::Part->new(id => $::instance_conf->get_transport_cost_reminder_article_number_id)->load;
663 663
  }
664 664

  
665
  # following 4 lines came from form_footer, comments/notes are now in upper part of the page
666
  my $introws = max 5, $form->numtextrows($form->{intnotes}, 35, 8);
667

  
668
  my $TMPL_VAR = $::request->cache('tmpl_var', {});
669

  
670
  $TMPL_VAR->{notes}    = qq|<textarea name="notes" class="texteditor" wrap="soft" style="width: 300px; height: 150px">| . H($form->{notes}) . qq|</textarea>|;
671
  $TMPL_VAR->{intnotes} = qq|<textarea name=intnotes rows="$introws" cols="35">| . H($form->{intnotes}) . qq|</textarea>|;
672

  
673
  $TMPL_VAR->{ALL_DELIVERY_TERMS} = SL::DB::Manager::DeliveryTerm->get_all_sorted(); # moved from sub form_footer
674

  
675

  
676

  
665 677
  print $form->parse_html_template("oe/form_header", {
666 678
    %$TMPL_VAR,
667 679
    %type_check_vars,
......
681 693

  
682 694
  $form->{invtotal} = $form->{invsubtotal};
683 695

  
684
  my $introws = max 5, $form->numtextrows($form->{intnotes}, 35, 8);
696
  #my $introws = max 5, $form->numtextrows($form->{intnotes}, 35, 8);
685 697

  
686 698
  my $TMPL_VAR = $::request->cache('tmpl_var', {});
687 699

  
688
  $TMPL_VAR->{notes}    = qq|<textarea name="notes" class="texteditor" wrap="soft" style="width: 350px; height: 150px">| . H($form->{notes}) . qq|</textarea>|;
689
  $TMPL_VAR->{intnotes} = qq|<textarea name=intnotes rows="$introws" cols="35">| . H($form->{intnotes}) . qq|</textarea>|;
700
  #$TMPL_VAR->{notes}    = qq|<textarea name="notes" class="texteditor" wrap="soft" style="width: 350px; height: 150px">| . H($form->{notes}) . qq|</textarea>|;
701
  #$TMPL_VAR->{intnotes} = qq|<textarea name=intnotes rows="$introws" cols="35">| . H($form->{intnotes}) . qq|</textarea>|;
690 702

  
691 703
  if( $form->{customer_id} && !$form->{taxincluded_changed_by_user} ) {
692 704
    my $customer = SL::DB::Customer->new(id => $form->{customer_id})->load();

Auch abrufbar als: Unified diff