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:
Query modified to return current proposal code associated with dewar.
Conditions added to check courier name and proposal code.
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:
The courier is DHL
The destination is international (i.e. not the facility_country)
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.
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
anddispatch_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:
facility_country
)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.