projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LXDebug::clone_for_dump: Warnung wegen Hash-Zugriff mit Key undef vermeiden
[kivitendo-erp.git]
/
SL
/
Controller
/
MassInvoiceCreatePrint.pm
diff --git
a/SL/Controller/MassInvoiceCreatePrint.pm
b/SL/Controller/MassInvoiceCreatePrint.pm
index
a3cf2a0
..
78e7859
100644
(file)
--- a/
SL/Controller/MassInvoiceCreatePrint.pm
+++ b/
SL/Controller/MassInvoiceCreatePrint.pm
@@
-22,7
+22,7
@@
use SL::SessionFile;
use SL::System::TaskServer;
use Rose::Object::MakeMethods::Generic
(
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');
);
__PACKAGE__->run_before('setup');
@@
-262,6
+262,10
@@
sub init_default_printer_id {
return $pr ? $pr->id : undef;
}
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');
sub setup {
my ($self) = @_;
$::auth->assert('invoice_edit');