From 1494963025040708674399d3f70b45e06cba6eeb Mon Sep 17 00:00:00 2001 From: Joachim Zach Date: Mon, 27 Dec 2010 14:41:31 +0100 Subject: [PATCH] =?utf8?q?Mahnzinsen=20anhand=20des=20F=C3=A4lligkeitsdatu?= =?utf8?q?ms=20berechnen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix für Bug 1384. Signed-off-by: Moritz Bunkus --- SL/DN.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/DN.pm b/SL/DN.pm index 72154c24f..45bc367eb 100644 --- a/SL/DN.pm +++ b/SL/DN.pm @@ -288,7 +288,7 @@ sub save_dunning { (SELECT SUM(fee) FROM dunning_config WHERE dunning_level <= (SELECT dunning_level FROM dunning_config WHERE id = ?)), - (SELECT (amount - paid) * (current_date - transdate) FROM ar WHERE id = ?) + (SELECT (amount - paid) * (current_date - duedate) FROM ar WHERE id = ?) * (SELECT interest_rate FROM dunning_config WHERE id = ?) / 360, current_date, -- 2.20.1