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

It should be possible to unrelease expended encumbrance

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: P2
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 7.1.0
    • Labels:
      None
    • Template:
      Thunderjet/Firebird Back-end Story Template
    • Sprint:
      ACQ Sprint 115
    • Story Points:
      1
    • Development Team:
      Thunderjet

      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases