From 4542774a7be533c9312a8a4b1db2ed0209c71736 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Thu, 27 Feb 2020 16:05:53 +0100 Subject: [PATCH] SelfTest: Transactions: Stornosumme -> copy/paste-Fehler ar statt ap --- SL/BackgroundJob/SelfTest/Transactions.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/BackgroundJob/SelfTest/Transactions.pm b/SL/BackgroundJob/SelfTest/Transactions.pm index 5d4ba20a9..6ad354937 100644 --- a/SL/BackgroundJob/SelfTest/Transactions.pm +++ b/SL/BackgroundJob/SelfTest/Transactions.pm @@ -210,7 +210,7 @@ sub check_summe_stornobuchungen { my $query = qq| SELECT sum(amount) from ar a WHERE a.id IN - (SELECT id from ap where storno is true + (SELECT id from ar where storno is true AND a.transdate >= ? and a.transdate <= ?)|; my ($summe_stornobuchungen_ar) = selectfirst_array_query($::form, $self->dbh, $query, $self->fromdate, $self->todate); -- 2.20.1