Revision fe669345
Von Sven Schöling vor mehr als 9 Jahren hinzugefügt
SL/Controller/MassInvoiceCreatePrint.pm | ||
---|---|---|
|
||
use Rose::Object::MakeMethods::Generic
|
||
(
|
||
'scalar --get_set_init' => [ qw(invoice_models invoice_ids sales_delivery_order_models printers default_printer_id js) ],
|
||
'scalar --get_set_init' => [ qw(invoice_models invoice_ids sales_delivery_order_models printers default_printer_id) ],
|
||
);
|
||
|
||
__PACKAGE__->run_before('setup');
|
||
... | ... | |
# filters
|
||
#
|
||
|
||
sub init_js { SL::ClientJS->new(controller => $_[0]) }
|
||
sub init_printers { SL::DB::Manager::Printer->get_all_sorted }
|
||
sub init_invoice_ids { [] }
|
||
|
||
... | ... | |
If the above is done (did I already said: boring linear?). Documents will
|
||
be either printed or downloaded.
|
||
|
||
=item C<init_js>
|
||
|
||
Inits js/kivi.MassInvoiceCreatePrint;
|
||
|
||
=item C<init_printers>
|
||
|
||
Gets all printer commands
|
Auch abrufbar als: Unified diff
MassInvoiceCreatePrint: js accessor angepasst