X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FChart.pm;h=0e3e2b6fc2a46e701baade1b676c71f948e1bbd5;hb=c2efdba2dfa10e76937e4bdf5a18e5483d0cddb0;hp=624a65b1da52324e90bbbf890aa5ff822752d2fa;hpb=8b7577d4312828059ef56715a7a26df2e87792ec;p=kivitendo-erp.git diff --git a/SL/Controller/Chart.pm b/SL/Controller/Chart.pm index 624a65b1d..0e3e2b6fc 100644 --- a/SL/Controller/Chart.pm +++ b/SL/Controller/Chart.pm @@ -29,6 +29,7 @@ sub action_ajax_autocomplete { if (1 == scalar @{ $exact_matches = SL::DB::Manager::Chart->get_all( query => [ SL::DB::Manager::Chart->type_filter($::form->{filter}{type}), + charttype => 'A', or => [ description => { ilike => $::form->{filter}{'all:substr:multi::ilike'} }, accno => { ilike => $::form->{filter}{'all:substr:multi::ilike'} }, @@ -54,7 +55,7 @@ sub action_ajax_autocomplete { } sub action_test_page { - $_[0]->render('chart/test_page'); + $_[0]->render('chart/test_page', pre_filled_chart => SL::DB::Manager::Chart->get_first); } sub action_chart_picker_search { @@ -108,6 +109,9 @@ sub init_models { accno => t8('Account number'), description => t8('Description'), }, + query => [ + charttype => 'A', + ], ); }