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

72 lines
3.9 KiB
Text

<%@ taglib uri="/WEB-INF/acxent.tld" prefix="acx" %>
<%@ page language="java" import="it.acxent.jsp.*" %>
<%-- DICHIARAZIONE BEAN --%>
<jsp:useBean id="bean" class="it.acxent.contab.Documento" type="it.acxent.contab.Documento" scope="request" >
</jsp:useBean>
<jsp:useBean id="df" class="it.acxent.util.SimpleDateFormat" scope="request" type="it.acxent.util.SimpleDateFormat" >
</jsp:useBean>
<jsp:useBean id="nf" scope="request" type="java.text.NumberFormat" >
</jsp:useBean>
<jsp:useBean id="listaPagamenti" class="it.acxent.util.Vectumerator" type="it.acxent.util.Vectumerator" scope="request" >
</jsp:useBean>
<%-- FINE DICHIARAZIONE BEAN --%>
<div class="row">
<div class="col-lg-12">
<div class="box-body " id="no-more-tables" >
<table class="table table-bordered table-hover table-striped dataTable table-condensed">
<thead>
<tr>
<th colspan="2"><a href="javascript:vediPagamenti()">VAI ALLA PAGINA DEI PAGAMENTI</a></th>
<th colspan="2"><a href="javascript:loadCliente()">VAI ALLA PAGINA DEL CLIENTE</a></th>
<th colspan="3"><a href="javascript:addPagamento()">INSERISCI NUOVO PAGAMENTO</a></th>
</tr>
<tr>
<th width="20%">Cliente/Fornitore</th>
<th width="14%">Documento</th>
<th width="11%">Data Documento</th>
<th width="20%">Tipo Documento</th>
<th>Acconto/Saldo</th>
<th width="10%">Importo</th>
<th width="25%">Nota</th>
</tr>
</thead>
<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><acx:if wherecondition="<%= row.getFlgTipoMovimento() == 1 %>"> <%= row.getDocumento().getClifor().getNominativoCompleto() %> </acx:if>
<acx:else> &nbsp; </acx:else></td>
<td><acx:if wherecondition="<%= row.getFlgTipoMovimento() == 1 %>"> <%= row.getDocumento().getNumeroDocumentoCompleto() %> </acx:if>
<acx:else> &nbsp; </acx:else></td>
<td align="center"><acx:if wherecondition="<%= row.getFlgTipoMovimento() == 1 %>">
<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>
</acx:if>
<acx:else> <%= df.format(row.getData()) %> </acx:else></td>
<td><acx:if wherecondition="<%= row.getFlgTipoMovimento() == 1 %>"> <%= row.getDocumento().getTipoDocumento().getDescrizione() %> </acx:if>
<acx:else> Pagamento - <%= row.getTipoPagamento().getDescrizione() %> </acx:else></td>
<td align="left"><acx:if wherecondition="<%= row.getFlgTipoMovimento()!=1 %>"> <%= row.getDescrizioneFlgTipoIncasso() %> </acx:if></td>
<td align="right"><span class='<%= row.getImporto() < 0 ? "red" : "" %>'> <%= nf.format(row.getImporto()) %> </span></td>
<td><%= 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>
</table>
</div>
</div>
</div>