Skip to content

Commit

Permalink
Aggiunta la possibilità di cambiare esercizio nella liduidazione defi…
Browse files Browse the repository at this point in the history
…nitiva e massiva dell'IVA
  • Loading branch information
mspasiano committed Dec 23, 2024
1 parent 82851f2 commit b9c39dd
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Optional;

import it.cnr.contab.gestiva00.bp.LiquidazioneDefinitivaIvaBP;
import it.cnr.contab.gestiva00.bp.LiquidazioneIvaBP;
import it.cnr.contab.gestiva00.core.bulk.IPrintable;
Expand Down Expand Up @@ -228,7 +230,10 @@ protected it.cnr.jada.action.Forward setDataDaA(

try {
int esercizio = stampaBulk.getEsercizio().intValue();
int meseIndex = ((Integer)stampaBulk.getMesi_int().get(stampaBulk.getMese())).intValue();
int meseIndex = Optional.ofNullable(stampaBulk.getMese())
.map(s -> {
return ((Integer)stampaBulk.getMesi_int().get(s)).intValue();
}).orElse(12);
java.util.GregorianCalendar gc = getGregorianCalendar();
gc.set(java.util.Calendar.DAY_OF_MONTH, 1);
gc.set(java.util.Calendar.YEAR, esercizio);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,15 @@

<!-- ************************ FORM FIELD PROPERTY ******************** -->

<formFieldProperty
name="esercizio"
property="esercizio"
inputType="TEXT"
enabledOnSearch="true"
enabledOnEdit="true"
enabledOnInsert="true"
label="Esercizio"
command="doOnMeseChange"/>

<formFieldProperty name="data_da" />
<formFieldProperty name="data_a" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@
<% } %>
</tr>
<% if (!richiamaChiusuraMode) { %>
<tr>
<td>
<% bp.getController().writeFormLabel(out,"esercizio");%>
</td>
<td><% bp.getController().writeFormInput(out,"esercizio");%></td>
</tr>
<tr>
<td>
<% bp.getController().writeFormLabel(out,"mese");%>
Expand Down
13 changes: 10 additions & 3 deletions sigla-web/src/main/webapp/gestiva00/liquidazione_massa_iva.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<% LiquidazioneMassaIvaBP bp = (LiquidazioneMassaIvaBP)BusinessProcess.getBusinessProcess(request);
bp.openFormWindow(pageContext); %>

<div class="Group" style="width:100%">
<div class="Group card p-2" style="width:100%">
<table width="100%">
<!--
<tr>
Expand All @@ -38,8 +38,13 @@
</td>
</tr>
-->

<tr>
<tr>
<td>
<% bp.getController().writeFormLabel(out,"esercizio");%>
</td>
<td><% bp.getController().writeFormInput(out,"esercizio");%></td>
</tr>
<tr>
<td>
<% bp.getController().writeFormLabel(out,"mese");%>
</td>
Expand All @@ -54,6 +59,8 @@
<td>
<% bp.getController().writeFormInput(out,null,"data_da",false,null,"");%>
</td>
</tr>
<tr>
<td>
<% bp.getController().writeFormLabel(out,"data_a");%>
</td>
Expand Down

0 comments on commit b9c39dd

Please sign in to comment.