X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fbankaccounts.pl;h=a11fb6bb6bc5e56f6269d4f27a182cf897dd6055;hb=094307a8ce3e7680a5b14ef17b5c1094a2555009;hp=f8bbb3a849e1e0e3337adf1e1ae66e486181258f;hpb=7ecdb94715674d62df85fc746fe06db10c7ade9b;p=kivitendo-erp.git diff --git a/bin/mozilla/bankaccounts.pl b/bin/mozilla/bankaccounts.pl index f8bbb3a84..a11fb6bb6 100644 --- a/bin/mozilla/bankaccounts.pl +++ b/bin/mozilla/bankaccounts.pl @@ -32,6 +32,16 @@ sub bank_account_edit { $main::lxdebug->leave_sub(); } +sub bank_account_delete { + $::lxdebug->enter_sub(); + + SL::BankAccount->delete(id => $::form->{account}{id}); + + print $::form->redirect_header('bankaccounts.pl?action=bank_account_list'); + + $::lxdebug->leave_sub(); +} + sub bank_account_display_form { $main::lxdebug->enter_sub(); @@ -126,7 +136,7 @@ sub bank_account_list { 'attachment_basename' => $locale->text('bankaccounts') . strftime('_%Y%m%d', localtime time), ); $report->set_options_from_form(); - $locale->set_numberformat_wo_thousands_separator(\%myconfig) if lc($report->{options}->{output_format}) eq 'csv'; + $locale->set_numberformat_wo_thousands_separator(\%::myconfig) if lc($report->{options}->{output_format}) eq 'csv'; $report->set_columns(%column_defs); $report->set_column_order(@columns);