SelfTest: Bei overpaid auch invnumber ausgeben, zur besseren Analyse
authorJan Büren <jan@kivitendo-premium.de>
Thu, 17 Dec 2015 15:47:15 +0000 (16:47 +0100)
committerJan Büren <jan@kivitendo-premium.de>
Thu, 17 Dec 2015 15:47:15 +0000 (16:47 +0100)
SL/BackgroundJob/SelfTest/Transactions.pm

index a8ab024..1054568 100644 (file)
@@ -383,10 +383,10 @@ WHERE
         if (defined $invoice->{datepaid}) {
           $self->tester->diag("datepaid = $invoice->{datepaid})");
         }
-        $self->tester->diag("Überzahlung!") if $invoice->{"paid via acc_trans"} > $invoice->{amount};
+        $self->tester->diag("Überzahlung bei Rechnung: $invoice->{invnumber}") if $invoice->{"paid via acc_trans"} > $invoice->{amount};
       } elsif ( $invoice->{"amount"} - $invoice->{"paid via acc_trans"} != $invoice->{"open via ar"} && $invoice->{"paid via ar"} != $invoice->{"paid via acc_trans"}) {
         $self->tester->diag("amount - paid_via_acc_trans !=  open_via_ar");
-        $self->tester->diag("Überzahlung!") if $invoice->{"paid via acc_trans"} > $invoice->{amount};
+        $self->tester->diag("Überzahlung bei Rechnung: $invoice->{invnumber}") if $invoice->{"paid via acc_trans"} > $invoice->{amount};
       } else {
         # nothing wrong
       }