Revision fac049a0
Von Bernd Bleßmann vor etwa 11 Jahren hinzugefügt
bin/mozilla/oe.pl | ||
---|---|---|
721 | 721 |
$form->all_vc(\%myconfig, $form->{vc}, ($form->{vc} eq 'customer') ? "AR" : "AP"); |
722 | 722 |
$form->get_lists("projects" => { "key" => "ALL_PROJECTS", "all" => 1 }, |
723 | 723 |
"departments" => "ALL_DEPARTMENTS", |
724 |
"$form->{vc}s" => "ALL_VC"); |
|
724 |
"$form->{vc}s" => "ALL_VC", |
|
725 |
"business_types" => "ALL_BUSINESS_TYPES"); |
|
725 | 726 |
$form->{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all(query => [ deleted => 0 ]); |
726 | 727 |
|
727 | 728 |
# constants and subs for template |
... | ... | |
829 | 830 |
my @hidden_variables = map { "l_${_}" } @columns; |
830 | 831 |
push @hidden_variables, "l_subtotal", $form->{vc}, qw(l_closed l_notdelivered open closed delivered notdelivered ordnumber quonumber |
831 | 832 |
transaction_description transdatefrom transdateto type vc employee_id salesman_id |
832 |
reqdatefrom reqdateto projectnumber project_id periodic_invoices_active periodic_invoices_inactive); |
|
833 |
reqdatefrom reqdateto projectnumber project_id periodic_invoices_active periodic_invoices_inactive |
|
834 |
business_id); |
|
833 | 835 |
|
834 | 836 |
my $href = build_std_url('action=orders', grep { $form->{$_} } @hidden_variables); |
835 | 837 |
|
... | ... | |
902 | 904 |
push @options, $locale->text('Not delivered') if $form->{notdelivered}; |
903 | 905 |
push @options, $locale->text('Periodic invoices active') if $form->{periodic_invoices_actibe}; |
904 | 906 |
|
907 |
if ($form->{business_id}) { |
|
908 |
my $vc_type_label = $form->{vc} eq 'customer' ? $locale->text('Customer type') : $locale->text('Vendor type'); |
|
909 |
push @options, $vc_type_label . " : " . SL::DB::Business->new(id => $form->{business_id})->load->description; |
|
910 |
} |
|
911 |
|
|
905 | 912 |
$report->set_options('top_info_text' => join("\n", @options), |
906 | 913 |
'raw_top_info_text' => $form->parse_html_template('oe/orders_top'), |
907 | 914 |
'raw_bottom_info_text' => $form->parse_html_template('oe/orders_bottom', { 'SHOW_CONTINUE_BUTTON' => $allow_multiple_orders }), |
Auch abrufbar als: Unified diff
Filtern nach Kunden-/Lieferantentyp bei Angeboten u. Aufträgen