Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 254bf1ff

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

  • ID 254bf1ffce20af018f500b81c37b6172f60beccb
  • Vorgänger 5dd469a5
  • Nachfolger 140dec80

Title erst nach create_invoice setzen, dadrin wird der typ sanitized.

Unterschiede anzeigen:

bin/mozilla/is.pl
94 94
  $form->{javascript} = qq|<script type="text/javascript" src="js/show_history.js"></script>|;
95 95
  #/show hhistory button
96 96

  
97
  if ($form->{type} eq "credit_note") {
98
    $form->{title} = $locale->text('Edit Credit Note');
99
    $form->{title} = $locale->text('Edit Storno Credit Note') if $form->{storno};
100
  } else {
101
    $form->{title} = $locale->text('Edit Sales Invoice');
102
    $form->{title} = $locale->text('Edit Storno Invoice')     if $form->{storno};
103
  }
104

  
105 97
  my ($language_id, $printer_id);
106 98
  if ($form->{print_and_post}) {
107 99
    $form->{action}   = "print";
......
109 101
    $language_id = $form->{language_id};
110 102
    $printer_id = $form->{printer_id};
111 103
  }
104

  
112 105
  &invoice_links;
106
  if ($form->{type} eq "credit_note") {
107
    $form->{title} = $locale->text('Edit Credit Note');
108
    $form->{title} = $locale->text('Edit Storno Credit Note') if $form->{storno};
109
  } else {
110
    $form->{title} = $locale->text('Edit Sales Invoice');
111
    $form->{title} = $locale->text('Edit Storno Invoice')     if $form->{storno};
112
  }
113

  
113 114
  &prepare_invoice;
114 115
  if ($form->{print_and_post}) {
115 116
    $form->{language_id} = $language_id;

Auch abrufbar als: Unified diff