X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fdn.pl;h=8a10912cff3b6173fbadb5f1e09a17aefe07419c;hb=b96aeec0aa41e81c1fce82ba095486b05d601b31;hp=8008f25cac4137e391db24bc115d44c4cb61b93c;hpb=879496271a8c6004a12c49d0f057ff20db0607f3;p=kivitendo-erp.git diff --git a/bin/mozilla/dn.pl b/bin/mozilla/dn.pl index 8008f25ca..8a10912cf 100644 --- a/bin/mozilla/dn.pl +++ b/bin/mozilla/dn.pl @@ -24,7 +24,8 @@ # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, +# MA 02110-1335, USA. #====================================================================== # # Dunning process module @@ -34,7 +35,6 @@ use POSIX qw(strftime); use SL::IS; -use SL::PE; use SL::DN; use SL::DB::Dunning; use SL::Helper::Flash qw(flash); @@ -133,7 +133,7 @@ sub show_invoices { if ($row->{next_dunning_config_id}) { map { $_->{SELECTED} = $_->{id} == $row->{next_dunning_config_id} } @{ $row->{DUNNING_CONFIG } }; } - map { $row->{$_} = $form->format_amount(\%myconfig, $row->{$_} * 1, -2) } qw(amount open_amount fee interest); + map { $row->{$_} = $form->format_amount(\%myconfig, $row->{$_} * 1, 2) } qw(amount open_amount fee interest); if ($row->{'language_id'}) { $row->{language} = SL::DB::Manager::Language->find_by_or_create('id' => $row->{'language_id'})->{'description'}; @@ -153,6 +153,7 @@ sub show_invoices { 'no_html' => 1, 'no_opendocument' => 1,); + $::request->layout->add_javascripts("kivi.Dunning.js"); $form->header(); print $form->parse_html_template("dunning/show_invoices"); @@ -453,6 +454,7 @@ sub show_dunning { $report->set_options_from_form(); + $::request->layout->add_javascripts("kivi.Dunning.js"); $report->generate_with_headers(); $main::lxdebug->leave_sub();