From: Sven Schöling Date: Tue, 22 Mar 2016 12:00:58 +0000 (+0100) Subject: warnings: nicht initialisierte Variable in Helper/Payment X-Git-Tag: release-3.4.1~297 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=00451fb084cfe52b4bea84348bde3ee07b231d69;p=kivitendo-erp.git warnings: nicht initialisierte Variable in Helper/Payment --- 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) );