Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a590a651

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

  • ID a590a6518025280c2d6e76c87641764ca6198521
  • Vorgänger 9e2386ab
  • Nachfolger 6aa467fa

save_history sollte NICHT jedesmal eine neue datenbankverbindung aufmachen.

Unterschiede anzeigen:

bin/mozilla/do.pl
637 637
  if(!exists $form->{addition}) {
638 638
    $form->{snumbers} = qq|donumber_| . $form->{donumber};
639 639
    $form->{addition} = "SAVED";
640
    $form->save_history($form->dbconnect(\%myconfig));
640
    $form->save_history;
641 641
  }
642 642
  # /saving the history
643 643

  
......
683 683
    if(!exists $form->{addition}) {
684 684
      $form->{snumbers} = qq|donumber_| . $form->{donumber};
685 685
      $form->{addition} = "DELETED";
686
      $form->save_history($form->dbconnect(\%myconfig));
686
      $form->save_history;
687 687
    }
688 688
    # /saving the history
689 689

  
......
732 732

  
733 733
  for my $i (1 .. $form->{rowcount}) {
734 734
    # für bug 1284
735
    if ($form->{discount}){ # Falls wir einen Kundenrabatt haben 
735
    if ($form->{discount}){ # Falls wir einen Kundenrabatt haben
736 736
      # und keinen anderen discount wert an $i ...
737 737
      $form->{"discount_$i"} ||= $form->{discount}*100; # ... nehmen wir den kundenrabatt
738 738
    }

Auch abrufbar als: Unified diff