mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-20 21:13:59 +00:00
Laravel Vapor - Debug approve purchase order issue
This commit is contained in:
@@ -77,16 +77,19 @@ class CreateInvoiceDocumentProcessor
|
||||
|
||||
$localFilePath = storage_path('app/documents/' . $currentFile);
|
||||
$oMerger->addPDF($localFilePath, 'all');
|
||||
if($filesystemDriver === 's3'){
|
||||
$filePathForS3 = 'documents/'.$currentFile;
|
||||
Log::info('CreateInvoiceDocumentProcessor 2: ' . $filePathForS3);
|
||||
Storage::disk('s3')->put($filePathForS3, file_get_contents($localFilePath));
|
||||
}
|
||||
}
|
||||
|
||||
$oMerger->merge();
|
||||
|
||||
$order_pdf = $oMerger;
|
||||
|
||||
if($filesystemDriver === 's3'){
|
||||
$finalTempPdfPath = storage_path('app/documents/temp.pdf');
|
||||
$filePathForS3 = 'documents/temp.pdf';
|
||||
$fileContent = file_get_contents($finalTempPdfPath);
|
||||
Log::info('CreateInvoiceDocumentProcessor 2: ' . $filePathForS3);
|
||||
Storage::disk('s3')->put($filePathForS3, $fileContent);
|
||||
}
|
||||
}
|
||||
|
||||
$document_object = new DocumentObject(
|
||||
|
||||
Reference in New Issue
Block a user