İlk temizlik tamamlandı bir önceki projeden
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services\TpCreator\DocumentProcessors;
|
||||
|
||||
use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;
|
||||
|
||||
class DrawingsTpProcessor extends AbstractTpDocumentProcessor
|
||||
{
|
||||
public function process(
|
||||
array $lineData,
|
||||
array $document,
|
||||
Worksheet $sheet,
|
||||
int $currentRow,
|
||||
int $rowNo,
|
||||
string $fullFolder,
|
||||
string $testPackageNo,
|
||||
bool $override
|
||||
): int {
|
||||
$docPath = $document['path'];
|
||||
$lineNumber = $lineData['line_number'] ?? $testPackageNo;
|
||||
$weldingDate = $lineData['welding_date'] ?? date('Y-m-d');
|
||||
|
||||
$search = $this->alternativeGlob("{$docPath}/*{$lineNumber}*.pdf");
|
||||
|
||||
$this->addRow($search, $document, $fullFolder, $lineNumber, $weldingDate, $rowNo, $sheet, $currentRow, $override);
|
||||
|
||||
return $rowNo + 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user