From: Jan Büren Date: Mon, 14 Jan 2019 08:21:19 +0000 (+0100) Subject: SelfTests: check_ap_paid berücksichtigt Auswahl von fromdate und todate X-Git-Tag: release-3.5.4~178 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=24bcc8808379757aef39136d5bc20fbd557c53ae;p=kivitendo-erp.git SelfTests: check_ap_paid berücksichtigt Auswahl von fromdate und todate --- diff --git a/SL/BackgroundJob/SelfTest/Transactions.pm b/SL/BackgroundJob/SelfTest/Transactions.pm index d953966c6..fea648642 100644 --- a/SL/BackgroundJob/SelfTest/Transactions.pm +++ b/SL/BackgroundJob/SelfTest/Transactions.pm @@ -480,7 +480,7 @@ sub check_ap_acc_trans_amount { my $query = qq| select sum(ac.amount) as amount, ap.invnumber,ap.netamount from acc_trans ac left join ap on (ac.trans_id = ap.id) - WHERE ac.chart_link like '%AP_amount%' OR ac.chart_link like '%IC_cogs%' + WHERE (ac.chart_link like '%AP_amount%' OR ac.chart_link like '%IC_cogs%') AND ac.transdate >= ? AND ac.transdate <= ? group by invnumber,trans_id,netamount having sum(ac.amount) <> ap.netamount*-1|;