GWM : quotation file download error

This commit is contained in:
Gowtham M 2025-09-24 15:43:26 +05:30
parent 85dd258370
commit 32cfc8b3b6

View File

@ -214,7 +214,7 @@ class QuotationController extends ResourceController
return $this->respond(['status' => 'failed', 'code' => 404, 'data' => 'File not found'], 200);
}
$filePath = WRITEPATH . 'uploads/quotation/' . $fileRecord['incentive_file_name'];
$filePath = WRITEPATH . 'uploads/quotation/' . $fileRecord['additional_uploaded_file_name'];
if (!file_exists($filePath)) {
return $this->respond(['status' => 'failed', 'code' => 404, 'data' => 'File missing on server'], 200);