|
|
|
@ -35,7 +35,7 @@ class ReportActivityMaterialController extends Controller
|
|
|
|
|
/* $data['assign_material_id'] = AssignMaterial::where('activity_id', $request->activity_id)->pluck('id')->first(); */ |
|
|
|
|
$data['assign_material_id'] = $request->assign_material_id; |
|
|
|
|
$data['qty'] = $this->sanitizeDecimal($data['qty']); |
|
|
|
|
if($reportDate > $startDate){ |
|
|
|
|
if($reportDate >= $startDate){ |
|
|
|
|
$created = ReportActivityMaterial::create($data); |
|
|
|
|
return response()->json(['status'=>'success','message'=>'Input progress report activity created','code'=>200,'data'=>array('report_id'=>$created->id)]); |
|
|
|
|
} else { |
|
|
|
|