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

Cannot approve or pay invoice when related POL has no encumbrance

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: P2
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Template:
      Standard Bug Write-Up Format
    • Sprint:
      ACQ Sprint 116
    • Story Points:
      2
    • Development Team:
      Thunderjet
    • Release:
      R2 2021

      Description

      Overview: User cannot approve or pay invoice when related POL has no Fund distribution/encumbrance. 
      Steps to Reproduce:

      1. Log into some FOLIO environment as User X
      2. Click order app
      3. Create PO and POL
      4. POL must have price but NO fund distribution
      5. Open POL
      6. Create invoice
      7. Add invoice line for POL created above
      8. Approve invoice line

      Approach
      Skip processing encumbrances if returned collection is empty
      org.folio.services.finance.transaction.EncumbranceService#getEncumbrancesByPoLineIds

      Expected Results: Invoice is approved successfully. Pending payments are created

      Actual Results: Error toast message is shown. Invoice was not approved.

      Additional Information: see example at url below
      URL: https://thunderjet.ci.folio.org/invoice/view/f673f695-e124-489a-b182-25594fad517a
      Interested parties:

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Andrei_Makaranka Andrei Makaranka
                Reporter:
                dennisbridges Dennis Bridges
                Tester Assignee:
                Dennis Bridges Dennis Bridges
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases