|
|
@@ -293,7 +293,11 @@ class WeightBaseController
|
|
|
public function findOrderHeaderByLogisticNumber($code)
|
|
|
{
|
|
|
$query = OracleActAllocationDetails::query()->select('OrderNO')->where('PickToTraceId', $code);
|
|
|
- return OracleDOCOrderHeader::query()->with('actAllocationDetails', 'oracleBASCode')->whereIn('OrderNO', $query)->first();
|
|
|
+ $orderHeader = OracleDOCOrderHeader::query()->with('actAllocationDetails', 'oracleBASCode')->whereIn('OrderNO', $query)->first();
|
|
|
+ if($orderHeader == null){
|
|
|
+ $orderHeader = OracleDOCOrderHeader::query()->with('actAllocationDetails', 'oracleBASCode')->where('SOREFERENCE5', $code)->first();
|
|
|
+ }
|
|
|
+ return $orderHeader;
|
|
|
}
|
|
|
|
|
|
// 根据WMS订单信息创建订单信息
|