Itau funcionando para ByV BCI
This commit is contained in:
@ -85,7 +85,11 @@ class Mes extends Banco
|
||||
$value = $sheet->getCell("{$columnIndex}{$row->getRowIndex()}")->getCalculatedValue();
|
||||
$mapped = $this->columnMap()[$column] ?? $column;
|
||||
if ($mapped === 'fecha') {
|
||||
$value = PhpSpreadsheet\Shared\Date::excelToDateTimeObject($value)->format('Y-m-d');
|
||||
if (is_int($value)) {
|
||||
$value = PhpSpreadsheet\Shared\Date::excelToDateTimeObject($value)->format('Y-m-d');
|
||||
} else {
|
||||
$value = implode('-', array_reverse(explode('/', $value)));
|
||||
}
|
||||
}
|
||||
if (in_array($mapped, $valueColumns)) {
|
||||
$value = (int) $value;
|
||||
|
Reference in New Issue
Block a user