Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 62175200C05 for ; Mon, 23 Jan 2017 15:27:30 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 60B35160B49; Mon, 23 Jan 2017 14:27:30 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A9C16160B3E for ; Mon, 23 Jan 2017 15:27:29 +0100 (CET) Received: (qmail 46993 invoked by uid 500); 23 Jan 2017 14:27:28 -0000 Mailing-List: contact dev-help@fineract.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@fineract.incubator.apache.org Delivered-To: mailing list dev@fineract.incubator.apache.org Received: (qmail 46982 invoked by uid 99); 23 Jan 2017 14:27:28 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jan 2017 14:27:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 56458C072A for ; Mon, 23 Jan 2017 14:27:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id bQxh_XiUP25c for ; Mon, 23 Jan 2017 14:27:27 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 3DF0A5F397 for ; Mon, 23 Jan 2017 14:27:27 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id AF707E031F for ; Mon, 23 Jan 2017 14:27:26 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 6D67625286 for ; Mon, 23 Jan 2017 14:27:26 +0000 (UTC) Date: Mon, 23 Jan 2017 14:27:26 +0000 (UTC) From: "Sander van der Heijden (JIRA)" To: dev@fineract.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FINERACT-282) Backdate before Interest Waiver corrupts loan balances MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 23 Jan 2017 14:27:30 -0000 [ https://issues.apache.org/jira/browse/FINERACT-282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15834653#comment-15834653 ] Sander van der Heijden commented on FINERACT-282: ------------------------------------------------- [~santoshmath] As this item is from August '14 I assume it has indeed been fixed since. > Backdate before Interest Waiver corrupts loan balances > ------------------------------------------------------ > > Key: FINERACT-282 > URL: https://issues.apache.org/jira/browse/FINERACT-282 > Project: Apache Fineract > Issue Type: Bug > Components: Loan > Reporter: Santosh Math > Assignee: Markus Geiss > Labels: confirm, p1 > Attachments: Screenshot 1.png, Screenshot #2.png, Screenshot #3.png, Screenshot #4.png > > > Reported by Sander at https://mifosforge.jira.com/browse/MIFOSX-1498 > Original Description: > When waiving interest on a loan the outstanding interest and balance is reduced by clearing outstanding interest on past instalments and if applicable future instalments (as expected). However when a payment is now backdated to a date before the interest waiver, interest is that was waived on those instalments is 'activated' again and the payment is allocated to it. > In the attached screenshot #1 is the 'clean' schedule of the loan with 4.11 in interest due. The total due on the loan is 254.11. In the screenshot #2 the interest has been waived per the 1st of June, leaving a loan balance of 235.32 (screenshot #3). > Now when a new transaction is entered, for the 15th of May (so before waiver), of 15$ , the expected loan balance would be 220.32, however the payment 'reopens' the interest for the instalments it is covering (see screenshot #4) and repays them. As a result the total outstanding is 220.48 (one instalment interest has been paid, but was not part of the balance before). And also when the sum of all transactions is made manually it no longer adds up (screenshot #5) to the system generated balances. > Because of the way MifosX handles the loanschedules and transactions, the waiver has automatically been reversed when processing the backdated payment (which is chronologically before the later payment) and then applies the waiver again later, at which point the interest due is fewer than the waiver is for. This results in an adjustment of the overall loan, and also brings up a situation whereby the loan summary data is no longer aligned with the transactions. And the accounting data is also out of sync, as the accrued interest no longer adds up to the waived + paid interest on the loan. > As the waiving of interest normally is a process that can work both backwards (open installments from before) and forwards (future installments), we would expect that the interest for the prior installments would remain waived. -- This message was sent by Atlassian JIRA (v6.3.4#6332)