X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Far.pl;h=e0ed1e7935bd983f00a7905cd2292011e66a050c;hb=504db13fd9becf571a4bfce548342e2d6deefb19;hp=480507bb3e76ae18533ea677ac9e17a6b1276f7d;hpb=935b8083e67fa9b2871ae0f6a3ea5b8ca1661172;p=kivitendo-erp.git diff --git a/bin/mozilla/ar.pl b/bin/mozilla/ar.pl index 480507bb3..e0ed1e793 100644 --- a/bin/mozilla/ar.pl +++ b/bin/mozilla/ar.pl @@ -409,7 +409,7 @@ sub form_header { gldate => $form->{"gldate_$i"}, }; - # default account for current assets (i.e. 1801 - SKR04) + # default account for current assets (i.e. 1801 - SKR04) if no account is selected $form->{accno_arap} = IS->get_standard_accno_current_assets(\%myconfig, \%$form); $payment->{selectAR_paid} = @@ -417,7 +417,7 @@ sub form_header { '-id' => "AR_paid_$i", '-values' => \@AR_paid_values, '-labels' => \%chart_labels, - '-default' => $form->{accno_arap})); + '-default' => $payment->{AR_paid} || $form->{accno_arap})); @@ -847,7 +847,7 @@ sub search { "departments" => "ALL_DEPARTMENTS", "customers" => "ALL_VC", "business_types" => "ALL_BUSINESS_TYPES"); - $form->{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all(query => [ deleted => 0 ]); + $form->{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all_sorted(query => [ deleted => 0 ]); $form->{SHOW_BUSINESS_TYPES} = scalar @{ $form->{ALL_BUSINESS_TYPES} } > 0; # constants and subs for template