[ 
https://issues.apache.org/jira/browse/FINERACT-1938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17793779#comment-17793779
 ] 

Peter Santa commented on FINERACT-1938:
---------------------------------------

Márta Jankovics 
h3. October 2, 2023 at 11:13 PM
 
 
Batch API use-case was fixed.
Márta Jankovics 
h3. August 8, 2023 at 9:21 PM
 
 
No need to run these actions in a batch, I got the same wrong result running 
simple transactions. Attached screenshot for use case:
 # holdAmount

 # Perform a batchAPI calls as single transactions

 ## releaseAmount(held in the 1st step)

 ## withdraw(amount1) → wrong balance

 ## withdraw(amount2) → wrong balance, - screenshot 1.

 # withdraw again, this fixed the batch use-case but not for single 
transactions, the balance was still wrong - screenshot 2.

I think this is related to

 and the cause is the same.

> BatchAPI - Savings Account - Incorrect balance calculation
> ----------------------------------------------------------
>
>                 Key: FINERACT-1938
>                 URL: https://issues.apache.org/jira/browse/FINERACT-1938
>             Project: Apache Fineract
>          Issue Type: Bug
>          Components: Savings
>            Reporter: Peter Santa
>            Priority: Critical
>              Labels: BeanSalad
>         Attachments: Screenshot 2023-06-09 at 10.53.11.png, Screenshot 
> 2023-06-09 at 11.05.55.png
>
>
> h1. Steps to reproduce
> Capture the original balance of the savings account that will be used for 
> test.
>  # holdAmount
>  # Perform a batchAPI call, in which contains at least 2 actions, that 
> modifies the balance. E.g.:
>  ## releaseAmount(held in the 1st step)
>  ## withdraw(amount1)
>  ## withdraw(amount2)
> h1. Expected result
> The balance of the account should be the original balance minus the withdrawn 
> value.
> h1. Actual result
> !Screenshot 2023-06-09 at 10.53.11.png!
>  
> When a new transaction is performed, it fixes the previous incorrect 
> balances: A new holdAmount (id: 193) fixed the previous balances, then the 
> 201 fixed the 194-195-196 balances.
> !Screenshot 2023-06-09 at 11.05.55.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to