From: Martin Helmling mh@waldpark.octosoft.eu Date: Fri, 15 Apr 2016 14:23:49 +0000 (+0200) Subject: Sepa-Überw: Fehlermeldung beim Überweisen mit Skonto X-Git-Tag: release-3.4.1~222 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=72d45992d1313328164f1d60b5be214f57a0e03c;p=kivitendo-erp.git Sepa-Überw: Fehlermeldung beim Überweisen mit Skonto Hier fehlte eine Abfrage. Fehlermeldung auf die Zahlungsart beziehen --- diff --git a/SL/DB/Helper/Payment.pm b/SL/DB/Helper/Payment.pm index 719d935cc..654eb41fa 100644 --- a/SL/DB/Helper/Payment.pm +++ b/SL/DB/Helper/Payment.pm @@ -162,7 +162,9 @@ sub pay_invoice { $paid_amount += -1 * $amount; $skonto_amount_check -= $skonto_booking->{'skonto_amount'}; }; - die "difference_as_skonto calculated incorrectly, sum of calculated payments doesn't add up to open amount $total_open_amount, reference_amount = $reference_amount\n" unless _round($reference_amount) == 0; + if ( $params{payment_type} eq 'difference_as_skonto' ) { + die "difference_as_skonto calculated incorrectly, sum of calculated payments doesn't add up to open amount $total_open_amount, reference_amount = $reference_amount\n" unless _round($reference_amount) == 0; + } };