sistemato problema della formattazione della data valuta nella importazione di un ec di ING
This commit is contained in:
parent
ec5b6c8b8b
commit
6163d8a5bd
@ -191,7 +191,7 @@ JOIN categories as c ON a.mov_fk_categoria=c.id';
|
|||||||
if($line['Data valuta'])
|
if($line['Data valuta'])
|
||||||
{
|
{
|
||||||
self::insEntrata([
|
self::insEntrata([
|
||||||
'mov_data'=>$line['Data valuta'],
|
'mov_data'=>self::dateFormat(0,$line['Data valuta']),
|
||||||
'mov_fk_categoria'=>1,
|
'mov_fk_categoria'=>1,
|
||||||
'mov_descrizione'=>$line['Descrizione operazione'],
|
'mov_descrizione'=>$line['Descrizione operazione'],
|
||||||
'mov_importo'=>trim(str_replace(',','.',(str_replace('.','',str_replace('€', '', $line['Importo']))))),
|
'mov_importo'=>trim(str_replace(',','.',(str_replace('.','',str_replace('€', '', $line['Importo']))))),
|
||||||
@ -214,7 +214,8 @@ JOIN categories as c ON a.mov_fk_categoria=c.id';
|
|||||||
if($line['DARE']<>'')
|
if($line['DARE']<>'')
|
||||||
{
|
{
|
||||||
$dati=[
|
$dati=[
|
||||||
'mov_data'=>self::dateFormat(0,$line['VALUTA']), // date_format(date_create($movimento->mov_data),'d/m/Y'
|
'mov_data'=>self::dateFormat(0,$line['VALUTA']),
|
||||||
|
// date_format(date_create($movimento->mov_data),'d/m/Y'
|
||||||
// 'mov_data'=>date_format(date_create($line['VALUTA']),'Y-m-d'),
|
// 'mov_data'=>date_format(date_create($line['VALUTA']),'Y-m-d'),
|
||||||
'mov_fk_categoria'=>1,
|
'mov_fk_categoria'=>1,
|
||||||
'mov_descrizione'=>$line['DESCRIZIONE OPERAZIONE'],
|
'mov_descrizione'=>$line['DESCRIZIONE OPERAZIONE'],
|
||||||
|
Loading…
Reference in New Issue
Block a user