Notify on received shipment

Description

As Philomena I want to be notified when my shipment has been received so that I am aware of any rejected stock. The notifications are sent to shippers via e-mail - this is achieved utilizing OpenLMIS notification service.

The user who confirmed the shipment is stored in the Shipment. When a PoD is confirmed, the related Shipment is retrieved and the user id is retrieved from there. The notification sent to the user should contain an info about PoD being confirmed by the receiver, a link to that PoD and the date of the confirmation.

Acceptance criteria

  • The user who confirmed the shipment is notified via e-mail, once the shipment has been received (when related PoD is confirmed)

  • The notification links to the related PoD, so the shipper can view it and see quantities accepted/rejected, reason for the rejection and other PoD-related information

  • The notification is sent via OpenLMIS notification service

Email template
----------------
Subject: <order number> Received by <receiving facility>
Dear <firstName> <lastName>,

You are receiving this notification because the shipment that you created to fulfill <OrderNumber> on <ShipmentCreatedDate> has arrived at <receiving facility> and has been confirmed by <receivedBy> on <receivedDate>. For details, you can view the electronic copy of the Proof of Delivery at this link: <link to PoD>

Attachments

2

QAlity Plus - Test Management

Checklists

Activity

Show:

Klaudia PałkowskaMarch 6, 2018 at 3:36 PM

I've pushed the fix, so it should work properly.

Joanna BebakMarch 6, 2018 at 2:18 PM

I checked, and everything works correctly - the typo no longer occurs.

Joanna BebakMarch 6, 2018 at 1:41 PM

I checked also on Firefox, and everything but this space works correctly. The UAT hasn't rebuilt yet but after it does, I will check it just in case. All in all, I think this ticket will be closed today.

Sebastian BrudzińskiMarch 6, 2018 at 1:19 PM

The msg was fixed. It should be testable after next server restart (if you even want to test it - it's pretty minor).

Joanna BebakMarch 6, 2018 at 1:04 PM

I managed to bypass the issues and managed to test the ticket on Chrome, only Firefox remains. So far, everything works correctly. I only noticed a redundant space within the email, which is visible both on Thunderbird and on Gmail:

Done
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Original estimate

Time tracking

2d 3h logged5h remaining

Sprint

Fix versions

Priority

Time Assistant

Created January 23, 2018 at 9:07 PM
Updated November 28, 2020 at 12:00 PM
Resolved March 6, 2018 at 2:19 PM