Revision 3c69e834
Von Jan Büren vor etwa 9 Jahren hinzugefügt
SL/BackgroundJob/SelfTest/Transactions.pm | ||
---|---|---|
383 | 383 |
if (defined $invoice->{datepaid}) { |
384 | 384 |
$self->tester->diag("datepaid = $invoice->{datepaid})"); |
385 | 385 |
} |
386 |
$self->tester->diag("Überzahlung!") if $invoice->{"paid via acc_trans"} > $invoice->{amount};
|
|
386 |
$self->tester->diag("Überzahlung bei Rechnung: $invoice->{invnumber}") if $invoice->{"paid via acc_trans"} > $invoice->{amount};
|
|
387 | 387 |
} elsif ( $invoice->{"amount"} - $invoice->{"paid via acc_trans"} != $invoice->{"open via ar"} && $invoice->{"paid via ar"} != $invoice->{"paid via acc_trans"}) { |
388 | 388 |
$self->tester->diag("amount - paid_via_acc_trans != open_via_ar"); |
389 |
$self->tester->diag("Überzahlung!") if $invoice->{"paid via acc_trans"} > $invoice->{amount};
|
|
389 |
$self->tester->diag("Überzahlung bei Rechnung: $invoice->{invnumber}") if $invoice->{"paid via acc_trans"} > $invoice->{amount};
|
|
390 | 390 |
} else { |
391 | 391 |
# nothing wrong |
392 | 392 |
} |
Auch abrufbar als: Unified diff
SelfTest: Bei overpaid auch invnumber ausgeben, zur besseren Analyse