With $use_shipping_service = True; but $use_shipping_service_redirect = False;, if the shipping service returns an error, we should display the message detail in Synchweb.
Changes:
Dont try and get the AWB number if there was an error from the shipping service
Pass the error message back to the GUI as a JSON encoded string, so it appears in the GUI
To test:
NB this is a user dewar so only test on backup db, without sending emails
Set $use_shipping_service = True; but $use_shipping_service_redirect = False;
Go to a shipment that has already been dispatched by the shipping service, eg /shipments/sid/60942
Click on the little house icon to request the dewar be returned, click "Request Dewar Dispatch"
Check if a "friendly" message appears at the top of the page, saying "Cannot update a shipment that has already been dispatched"
Go to a shipment that has not been dispatched eg /shipments/sid/63609, repeat the test, check it all works this time and appears on sample-shipping-staging.
JIRA ticket: LIMS-1370
Summary:
With
$use_shipping_service = True;
but$use_shipping_service_redirect = False;
, if the shipping service returns an error, we should display the message detail in Synchweb.Changes:
To test:
$use_shipping_service = True;
but$use_shipping_service_redirect = False;