X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/7ecdb94715674d62df85fc746fe06db10c7ade9b..32020b3a9d9831b915e6aeecfd206319cfbee4d0:/bin/mozilla/bankaccounts.pl 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);