Uploaded image for project: 'mod-finance-storage'
  1. mod-finance-storage
  2. MODFISTO-240

It should be possible to unrelease expended encumbrance

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P2
    • Resolution: Done
    • None
    • 7.1.0
    • None

    Description

      Purpose/Overview:
      MODFISTO-233 added a test to prevent unreleasing encumbrance if it was expended (the implementation was simply checking if amountExpended is different from 0). This is causing an issue when reopening an order: in some cases, we want to unrelease expended encumbrance.

      Requirements/Scope:

      1. Requirement It should be possible to reopen an order with expended encumbrance

      Approach:
      A possible fix is to revert the check added in MODFISTO-233 and allow to unrelease expended encumbrance. Additionally, the new amount for an unreleased encumbrance should be changed to initialAmountEncumbered - amountAwaitingPayment - amountExpended.

      Acceptance criteria:

      • Updated modfisto implementation, updated unit tests (see code and test added for MODFISTO-233).
      • Integration tests should replicate use cases given in the comments.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Andrei_Makaranka Andrei Makaranka
                damieng Damien Guillaume
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases