Uploaded image for project: 'mod-invoice'
  1. mod-invoice
  2. MODINVOICE-176

Prevent the creation of a transaction for an inactive expense class

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • 4.1.0
    • None

    Description

      Purpose:
      Requirement from the UX ticket: Each expense class has a status within the fund of Active or inactive. Inactive types can not be used

      Requirements/Scope:

      1. Update transaction(Pending payment, Payment, Credit) creation logic
      2. Update unit tests
      3. Update API tests

      Approach:
      If expenseClassId specified in fundDistribution

      • if expenseClass has active status
        • populate transaction.expenseClassId. Create transaction
      • else
        • return error with inactiveExpenseClass error code

      Acceptance criteria:

      • logic updated
      • unit tests updated
      • API tests updated

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                aliaksandr_pautau Aliaksandr Pautau
                aliaksandr_pautau Aliaksandr Pautau
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases