From 8f682f7f13816ba378fb1d964d952763e079a6bb Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Tue, 27 Aug 2024 14:43:17 -0400 Subject: [PATCH] Se agrega chequeo para cartola diaria --- .../Service/Contabilidad/Cartola/Santander/OfficeBanking.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/Service/Contabilidad/Cartola/Santander/OfficeBanking.php b/app/src/Service/Contabilidad/Cartola/Santander/OfficeBanking.php index 15dd731..6e8c92e 100644 --- a/app/src/Service/Contabilidad/Cartola/Santander/OfficeBanking.php +++ b/app/src/Service/Contabilidad/Cartola/Santander/OfficeBanking.php @@ -19,6 +19,10 @@ class OfficeBanking extends Banco } $xlsx = $reader->load($filename); $sheet = $xlsx->getActiveSheet(); + $subtitle = $sheet->getCell('A1')->getCalculatedValue(); + if ($subtitle === 'Consulta de movimientos de Cuentas Corrientes') { + return true; + } $subtitle = $sheet->getCell('A2')->getCalculatedValue(); return $subtitle === 'Consulta de movimientos de Cuentas Corrientes'; }