mifos-mobile icon indicating copy to clipboard operation
mifos-mobile copied to clipboard

Withdraw pending savings account not working

Open devansh-299 opened this issue 5 years ago • 3 comments
trafficstars

Summary:

The "withdraw savings account" feature is not working and shows "HTTP 405 Method Not Allowed". There were minor issues with the current implementation but even after fixing them, the same error comes whenever withdrawing of a pending savings account is performed.

Steps to reproduce:

  • Go to Accounts -> SavingsAccount tab
  • Select any pending account.
  • Select Withdraw Savings from the menu and submit the withdrawal request

Expected behaviour:

The selected pending account should have been withdrawn

Observed behaviour:

"HTTP 405 Method Not Allowed" error comes

Screenshots: ss

devansh-299 avatar Apr 20 '20 10:04 devansh-299

@therajanmaurya @luckyman20 can you please help me with this issue? The application's implementation code seems fine to me

devansh-299 avatar Apr 20 '20 10:04 devansh-299

@devansh-299 I tried reproducing the issue but, works fine for me no issues! Have you try the same without creating a new Thread, that is by subscribing on the Schedulers.io rather than on Schedulers.newThread()?

rutvik-panchal avatar Apr 20 '20 17:04 rutvik-panchal

@devansh-299 I tried reproducing the issue but, works fine for me no issues! Have you try the same without creating a new Thread, that is by subscribing on the Schedulers.io rather than on Schedulers.newThread()?

@rutvik-panchal Actually, the result has been hardcoded to give "Saving Account Withdrawn Successfully", see method on line 148 here. On removing the hardcoded result, you will be able to reproduce the issue

devansh-299 avatar Apr 20 '20 18:04 devansh-299