From: Joachim Zach Date: Mon, 27 Dec 2010 13:41:31 +0000 (+0100) Subject: Mahnzinsen anhand des Fälligkeitsdatums berechnen X-Git-Tag: release-2.6.2beta1~64^2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=1494963025040708674399d3f70b45e06cba6eeb;p=kivitendo-erp.git Mahnzinsen anhand des Fälligkeitsdatums berechnen Fix für Bug 1384. Signed-off-by: Moritz Bunkus --- 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,