Skip to content

Commit

Permalink
LIMS-932: Send proposal when creating shipments in shipping service
Browse files Browse the repository at this point in the history
  • Loading branch information
MattPrit committed Aug 21, 2023
1 parent 2da5639 commit e3de709
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/src/Page/Shipment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit e3de709

Please sign in to comment.