From 00451fb084cfe52b4bea84348bde3ee07b231d69 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 22 Mar 2016 13:00:58 +0100 Subject: [PATCH] warnings: nicht initialisierte Variable in Helper/Payment --- SL/DB/Helper/Payment.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/DB/Helper/Payment.pm b/SL/DB/Helper/Payment.pm index 93dc1ecf7..719d935cc 100644 --- a/SL/DB/Helper/Payment.pm +++ b/SL/DB/Helper/Payment.pm @@ -368,7 +368,7 @@ sub amount_less_skonto { my $is_sales = ref($self) eq 'SL::DB::Invoice'; - my $percent_skonto = $self->percent_skonto; + my $percent_skonto = $self->percent_skonto || 0; return _round($self->amount - ( $self->amount * $percent_skonto) ); -- 2.20.1