Uploaded image for project: 'ui-circulation'
  1. ui-circulation
  2. UICIRC-539

"Aged to lost" and "Aged to lost & item returned - fine adjusted" are not going out

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • TBD
    • Resolution: Won't Do
    • None
    • None
    • None
    • EPAM-Veg Sprint 104
    • Vega

    Description

      Here is an example of a Patron Notice Policy created via UI:

      {
        "id": "544285ae-188f-471b-bfe8-b6084e0d9fa2",
        "name": "Aged to lost notices",
        "active": true,
        "metadata": {
          "createdDate": "2020-12-16T10:11:21.243+00:00",
          "createdByUserId": "b2900a82-3462-56cd-8461-fb9532080dce",
          "updatedDate": "2020-12-16T10:11:21.243+00:00",
          "updatedByUserId": "b2900a82-3462-56cd-8461-fb9532080dce"
        },
        "loanNotices": [{
            "templateId": "b897ac37-3421-417f-8bc7-2b54091af7b3",
            "format": "Email",
            "realTime": false,
            "sendOptions": {
              "sendHow": "Upon At",
              "sendWhen": "Aged to lost"
            }
          }, {
            "templateId": "c8304d06-fde4-4ea1-867a-7bcd4039f143",
            "format": "Email",
            "frequency": "One time",
            "realTime": false,
            "sendOptions": {
              "sendHow": "After",
              "sendWhen": "Aged to lost",
              "sendBy": {
                "duration": 1,
                "intervalId": "Minutes"
              }
            }
          }, {
            "templateId": "5e203852-1c19-462b-9302-fc99e8bd7dc3",
            "format": "Email",
            "frequency": "Recurring",
            "realTime": false,
            "sendOptions": {
              "sendHow": "After",
              "sendWhen": "Aged to lost",
              "sendBy": {
                "duration": 2,
                "intervalId": "Minutes"
              },
              "sendEvery": {
                "duration": 5,
                "intervalId": "Minutes"
              }
            }
          }
        ],
        "feeFineNotices": [{
            "templateId": "2735655d-7857-48ad-bf5b-4d3b30594844",
            "format": "Email",
            "realTime": true,
            "sendOptions": {
              "sendHow": "Upon At",
              "sendWhen": "Aged to lost - fine charged"
            }
          }, {
            "templateId": "0450e923-f0c8-430e-af34-f414e151b148",
            "format": "Email",
            "frequency": "One time",
            "realTime": true,
            "sendOptions": {
              "sendHow": "After",
              "sendWhen": "Aged to lost - fine charged",
              "sendBy": {
                "duration": 1,
                "intervalId": "Minutes"
              }
            }
          }, {
            "templateId": "5437caa4-3267-420d-ac90-e85e8314096b",
            "format": "Email",
            "frequency": "Recurring",
            "realTime": true,
            "sendOptions": {
              "sendHow": "After",
              "sendWhen": "Aged to lost - fine charged",
              "sendBy": {
                "duration": 2,
                "intervalId": "Minutes"
              },
              "sendEvery": {
                "duration": 5,
                "intervalId": "Minutes"
              }
            }
          }, {
            "templateId": "14caf724-2fef-4368-9eca-06ec587c7eb8",
            "format": "Email",
            "realTime": false,
            "sendOptions": {
              "sendWhen": "Aged to lost & item returned - fine adjusted"
            }
          }
        ],
        "requestNotices": []
      }
      

      "Aged to lost" and "Aged to lost & item returned - fine adjusted" notices are created with realTime flag set to "false". It should be set to "true", otherwise scheduled notice processor can't pick up notices created with this policy, so they stay in the queue indefinitely.

      Also, sendHow option is missing in "Aged to lost & item returned - fine adjusted" notices. We should explicitly set it to "Upon/At".

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                OleksandrVidinieiev Oleksandr Vidinieiev
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases