Regalamiunsorriso/www/admin/anag/_inc_clifor_est.jsp
2026-04-07 18:02:17 +02:00

93 lines
4.9 KiB
Text

<!-- _inc_clifor_est.jsp -->
<%@ taglib uri="/WEB-INF/acxent.tld" prefix="acx" %>
<%@ page language="java" import="it.acxent.jsp.*" %>
<%-- DICHIARAZIONE BEAN --%>
<jsp:useBean id="bean" class="it.acxent.anag.Clifor" type="it.acxent.anag.Clifor" scope="request" >
</jsp:useBean>
<jsp:useBean id="nf" scope="request" type="java.text.NumberFormat" >
</jsp:useBean>
<jsp:useBean id="df" class="it.acxent.util.SimpleDateFormat" scope="request" type="it.acxent.util.SimpleDateFormat" >
</jsp:useBean>
<jsp:useBean id="listaPagamenti" class="it.acxent.util.Vectumerator" type="it.acxent.util.Vectumerator" scope="request" >
</jsp:useBean>
<jsp:useBean id="CRDP" class="it.acxent.contab.DocumentoPagamentoCR" type="it.acxent.contab.DocumentoPagamentoCR" scope="request" >
</jsp:useBean>
<jsp:useBean id="CRese" class="it.acxent.anag.EsercizioCR" type="it.acxent.anag.EsercizioCR" scope="request" >
</jsp:useBean>
<%-- FINE DICHIARAZIONE BEAN --%>
<%-- RIGA 1 --%>
<div class="row">
<div class="col-lg-4">
<label for="descrizione">Tipo:
<input name="flgTipoSaldoMd" type="hidden" id="flgTipoSaldoMd" value="1">
</label>
<br>
<select id="flgTipoSaldo" name="flgTipoSaldo" onchange="refresh()" class="form-control input-sm">
<option value="0" selected <%=CRDP.getFlgTipoSaldo()==0?"selected":""%>>Tutte</option>
<option value="1" <%=CRDP.getFlgTipoSaldo()==1?"selected":""%>>Aperte</option>
<option value="2" <%=CRDP.getFlgTipoSaldo()==2?"selected":""%>>Chiuse</option>
</select>
</div>
<div class="col-lg-4"> <a class="btn btn-success btn-associative" href="javascript:vediPagamenti()">VAI ALLA PAGINA DEI PAGAMENTI</a> </div>
</div>
<%-- TABELLA --%>
<div class="row">
<div class="box-body scroll-300 col-lg-12" id="no-more-tables">
<table class="table table-bordered table-hover table-striped dataTable table-condensed">
<thead>
<tr>
<th>Cliente/Fornitore</th>
<th>Documento</th>
<th>Data Documento</th>
<th>Tipo Documento</th>
<th>Acconto/Saldo</th>
<th>Importo</th>
<th>Nota</th>
</tr>
</thead>
<tbody>
<acx:whilevec rowbeanclass="it.acxent.contab.DocumentoPagamento" vectumerator="listaPagamenti" rowbeanname="row" columntosum="importo" headercolumn="id_documento">
<acx:wvheader vectumerator="listaPagamenti">
<% listaPagamenti.resetAllPartialResults(); %>
</acx:wvheader>
<tr>
<td data-title="Cliente/Fornitore"><acx:if wherecondition="<%= row.getFlgTipoMovimento() == 1 %>"> <%= row.getDocumento().getClifor().getNominativoCompleto() %> </acx:if>
<acx:else> &nbsp; </acx:else></td>
<td data-title="Documento"><acx:if wherecondition="<%= row.getFlgTipoMovimento() == 1 %>"> <a href="javascript:loadDocument(<%=row.getId_documento()%>);"><%= row.getDocumento().getNumeroDocumentoCompleto() %></a></acx:if>
<acx:else> &nbsp; </acx:else></td>
<td align="center" data-title="Data Documento"><acx:if wherecondition="<%= row.getFlgTipoMovimento() == 1 %>">
<acx:if wherecondition='<%=row.getDocumento().getTipoDocumento().getFlgClienteFornitore().equals("F")%>'>R <%= df.format(row.getDocumento().getDataRiferimento()) %></acx:if>
<acx:else><%= df.format(row.getData()) %></acx:else>
</acx:if>
<acx:else> <%= df.format(row.getData()) %> </acx:else></td>
<td data-title="Tipo Documento"><acx:if wherecondition="<%= row.getFlgTipoMovimento() == 1 %>"> <%= row.getDocumento().getTipoDocumento().getDescrizione() %> </acx:if>
<acx:else> Pagamento - <%= row.getTipoPagamento().getDescrizione() %> </acx:else></td>
<td align="left" data-title="Acconto/Saldo"><acx:if wherecondition="<%= row.getFlgTipoMovimento()!=1 %>"> <%= row.getDescrizioneFlgTipoIncasso() %> </acx:if></td>
<td align="right" data-title="Importo"><span class='<%= row.getImporto() < 0 ? "red" : "" %>'> <%= nf.format(row.getImporto()) %> </span></td>
<td data-title="Nota"><%= row.getNota() %></td>
</tr>
<acx:wvfooter vectumerator="listaPagamenti">
<tr>
<td><b>Totale</b></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td align="right"><b> <%= nf.format(listaPagamenti.getSumPartialResult("importo")) %> </b></td>
<td>&nbsp;</td>
</tr>
</acx:wvfooter>
</acx:whilevec>
<tr>
<td><span class="text-red bold">Totale da Pagare</span></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td align="right"><span class="text-red bold"> <%= nf.format(listaPagamenti.getSumResult("importo")) %> </span></td>
<td>&nbsp;</td>
</tr>
</tbody>
</table>
</div>
</div>