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 7049F200C32 for ; Thu, 23 Feb 2017 06:45:49 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 6EC7E160B72; Thu, 23 Feb 2017 05:45:49 +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 B2034160B62 for ; Thu, 23 Feb 2017 06:45:48 +0100 (CET) Received: (qmail 68057 invoked by uid 500); 23 Feb 2017 05:45:47 -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 68046 invoked by uid 99); 23 Feb 2017 05:45:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Feb 2017 05:45:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 3D1C41A077B for ; Thu, 23 Feb 2017 05:45:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id KTwmCkyRx3Do for ; Thu, 23 Feb 2017 05:45:46 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 759395FB89 for ; Thu, 23 Feb 2017 05:45:45 +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 AD4C7E05EE for ; Thu, 23 Feb 2017 05:45:44 +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 4809624132 for ; Thu, 23 Feb 2017 05:45:44 +0000 (UTC) Date: Thu, 23 Feb 2017 05:45:44 +0000 (UTC) From: "Santosh Math (JIRA)" To: dev@fineract.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (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: Thu, 23 Feb 2017 05:45:49 -0000 [ https://issues.apache.org/jira/browse/FINERACT-282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Santosh Math closed FINERACT-282. --------------------------------- Resolution: Fixed > 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.15#6346)