osdir.com

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Fineract, Overdrawn Saving Account crashes further Debit/Credit and Job Post Interest for Savings


For the debit and credit, the error message comes from this
org/apache/fineract/accounting/journalentry/service/
AccountingProcessorHelper.java.

 

And there're comments in there:

 

"        // TODO Vishwas: Remove this validation, as and when appropriate
Junit

        // tests are written for accounting

        /**

         * Accounting module currently supports a single charge per
transaction,

         * throw an error if this is not the case here so any developers

         * changing the expected portfolio behavior would also take care of

         * modifying the accounting code appropriately

         **/

"

Any idea on how to go passed this? Is related to the failing of the job?

 

Thanks,

 

Louis

 

From: Louis Niyongabo [mailto:lniyongabo@xxxxxxxxx] 
Sent: Friday, July 20, 2018 09:53
To: dev@xxxxxxxxxxxxxxxxxxx
Subject: Fineract, Overdrawn Saving Account crashes further Debit/Credit and
Job Post Interest for Savings

 

Minimum Opening Balance=1,000

Allow Overdraft=true

Max Overdraft limit=10,000

Nominal annual interest for overdraft=18

Withdrawal Fee=Flat & 200

 

Accounting:

*************

Savings Reference(Assets)=Cash

Overdraft Portfolio(Assets)=Retail Overdraft

Savings Control(Liabilities)=Personal current acc

Transfers in suspense(Liabilities)=Suspense - Proxy accounts

Interest on Savings(Expenses)=Savings

Write-off(Expenses)=Current accounts retail

Income from Fee(Income)=Cash Withdrawal Fees

Income from Penalties(Income)=Penalty on Retail Accounts

Overdraft Interest Income(Income)=Int. Retail Overdraft

 

1. Create Saving Account that inherits these Savings Account Products
settings.

2. Approve and Activate Account

3. Debit and Credit of Minimum Opening Balance OK

4. Overdraw the Account, the posting is OK, rights accounts & amounts
debited/credited

5. Credit/Debit the account after (4.), see error below:

==>Recent Portfolio changes w.r.t Charges for Savings have Broken the
accounting code -

6. run job "Post Interest for Savings", see error below:

==>org.apache.fineract.infrastructure.jobs.exception.JobExecutionException: 

failed to post interest for Savings with id 2 with message null 

at
org.apache.fineract.portfolio.savings.service.SavingsSchedularServiceImpl.po
stInterestForAccounts(76) 

at sun.reflect.NativeMethodAccessorImpl.invoke0(-2) at
sun.reflect.NativeMethodAccessorImpl.invoke(-1) 

at sun.reflect.DelegatingMethodAccessorImpl.invoke(-1) at
java.lang.reflect.Method.invoke(-1) 

at org.springframework.util.MethodInvoker.invoke(269) 

at
org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$Met
hodInvokingJob.executeInternal(322) 

at org.springframework.scheduling.quartz.QuartzJobBean.execute(112) at
org.quartz.core.JobRunShell.run(213) 

at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(557)