Eine weitere Datenbankhilfsfunktion eingebaut.
[kivitendo-erp.git] / SL / IS.pm
index 68989b3..f546b51 100644 (file)
--- a/SL/IS.pm
+++ b/SL/IS.pm
@@ -357,9 +357,10 @@ sub invoice_details {
     ($form->{taxincluded}) ? $form->{total} : $form->{total} + $tax;
   $form->{total} =
     $form->format_amount($myconfig, $form->{invtotal} - $form->{paid}, 2);
+
   $form->{invtotal} = $form->format_amount($myconfig, $form->{invtotal}, 2);
-  $form->set_payment_options($myconfig, $form->{invdate});
   $form->{paid} = $form->format_amount($myconfig, $form->{paid}, 2);
+  $form->set_payment_options($myconfig, $form->{invdate});
 
   $form->{username} = $myconfig->{name};