Uploaded image for project: 'mod-orders'
  1. mod-orders
  2. MODORDERS-465

Implement order rollover status logic for get by id

    XMLWordPrintable

    Details

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

      Description

      Purpose/Overview:
      Calculate order "rolloverStatus" flag

      Requirements/Scope:

      1. Only for get by id API

      Approach:
      1. Rename "rolloverStatus" field to "needReEncumber" and make it boolean. Update mod-gobi acq-models.
      2. Get current fiscal year for order(find first ledger by fund from poLines and find current fiscal year)
      3. Get fiscal year rollover by current fiscal year and ledgerId. If no exist then don't go to next steps and set flag needReEncumber to true.(3,4)
      4. Get errors from "ledger_fiscal_year_rollover_error" by orderId and fiscalYearId
      5. If errors exist then "needReEncumber" = "true" else "rolloverStatus" = "false"

      Acceptance criteria:

      • Logic created
      • API tests
      • Unit tests

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Andrei_Makaranka Andrei Makaranka
                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