Uploaded image for project: 'ui-users'
  1. ui-users
  2. UIU-2048

Inconsistent behavior of payment action when transaction info is blank

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • TBD
    • Resolution: Done
    • None
    • 6.0.0
    • EPAM-Veg Sprint 107
    • 1
    • Vega

    Description

      Overview:
      There is a difference between Fee/fine details -> Pay and Charge&pay buttons in how they create payment feefineactions objects.

      Steps to Reproduce:

      1. Create a fee/fine with a Charge&pay button and leave Transaction information field blank.
      2. Create another fee/fine using a Charge button, then go to its details page and create a payment using a Pay button (again, leave Transaction information field blank).
      3. Compare fee/fine action objects create for each of these two payments

      Expected Results:
      transactionInformation field should be the same in both objects. Preferably, it should be equal to "". We need to handle this value correctly on the Fee/fine details page and display it as "-".

      Actual Results:
      The first object is missing transactionInformation field. Example:

      {
          "dateAction" : "2021-02-09T11:41:41.708+00:00",
          "typeAction" : "Paid fully",
          "comments" : "",
          "notify" : false,
          "amountAction" : 11.0,
          "balance" : 0.0,
          "createdAt" : "7c5abc9f-f3d7-4856-b8d7-6712462ca007",
          "source" : "ADMINISTRATOR, DIKU",
          "paymentMethod" : "test-payment-method",
          "accountId" : "3cfa1677-ef1d-4946-b106-4d45bcb7b569",
          "userId" : "2a424823-588a-45ee-9441-a6384b6614b2",
          "id" : "a41e0adc-4a60-4dde-a03b-6a5bd911c68d"
        }
      

      In the second object it is set to "-". Example:

      {
          "dateAction" : "2021-02-09T11:41:53.492+00:00",
          "typeAction" : "Paid partially",
          "comments" : "",
          "notify" : false,
          "amountAction" : 5.0,
          "balance" : 5.0,
          "transactionInformation" : "-",
          "createdAt" : "7c5abc9f-f3d7-4856-b8d7-6712462ca007",
          "source" : "ADMINISTRATOR, DIKU",
          "paymentMethod" : "test-payment-method",
          "accountId" : "3eb56241-28f9-4b09-a234-6f7a061998cd",
          "userId" : "2a424823-588a-45ee-9441-a6384b6614b2",
          "id" : "ec3240de-1058-4527-855c-49588e4db0e7"
        }
      

      TestRail: Results

        Attachments

          Activity

            People

              annamelnyk Anna Melnyk
              oleksandrkurash Alexander Kurash
              Holly Mistlebauer Holly Mistlebauer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                TestRail: Runs

                  TestRail: Cases