Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 8833dbf4

Von Hans Peter Schlaepfer vor mehr als 5 Jahren hinzugefügt

  • ID 8833dbf484295dba9d9381734475a4e18e24aaf8
  • Vorgänger 460de86c
  • Nachfolger bd1db5d4

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

Unterschiede anzeigen:

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

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

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

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

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

  
676

  
677

  
666 678
  print $form->parse_html_template("oe/form_header", {
667 679
    %$TMPL_VAR,
668 680
    %type_check_vars,
......
682 694

  
683 695
  $form->{invtotal} = $form->{invsubtotal};
684 696

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

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

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

  
687 704
  if( $form->{customer_id} && !$form->{taxincluded_changed_by_user} ) {
688 705
    my $customer = SL::DB::Customer->new(id => $form->{customer_id})->load();
689 706
    $form->{taxincluded} = defined($customer->taxincluded_checked) ? $customer->taxincluded_checked : $myconfig{taxincluded_checked};

Auch abrufbar als: Unified diff