Uploaded image for project: 'Apache Fineract'
  1. Apache Fineract
  2. FINERACT-1938

BatchAPI - Savings Account - Incorrect balance calculation

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.9.0
    • 1.9.0
    • Savings

    Description

      Steps to reproduce

      Capture the original balance of the savings account that will be used for test.

      1. holdAmount
      2. Perform a batchAPI call, in which contains at least 2 actions, that modifies the balance. E.g.:
        1. releaseAmount(held in the 1st step)
        2. withdraw(amount1)
        3. withdraw(amount2)

      Expected result

      The balance of the account should be the original balance minus the withdrawn value.

      Actual result

       

      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.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            peter.santa Peter Santa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment