mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-26 16:04:05 +00:00
convert 1688 purchase order to po
This commit is contained in:
@@ -385,6 +385,8 @@ Route::get('/1688/fix', function(){
|
||||
$bookings = [];
|
||||
foreach($purchaseOrderDocuments as $document){
|
||||
foreach($document->files as $file) {
|
||||
if(!$file->file->file_info) $file;
|
||||
continue;
|
||||
$parser = new \Smalot\PdfParser\Parser();
|
||||
$pdf = $parser->parseFile(Storage::disk('documents')->path($file->file->file_info->original->file));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user