DiamondLightSource / SynchWeb

ISPyB web application
http://diamondlightsource.github.io/SynchWeb/
Apache License 2.0
15 stars 31 forks source link

LIMS-1331: Send all dispatch requests unless international via DHL for BI/MX #779

Closed JPHall-DLS closed 6 months ago

JPHall-DLS commented 6 months ago

JIRA ticket: LIMS-1331: Send all dispatch requests to Goods Handling unless international via DHL for BI/MX

Summary: Revise dewar dispatch logic to send all dispatch requests to Goods Handling unless international via DHL for BI or MX as these require special processing.

Changes:

To test: In development environment, configure dispatch_email and dispatch_email_intl options to use different email addresses, the first representing Goods Handling, the latter recipient being responsible for special international shipments. Create new shipment, mark shipment as sent to Diamond, and then submit dispatch requests specifying different courier names and destination countries.

For example, if the following are all true:

  1. The courier is DHL
  2. The destination is international (i.e. not the facility_country)
  3. The proposal code is BI or MX (or CM for internal use)

Then a dispatch request message should be sent to dispatch_email_intl i.e. recipient responsible for special international shipments.

In all other cases, a dispatch request message should be sent to dispatch_email i.e. Goods Handling.