]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/Helper/Payment.pm
Sepa-Überw: Fehlermeldung beim Überweisen mit Skonto
[mfinanz.git] / SL / DB / Helper / Payment.pm
index 719d935cc7b5a2221f77b1368374f78d36506631..654eb41fa3d9ef2338209bee645a7b8ae25f8081 100644 (file)
@@ -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;
+      }
 
     };