X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/24bb9ded832e2ed1054973fd025cfa6c5fec021e..8da48ee4a0eb2ee174d54a04487ecf83f2969ce6:/SL/Controller/MassInvoiceCreatePrint.pm diff --git a/SL/Controller/MassInvoiceCreatePrint.pm b/SL/Controller/MassInvoiceCreatePrint.pm index 014824583..78e7859c0 100644 --- a/SL/Controller/MassInvoiceCreatePrint.pm +++ b/SL/Controller/MassInvoiceCreatePrint.pm @@ -15,14 +15,14 @@ use SL::DB::Order; use SL::DB::Printer; use SL::Helper::MassPrintCreatePDF qw(:all); use SL::Helper::CreatePDF qw(:all); -use SL::Helper::File qw(store_pdf append_general_pdf_attachments); +use SL::Helper::File qw(store_pdf append_general_pdf_attachments doc_storage_enabled); use SL::Helper::Flash; use SL::Locale::String; use SL::SessionFile; use SL::System::TaskServer; use Rose::Object::MakeMethods::Generic ( - 'scalar --get_set_init' => [ qw(invoice_models invoice_ids sales_delivery_order_models printers default_printer_id today) ], + 'scalar --get_set_init' => [ qw(invoice_models invoice_ids sales_delivery_order_models printers default_printer_id today all_businesses) ], ); __PACKAGE__->run_before('setup'); @@ -262,6 +262,10 @@ sub init_default_printer_id { return $pr ? $pr->id : undef; } +sub init_all_businesses { + return SL::DB::Manager::Business->get_all_sorted; +} + sub setup { my ($self) = @_; $::auth->assert('invoice_edit');