From b9b02c1a0d19519228670ffdc491df9064199ff5 Mon Sep 17 00:00:00 2001 From: Philip Reetz Date: Fri, 2 Feb 2007 09:49:51 +0000 Subject: [PATCH] Probleme mit total bei grossen Rechnungsbetraegen --- SL/IS.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SL/IS.pm b/SL/IS.pm index 57d4a6c92..f546b5107 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -355,10 +355,11 @@ sub invoice_details { $form->{invtotal} = ($form->{taxincluded}) ? $form->{total} : $form->{total} + $tax; - $form->{invtotal} = $form->format_amount($myconfig, $form->{invtotal}, 2); - $form->{paid} = $form->format_amount($myconfig, $form->{paid}, 2); $form->{total} = $form->format_amount($myconfig, $form->{invtotal} - $form->{paid}, 2); + + $form->{invtotal} = $form->format_amount($myconfig, $form->{invtotal}, 2); + $form->{paid} = $form->format_amount($myconfig, $form->{paid}, 2); $form->set_payment_options($myconfig, $form->{invdate}); $form->{username} = $myconfig->{name}; -- 2.20.1