İlk temizlik tamamlandı bir önceki projeden

This commit is contained in:
Ümit Tunç
2026-04-28 21:14:25 +03:00
commit f80443aec0
10000 changed files with 959965 additions and 0 deletions
@@ -0,0 +1,33 @@
<?php
namespace App\Services\TpCreator\DocumentProcessors;
use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;
class GenericTpProcessor extends AbstractTpDocumentProcessor
{
public function process(
array $lineData,
array $document,
Worksheet $sheet,
int $currentRow,
int $rowNo,
string $fullFolder,
string $testPackageNo,
bool $override
): int {
// Generic fallback
$docPath = $document['path'];
$lineNumber = $lineData['line_number'] ?? $testPackageNo;
$weldingDate = $lineData['welding_date'] ?? date('Y-m-d'); // Assuming available in lineData join
$search = $this->alternativeGlob("storage/documents/{$docPath}/*{$lineNumber}*.pdf");
$this->addRow($search, $document, $fullFolder, $lineNumber, $weldingDate, $rowNo, $sheet, $currentRow, $override);
return $rowNo + 1;
}
}