From: Jan Büren Date: Mon, 1 Jan 2018 10:01:34 +0000 (+0100) Subject: SelfTests: check_paid_ap ID in E-Mail-Bericht übergeben -> einfachere Analyse X-Git-Tag: release-3.5.4~550 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d3bb5fcb76634f72b0e5dc7b639d8d32cba17a4d;p=kivitendo-erp.git SelfTests: check_paid_ap ID in E-Mail-Bericht übergeben -> einfachere Analyse --- diff --git a/SL/BackgroundJob/SelfTest/Transactions.pm b/SL/BackgroundJob/SelfTest/Transactions.pm index 8ee6a4292..a05ecd741 100644 --- a/SL/BackgroundJob/SelfTest/Transactions.pm +++ b/SL/BackgroundJob/SelfTest/Transactions.pm @@ -252,7 +252,7 @@ sub check_ap_paid { my ($self) = @_; my $query = qq| - select invnumber,paid, + select invnumber,paid,id, (select sum(amount) from acc_trans a left join chart c on (c.id = a.chart_id) where trans_id = ap.id and c.link like '%AP_paid%') as accpaid , paid-(select sum(amount) from acc_trans a left join chart c on (c.id = a.chart_id) where trans_id = ap.id and c.link like '%AP_paid%') as diff from ap @@ -268,7 +268,7 @@ sub check_ap_paid { $self->tester->ok(!$errors, "Vergleich ap paid mit acc_trans AP_paid"); for my $paid_diff_ap (@{ $paid_diffs_ap }) { next if $paid_diff_ap->{diff} == 0; - $self->tester->diag("ap invnumber: $paid_diff_ap->{invnumber} : paid: $paid_diff_ap->{paid} acc_paid= $paid_diff_ap->{accpaid} diff: $paid_diff_ap->{diff}"); + $self->tester->diag("ap invnumber: $paid_diff_ap->{invnumber} : ID :: ID : $paid_diff_ap->{id} : paid: $paid_diff_ap->{paid} acc_paid= $paid_diff_ap->{accpaid} diff: $paid_diff_ap->{diff}"); } }