diff --git a/Services/ParcelamentosImportService.cs b/Services/ParcelamentosImportService.cs index 5f532d9..b092aa9 100644 --- a/Services/ParcelamentosImportService.cs +++ b/Services/ParcelamentosImportService.cs @@ -232,18 +232,8 @@ public sealed class ParcelamentosImportService { if (col <= 0) return ""; var cell = ws.Cell(row, col); - var value = cell.Value; - if (value == null) return ""; - - return value switch - { - double d => d.ToString(CultureInfo.InvariantCulture), - decimal d => d.ToString(CultureInfo.InvariantCulture), - float f => f.ToString(CultureInfo.InvariantCulture), - int i => i.ToString(CultureInfo.InvariantCulture), - long l => l.ToString(CultureInfo.InvariantCulture), - _ => (value.ToString() ?? "").Trim() - }; + if (cell.IsEmpty()) return ""; + return (cell.GetValue() ?? "").Trim(); } private static void ParseParcelas(string? qtParcelas, out int? parcelaAtual, out int? totalParcelas)