From 49f5aa21f914ae2290dfc4192d6acb5590c4d7f4 Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Mon, 24 Nov 2025 18:55:51 -0300 Subject: [PATCH] Check for lower case titles --- app/src/Service/Venta/Precio/Import.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/Service/Venta/Precio/Import.php b/app/src/Service/Venta/Precio/Import.php index 5a56900..02501b9 100644 --- a/app/src/Service/Venta/Precio/Import.php +++ b/app/src/Service/Venta/Precio/Import.php @@ -75,19 +75,19 @@ class Import extends Ideal\Service 'precio' => [], 'unidad' => ['departamento'], 'tipo' => ['tipo unidad'], - 'fecha' => [] + 'fecha' => [], ]; $realTitlesMap = []; $titles = array_keys($data[0]); foreach ($baseTitlesMap as $base => $optionals) { foreach ($titles as $title) { - if (str_contains($title, $base)) { + if (str_contains(strtolower($title), $base)) { $realTitlesMap[$title] = $base; break; } foreach ($optionals as $optional) { - if (str_contains($title, $optional)) { + if (str_contains(strtolower($title), $optional)) { $realTitlesMap[$title] = $base; break; }