From 9050cb1006dc37a1f59168a1a3cd24ed4917aece Mon Sep 17 00:00:00 2001 From: solocla Date: Tue, 26 May 2026 12:15:45 +0200 Subject: [PATCH] routine burberry --- public/userarea/routines/burberry.php | 71 +++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 public/userarea/routines/burberry.php diff --git a/public/userarea/routines/burberry.php b/public/userarea/routines/burberry.php new file mode 100644 index 0000000..7e866e0 --- /dev/null +++ b/public/userarea/routines/burberry.php @@ -0,0 +1,71 @@ + &$row) { + if (!isset($row['data']) || !is_array($row['data'])) { + error_log("Routine burberry: invalid row structure at index {$rowIndex}."); + continue; + } + + $valueS = trim((string)($row['data'][$columnSIndex] ?? '')); + $valueT = trim((string)($row['data'][$columnTIndex] ?? '')); + + /* + * Merge values, ignoring empty values. + */ + $mergedValues = []; + + if ($valueS !== '') { + $mergedValues[] = $valueS; + } + + if ($valueT !== '') { + $mergedValues[] = $valueT; + } + + /* + * Save final value into column S. + */ + $row['data'][$targetColumnIndex] = implode(' ', $mergedValues); + + error_log( + "Routine burberry: row " . + ($row['excelrow'] ?? $rowIndex) . + " generated value in column S: " . + $row['data'][$targetColumnIndex] + ); + } + + unset($row); + + error_log("Routine burberry completed."); +}