From e9459971fa18cf9985940b618b239043c770474a Mon Sep 17 00:00:00 2001 From: Philip Reetz Date: Sun, 15 Jun 2008 16:10:15 +0000 Subject: [PATCH] Fehler bei Stichtagsbezogenen Auswertungen von offenen Posten --- SL/RP.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/RP.pm b/SL/RP.pm index acc6b835a..4d2dd4eb2 100644 --- a/SL/RP.pm +++ b/SL/RP.pm @@ -1351,7 +1351,7 @@ sub aging { $dpt_join WHERE $where AND (a.${ct_id} = ct.id) - AND (a.paid != a.amount) + AND ((a.paid != a.amount) OR ((a.datepaid > $todate) AND (datepaid is NOT NULL))) AND (a.transdate <= $todate) ORDER BY ct.name|; -- 2.20.1