Modifiche all'importazione dei file di ING e visualizzazioni categorie

This commit is contained in:
2024-07-19 11:35:38 +00:00
parent 53c984c315
commit 337504b127
6 changed files with 13 additions and 9 deletions

View File

@@ -188,15 +188,15 @@ JOIN categories as c ON a.mov_fk_categoria=c.id';
rename($inputPath,$outputPath);
$collection = (new FastExcel)->import($outputPath, function ($line){
if($line['Data valuta'])
if($line['DATA VALUTA'])
{
list($giorno,$mese,$anno) = explode('/',$line['Data valuta']);
list($giorno,$mese,$anno) = explode('/',$line['DATA VALUTA']);
$data="$anno-$mese-$giorno";
self::insEntrata([
'mov_data'=>self::dateFormat(0,$line['Data valuta']),
'mov_data'=>self::dateFormat(0,$line['DATA VALUTA']),
'mov_fk_categoria'=>1,
'mov_descrizione'=>$line['Descrizione operazione'],
'mov_importo'=>trim(str_replace(',','.',(str_replace('.','',str_replace('€', '', $line['Importo']))))),
'mov_descrizione'=>$line['DESCRIZIONE OPERAZIONE'],
'mov_importo'=>trim(str_replace(',','.',(str_replace('.','',str_replace('€', '', $line['IMPORTO IN EURO']))))),
'mov_fk_tags'=>1,
'userid'=>1,
]);