X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Fsepa.pl;h=40d2dff79f4b62864f26527783855cd5b4598fbb;hb=4b211b2b087d445984df5220437400bced1dd1dd;hp=f559c604b56f3003d1c8c52383030787c7450446;hpb=2dd5cce2fcb6c36af7e1031122fe2b85a7d1d583;p=kivitendo-erp.git diff --git a/bin/mozilla/sepa.pl b/bin/mozilla/sepa.pl index f559c604b..40d2dff79 100755 --- a/bin/mozilla/sepa.pl +++ b/bin/mozilla/sepa.pl @@ -40,6 +40,8 @@ sub bank_transfer_add { return; } + $_->{checked} = $_->{direct_debit} for @{ $invoices }; + my $bank_account_label_sub = sub { $locale->text('Account number #1, bank code #2, #3', $_[0]->{account_number}, $_[0]->{bank_code}, $_[0]->{bank}) }; my $translation_list = GenericTranslations->list(translation_type => 'sepa_remittance_info_pfx'); @@ -176,7 +178,7 @@ sub bank_transfer_list { my $form = $main::form; my $locale = $main::locale; - my $cgi = $main::cgi; + my $cgi = $::request->{cgi}; my $vc = $form->{vc} eq 'customer' ? 'customer' : 'vendor'; $form->{title} = $vc eq 'customer' ? $::locale->text('List of bank collections') : $locale->text('List of bank transfers'); @@ -443,7 +445,7 @@ sub bank_transfer_download_sepa_xml { my $form = $main::form; my $myconfig = \%main::myconfig; my $locale = $main::locale; - my $cgi = $main::cgi; + my $cgi = $::request->{cgi}; my $vc = $form->{vc} eq 'customer' ? 'customer' : 'vendor'; if (!$myconfig->{company}) {