Changes
This commit is contained in:
parent
72ffa913ba
commit
cddb66e590
@ -10,7 +10,7 @@ import { limparDescricao } from '@/utils/categorizacaoAutomatica';
|
|||||||
export async function parseCSV(file: File, contaBancariaId?: string): Promise<TransacaoImportada[]> {
|
export async function parseCSV(file: File, contaBancariaId?: string): Promise<TransacaoImportada[]> {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
Papa.parse(file, {
|
Papa.parse(file, {
|
||||||
header: true,
|
header: false, // tratamos manualmente o cabeçalho
|
||||||
skipEmptyLines: true,
|
skipEmptyLines: true,
|
||||||
delimiter: ';', // Suporta CSV com ponto e vírgula
|
delimiter: ';', // Suporta CSV com ponto e vírgula
|
||||||
complete: (results) => {
|
complete: (results) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user