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

Can not paid for the Invoice with 3 fund distributions where one of the amount is negative

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • P2
    • Resolution: Done
    • None
    • None
    • Kiwi HF3

    • ACQ Sprint 143
    • 3
    • Thunderjet
    • Morning Glory (R2 2022)
    • Lack of testing

    Description

      Overview:
      Can not Pay for the Invoice where 3 fund distribution and one of them with negative amount.
      Also there is expense classes in the fund distribution

      Release
      UTM is reporting an error trying to pay an Invoice - they are on Kiwi HF 3 with the following invoice and finance modules

      Invoice business logic module (mod-invoice-5.2.5)
      Invoice CRUD module (mod-invoice-storage-5.2.1)
      Finance business logic module (mod-finance-4.3.3)
      Finance CRUD module (mod-finance-storage-8.0.3)

      Steps to Reproduce:
      Since we could not change XXXXX and YYYYYY, the suggestion was to create an invoice that corrected the charges. So we did that with a dummy order and invoice. However, the dummyinvoice got stuck in approved and not paid."

      Expected Results: Invoice paid and all needed transaction are created
      Actual Results:

      Original issue from mod-invoice log

      Voucher lines

      Payment transaction with negative amount

      Response is a 400 with below body
      Final issue
      {
      "errors" : [

      { "message" : "One or more transactions record(s) failed to be created", }

      Additional Information:
      URL:
      Interested parties:
      cgodfrey

      TestRail: Results

        Attachments

          1. fund1.png
            fund1.png
            129 kB
          2. fund2.png
            fund2.png
            121 kB
          3. fund3.png
            fund3.png
            122 kB
          4. Invoice.png
            Invoice.png
            117 kB
          5. Payment transaction.png
            Payment transaction.png
            61 kB
          6. successfully paid.png
            successfully paid.png
            160 kB
          7. VoucherLines.png
            VoucherLines.png
            65 kB
          8. VoucherLines1.png
            VoucherLines1.png
            53 kB

          Activity

            People

              dennisbridges Dennis Bridges
              Andrei_Makaranka Andrei Makaranka
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                TestRail: Runs

                  TestRail: Cases