modifica funzione di export
This commit is contained in:
parent
14990049ed
commit
feae88c4ff
@ -119,7 +119,8 @@ class MovimentiController extends Controller
|
||||
'Categoria'=>$movimento->Categoria,
|
||||
'Tag'=>$movimento->Tag,
|
||||
'Descrizione'=>$movimento->Descrizione,
|
||||
'Importo'=>$movimento->Importo,
|
||||
'Importo_dare'=>$movimento->Importo_dare,
|
||||
'Importo_avere'=>$movimento->Importo_avere,
|
||||
'Conto'=>$movimento->Conto,
|
||||
];
|
||||
}
|
||||
|
||||
@ -144,7 +144,7 @@ public function ContoA()
|
||||
->join('categories','movimentis.mov_fk_categoria','=','categories.id')
|
||||
->join('tags','movimentis.mov_fk_tags','=','tags.id')
|
||||
->join('contos','movimentis.conto_id','=','contos.id')
|
||||
->selectRaw('mov_data AS Data,cat_name AS Categoria,tag_name AS Tag,NomeConto AS Conto, mov_descrizione AS Descrizione,mov_importo AS Importo')
|
||||
->selectRaw('mov_data AS Data,cat_name AS Categoria,tag_name AS Tag,NomeConto AS Conto, mov_descrizione AS Descrizione,mov_importo_dare AS Importo_dare, mov_importo_avere AS Importo_averes')
|
||||
->orderBy('Data','asc')
|
||||
->get();
|
||||
}
|
||||
|
||||
@ -20,8 +20,8 @@ class CreateMovimentisTable extends Migration
|
||||
$table->unsignedBigInteger('mov_fk_categoria');
|
||||
$table->foreign('mov_fk_categoria')->references('id')->on('categories');
|
||||
$table->longText('mov_descrizione');
|
||||
$table->decimal('mov_importo_dare',8,2)->nullable();
|
||||
$table->decimal('mov_importo_avere',8,2)->nullable();
|
||||
$table->decimal('mov_importo_dare',8,2)->nullable()->default(0.00);
|
||||
$table->decimal('mov_importo_avere',8,2)->nullable()->default(0.00);
|
||||
$table->unsignedBigInteger('mov_inserito_da');
|
||||
$table->foreign('mov_inserito_da')->references('id')->on('users');
|
||||
$table->unsignedBigInteger('mov_fk_tags');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user