From e3de7094a4bb1870d5d0c96ee9602b96459e7b09 Mon Sep 17 00:00:00 2001 From: Matthew Pritchard Date: Mon, 21 Aug 2023 11:54:04 +0100 Subject: [PATCH] LIMS-932: Send proposal when creating shipments in shipping service --- api/src/Page/Shipment.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/src/Page/Shipment.php b/api/src/Page/Shipment.php index 62af99cbb..735321812 100644 --- a/api/src/Page/Shipment.php +++ b/api/src/Page/Shipment.php @@ -970,6 +970,7 @@ function _dispatch_dewar_in_shipping_service($dispatch_info, $dewar) try { if ($create === true) { + $shipment_data["proposal"] = $dispatch_info["prop"]; $response = $this->shipping_service->create_shipment($shipment_data); } else { $this->shipping_service->update_shipment($dispatch_info['DEWARID'], $shipment_data, ShippingService::JOURNEY_FROM_FACILITY); @@ -2682,6 +2683,7 @@ function($dewar) {return array("external_id" => $dewar["DEWARID"]);}, $shipment_data = array_merge($response, $shipment_data, $relabelled_contact); $this->shipping_service->update_shipment($shipment["SHIPPINGID"], $shipment_data, ShippingService::JOURNEY_TO_FACILITY); } catch (\Exception $e) { + $shipment_data["proposal"] = $shipment["PROP"]; $shipment_data["contact"] = $contact; $response = $this->shipping_service->create_shipment_by_journey_type($shipment_data, $journey_type); }