X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/f7c9046f3d5014fd964ac9f85b3d124ffc4aeb4f..87eebe6:/bin/mozilla/bankaccounts.pl diff --git a/bin/mozilla/bankaccounts.pl b/bin/mozilla/bankaccounts.pl index 0815954dc..a11fb6bb6 100644 --- a/bin/mozilla/bankaccounts.pl +++ b/bin/mozilla/bankaccounts.pl @@ -1,5 +1,6 @@ use strict; +use List::MoreUtils qw(any); use POSIX qw(strftime); use SL::BankAccount; @@ -31,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(); @@ -125,6 +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'; $report->set_columns(%column_defs); $report->set_column_order(@columns);