kein parse_amount für skonto_in_percent
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Mon, 22 Oct 2012 12:43:06 +0000 (14:43 +0200)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Mon, 22 Oct 2012 12:43:06 +0000 (14:43 +0200)
Es wird direkt aus dem Wert aus der DB errechnet.

SL/Form.pm

index 3660bf8..8915ca2 100644 (file)
@@ -1741,10 +1741,9 @@ sub set_payment_options {
     $amounts{invtotal} = $self->{invtotal};
     $amounts{total}    = $self->{total};
   }
-  $amounts{skonto_in_percent} = 100.0 * $self->{percent_skonto};
-
   map { $amounts{$_} = $self->parse_amount($myconfig, $amounts{$_}) } keys %amounts;
 
+  $amounts{skonto_in_percent}  = 100.0 * $self->{percent_skonto};
   $amounts{skonto_amount}      = $amounts{invtotal} * $self->{percent_skonto};
   $amounts{invtotal_wo_skonto} = $amounts{invtotal} * (1 - $self->{percent_skonto});
   $amounts{total_wo_skonto}    = $amounts{total}    * (1 - $self->{percent_skonto});