sistemato alcuni riferimenti ad importo e modifica per sole spese. Vedere anche per entrate

This commit is contained in:
2025-08-07 16:10:49 +02:00
parent f82f65a0c5
commit 9320ce76a1
6 changed files with 112 additions and 84 deletions

View File

@@ -32,7 +32,8 @@
<tr>
<th>Data</th>
<th>Categoria</th>
<th>Conto</th>
<th>Conto Dare</th>
<th>Conto Avere</th>
<th>Descrizione</th>
<th>Importo Dare</th>
<th>Importo Avere</th>
@@ -42,13 +43,13 @@
<tbody>
@foreach( $movimenti as $movimento )
<tr>
<td>{{ $movimento->mov_data}}</td>
<td>{{ $movimento->cat_name }}</td>
<td>{{ $movimento->nomeConto }}</td>
<td>{{ $movimento->nomeContoDare ?? '' }}</td>
<td>{{ $movimento->nomeContoAvere ?? '' }}</td>
<td>{{ $movimento->mov_descrizione }}</td>
<td>&euro; {{ $movimento->mov_importo_dare }}</td>
<td>&euro; {{ $movimento->mov_importo_avere }}</td>
<td>{{ $movimento->mov_importo_dare .""}}</td>
<td>{{ $movimento->mov_importo_avere."" }}</td>
<td>
<button class="btn btn-warning btn-detail open_modal_modifica" value="{{ $movimento->id }}"><i class="fa-solid fa-pencil"></i></button>&nbsp;
<a class="btn btn-danger" href="/admin/movimenti/delete?id={{ $movimento->id }}"><i class="fa-solid fa-trash-can"></i></a>&nbsp;
@@ -71,6 +72,8 @@
</div>
</div>
</div>
<!-- MODAL NEW -->
<div class="modal fade " id="myModal" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true">
@@ -110,10 +113,10 @@
<div class="col-xs-5">
<label for="importo" class="form-label">Importo</label>
<div class="input-group">
<span class="input-group-addon"> <i class="fa fa-eur"></i>
</span> <input type="number" step="0.01" min="-999999"
<span class="input-group-addon"> <i class="fa fa-eur"></i></span>
<input type="number" step="0.01" min="-999999"
max="999999" class="form-control" id="importo" size="50"
name="mov_importo" aria-describedby="importo">
name="mov_importo_dare" aria-describedby="importo">
</div>
</div>
<div class="col-xs-7">