Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f9b53d4a

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

  • ID f9b53d4af20d99001897df018b22f30bf7c9186d
  • Vorgänger 2459db37
  • Nachfolger 07a768c3

Letter: Fehler beim Druck

Unterschiede anzeigen:

SL/Controller/Letter.pm
174 174

  
175 175
  $self->export_letter_to_form($letter);
176 176
  $::form->{formname} = "letter";
177
  $::form->{format} = "pdf";
177
  $::form->{type}     = "letter";
178
  $::form->{format}   = "pdf";
178 179

  
179 180
  my $language_saved      = $::form->{language_id};
180 181
  my $greeting_saved      = $::form->{greeting};
181 182
  my $cp_id_saved         = $::form->{cp_id};
182 183

  
184
  $::form->{customer_id} = $self->letter->vc_id;
183 185
  IS->customer_details(\%::myconfig, $::form);
184 186

  
185 187
  if (!$cp_id_saved) {
......
245 247
      my $file = IO::File->new($pdf_file_name, 'r') || croak("Cannot open file '$pdf_file_name'");
246 248
      my $size = -s $pdf_file_name;
247 249
      my $content_type    =  'application/pdf';
250
      $::form->{letternumber} = $self->letter->letternumber;
248 251
      my $attachment_name =  $::form->generate_attachment_filename;
249 252
      $attachment_name    =~ s:.*//::g;
250 253

  

Auch abrufbar als: Unified diff