Revision fb5900bf
Von Bernd Bleßmann vor etwa 5 Jahren hinzugefügt
SL/Controller/MassInvoiceCreatePrint.pm | ||
---|---|---|
22 | 22 |
use SL::System::TaskServer; |
23 | 23 |
use Rose::Object::MakeMethods::Generic |
24 | 24 |
( |
25 |
'scalar --get_set_init' => [ qw(invoice_models invoice_ids sales_delivery_order_models printers default_printer_id today) ], |
|
25 |
'scalar --get_set_init' => [ qw(invoice_models invoice_ids sales_delivery_order_models printers default_printer_id today all_businesses) ],
|
|
26 | 26 |
); |
27 | 27 |
|
28 | 28 |
__PACKAGE__->run_before('setup'); |
... | ... | |
262 | 262 |
return $pr ? $pr->id : undef; |
263 | 263 |
} |
264 | 264 |
|
265 |
sub init_all_businesses { |
|
266 |
return SL::DB::Manager::Business->get_all_sorted; |
|
267 |
} |
|
268 |
|
|
265 | 269 |
sub setup { |
266 | 270 |
my ($self) = @_; |
267 | 271 |
$::auth->assert('invoice_edit'); |
templates/webpages/mass_invoice_create_print_from_do/_filter.html | ||
---|---|---|
13 | 13 |
<th align="right">[% LxERP.t8('Customer') %]</th> |
14 | 14 |
<td>[% L.input_tag('filter.customer.name:substr::ilike', filter.customer.name_substr__ilike, size = 20) %]</td> |
15 | 15 |
</tr> |
16 |
<tr> |
|
17 |
<th align="right">[% LxERP.t8('Customer type') %]</th> |
|
18 |
<td> |
|
19 |
[% L.select_tag('filter.customer.business_id', SELF.all_businesses, |
|
20 |
default => filter.customer.business_id |
|
21 |
title_key => 'description', |
|
22 |
value_key => 'id', |
|
23 |
with_empty => 1, |
|
24 |
style => 'width: 200px') %] |
|
25 |
</td> |
|
26 |
</tr> |
|
16 | 27 |
<tr> |
17 | 28 |
<th align="right">[% LxERP.t8('Delivery Order Date') %] [% LxERP.t8('From Date') %]</th> |
18 | 29 |
<td>[% L.date_tag('filter.transdate:date::ge', filter.transdate_date__ge) %]</td> |
Auch abrufbar als: Unified diff
Massenerstellen von Rechnungen aus LS: Filtern nach Kundentyp