Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e0fb092b

Von Werner Hahn vor fast 3 Jahren hinzugefügt

MassRecordCreationAndPrinting - MassInvoiceCreatePrint: Auftrag schliessen

Unterschiede anzeigen:

SL/Controller/MassInvoiceCreatePrint.pm
19 19
use SL::Helper::Flash;
20 20
use SL::Locale::String;
21 21
use SL::SessionFile;
22
use SL::ARAP;
22 23
use SL::System::TaskServer;
23 24
use Rose::Object::MakeMethods::Generic
24 25
(
......
57 58
  }
58 59

  
59 60
  my $db = SL::DB::Invoice->new->db;
61
  my $dbh = SL::DB->client->dbh;
60 62
  my @invoices;
61 63
  my @already_closed_delivery_orders;
62 64

  
......
73 75

  
74 76
      } else {
75 77
        my $invoice = $delivery_order->convert_to_invoice() || die $db->error;
78

  
79
        ARAP->close_orders_if_billed('dbh'     => $dbh,
80
                                     'arap_id' => $invoice->id,
81
                                     'table'   => 'ar',);
82

  
76 83
        push @invoices, $invoice;
77 84
      }
78 85
    }

Auch abrufbar als: Unified diff