Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ee75e598

Von Martin Helmling vor etwa 9 Jahren hinzugefügt

  • ID ee75e5986c75b6cf9886bf315e83d05ae210add0
  • Vorgänger 511e5cb5
  • Nachfolger c23e2dfa

MassRecordCreationAndPrinting: SessionFiles für TaskServer Fix

Unterschiede anzeigen:

SL/BackgroundJob/MassRecordCreationAndPrinting.pm
30 30
#   conversion_errors  => [ { id => 124, number => 'A981723', message => "Stuff went boom" }, ],
31 31
#   print_errors       => [ { id => 234, number => 'L87123123', message => "Printer is out of coffee" }, ],
32 32
#   pdf_file_name      => 'qweqwe.pdf',
33
#   session_id         => $::auth->get_session_id,
33 34
# };
34 35

  
35 36
sub create_invoices {
......
153 154

  
154 155
      if (!$printer_id) {
155 156
        my $file_name = 'mass_invoice' . $job_obj->id . '.pdf';
156
        my $sfile     = SL::SessionFile->new($file_name, mode => 'w');
157
        my $sfile     = SL::SessionFile->new($file_name, mode => 'w', session_id => $data->{session_id});
157 158
        $sfile->fh->print($self->{merged_pdf});
158 159
        $sfile->fh->close;
159 160

  
SL/Controller/MassInvoiceCreatePrint.pm
137 137
    invoice_ids        => [ ],
138 138
    conversion_errors  => [ ],
139 139
    print_errors       => [ ],
140
    session_id         => $::auth->get_session_id,
140 141

  
141 142
  )->update_next_run_at;
142 143

  

Auch abrufbar als: Unified diff