Hi,
We are using Mifos 2.6.3 and Mifos REST API. When we initiate sequential
(two or more) withdraw transactions from a savings account, we are getting
insufficient balance error for 2nd transaction. We don't see the error when
we use the web interface. Here are the logs from our REST client.
---------------------------------------------------------------------------------------------------------------------------------
Testing sequential withdraw transactions
Making one deposit before two withdraw transactions
http://192.168.1.10:8080/pocketbank/account/savings/num-000100000000002/deposit.json
{amount=[225], paymentTypeId=[1], trxnDate=[27-02-2014]}
{"savingsDisplayName":"Micro Savings
100","balanceBeforePayment":"2275.0","paymentAmount":"225.0","paymentDate":"2014-03-01","balanceAfterPayment":"2500.0","status":"success","paymentTime":"23:26:29.091","clientName":"Client
X","paymentMadeBy":"Officer AB","clientNumber":"0004-000000001"}
200
Making 1st withdraw transaction
http://192.168.1.10:8080/pocketbank/account/savings/num-000100000000002/withdraw.json
{amount=[225], paymentTypeId=[1], trxnDate=[27-02-2014]}
{"savingsDisplayName":"Micro Savings
100","balanceBeforePayment":"2500.0","paymentAmount":"225.0","paymentDate":"2014-03-01","balanceAfterPayment":"2275.0","status":"success","paymentTime":"23:26:29.431","clientName":"Client
X","paymentMadeBy":"Officer AB","clientNumber":"0004-000000001"}
200
Making 2nd withdraw transaction
http://192.168.1.10:8080/pocketbank/account/savings/num-000100000000002/withdraw.json
{amount=[225], paymentTypeId=[1], trxnDate=[27-02-2014]}
{"savingsDisplayName":"Micro Savings
100","balanceBeforePayment":"2275.0","paymentAmount":"225.0","paymentDate":"2014-03-01","balanceAfterPayment":"2050.0","status":"success","paymentTime":"23:26:29.767","clientName":"Client
X","paymentMadeBy":"Officer AB","clientNumber":"0004-000000001"}
200
------------------------------------------------------------------------------------------------------------------------------------
Is this expected behavior?
Thanks,
Venkatesh
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Mifos-users mailing list
Mifos-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mifos-users