X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Frp.pl;h=a7f6edeac0f756e43f88caf20409c7742d881732;hb=473431b1a1008e2cdcb5d49bb04227f5b0004852;hp=845b1be3d9fb13194e2eb1defa2e58507ec12a16;hpb=19fb04d1cfad224a0f0c4c3b88494b4605fc6d4e;p=kivitendo-erp.git diff --git a/bin/mozilla/rp.pl b/bin/mozilla/rp.pl index 845b1be3d..a7f6edeac 100644 --- a/bin/mozilla/rp.pl +++ b/bin/mozilla/rp.pl @@ -43,11 +43,12 @@ use SL::DB::Project; use SL::DB::Customer; use SL::RP; use SL::Iconv; +use SL::Locale::String qw(t8); +use SL::Presenter::Tag; use SL::ReportGenerator; use Data::Dumper; use List::MoreUtils qw(any); -require "bin/mozilla/arap.pl"; require "bin/mozilla/common.pl"; require "bin/mozilla/reportgenerator.pl"; @@ -143,7 +144,7 @@ sub report { ); $::form->{title} = $title{$::form->{report}}; - $::request->{layout}->add_javascripts('autocomplete_customer.js'); + $::request->{layout}->add_javascripts('kivi.CustomerVendor.js'); $::request->{layout}->add_javascripts('autocomplete_project.js'); $::form->{fromdate} = DateTime->today->truncate(to => 'year')->to_kivitendo; $::form->{todate} = DateTime->today->truncate(to => 'year')->add(years => 1)->add(days => -1)->to_kivitendo; @@ -165,6 +166,7 @@ sub report { my $is_trial_balance = $::form->{report} eq "trial_balance"; my $is_aging = $::form->{report} =~ /^a[rp]_aging$/; my $is_payments = $::form->{report} =~ /(receipts|payments)$/; + my $format = 'html'; my ($label, $nextsub, $vc); if ($is_aging) { @@ -174,12 +176,9 @@ sub report { $nextsub = "generate_$::form->{report}"; - # setup vc selection - $::form->all_vc(\%::myconfig, $::form->{vc}, $is_sales ? "AR" : "AP"); - $vc .= "