From: Sven Schöling Date: Fri, 2 Jul 2010 12:20:19 +0000 (+0200) Subject: RP->aging: storno kann auch NULL sein X-Git-Tag: release-2.6.2beta1~338 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/commitdiff_plain/4e2b549a28f09fdc749f380a3e8c458c4ff53273 RP->aging: storno kann auch NULL sein Fehler trat auf, weil Kreditorenbuchungen nicht sicher gehen, dass storno auf false steht. Dieser Fix behebt das für diesen speziellen Fall. storno sollte später auf NOT NULL gesetzt werden. --- diff --git a/SL/RP.pm b/SL/RP.pm index 81637ca5b..88f4ebe55 100644 --- a/SL/RP.pm +++ b/SL/RP.pm @@ -1198,7 +1198,7 @@ sub aging { AND (exchangerate.transdate = ${arap}.transdate)) AS exchangerate FROM ${arap}, ${ct} WHERE ((paid != amount) OR (datepaid > (date $todate) AND datepaid is not null)) - AND (${arap}.storno IS FALSE) + AND NOT COALESCE (${arap}.storno, 'f') AND (${arap}.${ct}_id = ${ct}.id) AND (${ct}.id = ?) AND (transdate <= (date $todate) $fromwhere )