From: Philip Reetz Date: Sun, 15 Jun 2008 16:10:15 +0000 (+0000) Subject: Fehler bei Stichtagsbezogenen Auswertungen von offenen Posten X-Git-Tag: release-2.6.0beta1~133 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=e9459971fa18cf9985940b618b239043c770474a;p=kivitendo-erp.git Fehler bei Stichtagsbezogenen Auswertungen von offenen Posten --- 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|;