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

Implement rollover orders logic

    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:
      5
    • Development Team:
      Thunderjet

      Description

      Purpose/Overview:
      In order to support UIF-171 - Execute fiscal year rollover

      Requirements/Scope:

      1. Rollover orders should start if API triggered.

      Approach:
      Fiscal Year Rollover - Rollover orders

      Steps:

      1. Retrieve all Opened orders for ledger.
      1.1. Fund contains link on ledger(ledgerId) and we can get all funds for ledger
      1.2. Retrieve errors from error table for funds from 1.1
      1.2. Using query we can retrieve order lines for opened orders with ledger's funds.
      2. Check in the error table, that no errors for all existed ledgers in order. (If no then proceed rollover else stop).
      3. Calculate addition adjustment cost for order(find formula on wiki page).
      4. Find new created encumbrance ("budget_encumbrances_rollover.sql") and update link on encumbrance in the fundDistribution.
      5. Don't forget store errors in the ledger_fiscal_year_rollover_errors

      Prerequisites :

      • API which invoke rollover orders defined

      Acceptance criteria:

      • Logic created
      • Unit tests created
      • API created

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                aliaksandr_pautau Aliaksandr Pautau
                Reporter:
                Andrei_Makaranka Andrei Makaranka
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases