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

Payment must be possible if invoice line contains multiple fund distribution with same fund and different expense classes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: P2
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 11.1.0
    • Labels:
      None
    • Template:
    • Sprint:
      ACQ Sprint 99
    • Story Points:
      3
    • Development Team:
      Thunderjet
    • Release:
      Q3 2020

      Description

      Overview:
      Exception occurs, when try to pay for the invoice line contains multiple fund distribution with same fund and different expense classes

      2020-10-01T07:20:19,324 ERROR [vert.x-eventloop-thread-0] RestClient 'POST /finance-storage/transactions' request failed. Request body: {
        "amount" : 1.8,
        "currency" : "USD",
        "encumbrance" : {
          "amountAwaitingPayment" : 0.0,
          "amountExpended" : 0.0,
          "initialAmountEncumbered" : 1.8,
          "status" : "Unreleased",
          "orderType" : "One-Time",
          "subscription" : false,
          "reEncumber" : false,
          "sourcePurchaseOrderId" : "dad5db31-5263-4b67-a1c6-7a888af8ad81",
          "sourcePoLineId" : "f7687e5f-f257-48fd-8f90-690e34527bb4"
        },
        "expenseClassId" : "5b5ebe3a-cf8b-4f16-a880-46873ef21388",
        "fiscalYearId" : "684b5dc5-92f6-4db7-b996-b549d88f5e4e",
        "fromFundId" : "7fbd5d84-62d1-44c6-9c45-6cb173998bbd",
        "source" : "PoLine",
        "transactionType" : "Encumbrance",
        "metadata" : {
          "createdDate" : 1601536819250,
          "createdByUserId" : "d0465384-6f57-5241-86f7-0a4a647a637f",
          "updatedDate" : 1601536819250,
          "updatedByUserId" : "d0465384-6f57-5241-86f7-0a4a647a637f"
        }
      }
      org.folio.rest.exception.HttpException: All expected transactions already processed
      

      Logs: UIF-253_2fund_dif_classes.log

      Steps to Reproduce:

      1. Create Order
      2. Add order line to created order with 2 fund distribution with same fund and different expense classes.
      3. Open Order
      4. Create invoice
      5. Create invoice lines based on POL from (2)
      6. Approve invoice
      7. Pay invoice (failed step)

      Postman for reproduce: UIF-253 reproduce.postman_collection.json

      Expected Results:
      Invoice successfully payed and transaction processed

      Actual Results:
      org.folio.rest.exception.HttpException: All expected transactions already processed

        TestRail: Results

          Attachments

          1. MODORDERS-432_reproduce.postman_collection.json
            32 kB
            Siarhei Hrabko
          2. MODORDERS-432.mp4
            7.26 MB
            Aliaksandr Pautau
          3. MODORDERS-432.mp4
            1.38 MB
            Siarhei Hrabko
          4. UIF-253_2fund_dif_classes.log
            31 kB
            Andrei Makaranka
          5. UIF-253 reproduce.postman_collection.json
            32 kB
            Andrei Makaranka

            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