|
|
@@ -108,7 +108,7 @@ class StationTaskCommodityService
|
|
|
$stationType=$this->stationTypeService->getForCommodity();
|
|
|
$station=$this->stationService->getStation_byType($stationType['name']);
|
|
|
$materialBox=$this->materialBoxService->firstOrCreate(['code' => $orderCommodity['location']]);
|
|
|
- $stationTaskMaterialBoxId=StationTaskMaterialBox::query()->where('station_task_batch_id',$batch['id'])->where('material_box_id',$materialBox['id'])->get('id')->first()['id']??null;
|
|
|
+ $stationTaskMaterialBoxId=StationTaskMaterialBox::query()->where('station_task_batch_id',$stationTaskBatch['id'])->where('material_box_id',$materialBox['id'])->get('id')->first()['id']??null;
|
|
|
$stationTaskCommodities_toCreate->push(
|
|
|
new StationTaskCommodity([
|
|
|
'station_id'=>$station['id'],
|