bugs fix ttd final log

This commit is contained in:
Linksehat Staging Server
2024-01-16 22:06:59 +07:00
parent ce9c6b198f
commit 26ca75bf79

View File

@@ -711,13 +711,13 @@ class RequestLogController extends Controller
->leftJoin('files', 'files.fileable_id', '=', 'signatures.id')
->where('files.fileable_type', '=', 'App\Models\Signature')
->where('signatures.type', '=', 2)
->where('signatures.user_id', '=', $dataRequestLog->approved_by)
->where('signatures.user_id', '=', $dataRequestLog->approved_final_log_by)
->select(
'files.path',
DB::raw('
(Select persons.name FROM users
LEFT JOIN persons ON users.person_id = persons.id
WHERE users.id = "'.$dataRequestLog->approved_by.'" LIMIT 1) AS name_approve
WHERE users.id = "'.$dataRequestLog->approved_final_log_by.'" LIMIT 1) AS name_approve
')
)
->first();