File merge issue

This commit is contained in:
Gowtham M 2026-05-18 15:17:06 +05:30
parent 8b9f6b9da8
commit 7c843e4ac8

View File

@ -72,6 +72,14 @@ if (! function_exists('merge_ticket_pdfs')) {
return $result;
}
if (count($rows) ==1){
//set file_type for for that one file.
$claimFiles->where('id', $rows[0]['id'])->set(['file_type' => 4])->update();
$result['status'] = true;
$result['message'] = 'Only one PDF/image file to merge';
return $result;
}
$uploadDir = rtrim(WRITEPATH, '/\\') . DIRECTORY_SEPARATOR
. 'uploads' . DIRECTORY_SEPARATOR
. 'claim_files' . DIRECTORY_SEPARATOR;