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

Return helpful information when store Expense Class with name/code which already exist

    XMLWordPrintable

    Details

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

      Description

      Purpose/Overview:
      Error message not helpful when saving expense class
      If we try to create "Expense class" with existing name or code, then exception is thrown from DB, where name is unique.

      Requirements/Scope:
      Unique codes are defined:
      1. "uniqueFieldExpenseClassNameError" for name
      2. "uniqueFieldExpenseClassCodeError" for code

      Approach:
      Take a look approach from https://issues.folio.org/browse/MODFISTO-101
      Main idea build string, which valid _org.folio.rest.jaxrs.model.Error _
      Catch unique exception and send in Error codes "uniqueFieldExpenseClassNameError" or "uniqueFieldExpenseClassCodeError"

      Acceptance criteria:
      Source code is changed
      Unit test updated

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                yauheni_kuzmianok Yauheni Kuzmianok
                Reporter:
                Andrei_Makaranka Andrei Makaranka
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases