diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java
index 657a6a03..01d29659 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java
@@ -5,6 +5,7 @@ import it.tref.liferay.portos.bo.model.DettPratica;
import it.tref.liferay.portos.bo.model.DocPratica;
import it.tref.liferay.portos.bo.model.HistoryWorkflowAction;
import it.tref.liferay.portos.bo.model.IntPratica;
+import it.tref.liferay.portos.bo.model.Pagamento;
import it.tref.liferay.portos.bo.model.Provincia;
import it.tref.liferay.portos.bo.model.Soggetto;
import it.tref.liferay.portos.bo.model.Territorio;
@@ -15,6 +16,7 @@ import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaServiceUtil;
+import it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ParereGeologoServiceUtil;
import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil;
@@ -512,4 +514,28 @@ public class FascicoloPortlet extends MVCPortlet {
}
return sb.toString();
}
+
+ public void setBollettinoImposta(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException,
+ SystemException {
+
+ try {
+ long idPagamento = ParamUtil.getLong(actionRequest, "idPagamento");
+ String numeroBollettino = ParamUtil.getString(actionRequest, "numeroBollettino");
+ Pagamento pagamento = PagamentoLocalServiceUtil.fetchPagamento(idPagamento);
+ if (Validator.isNotNull(pagamento)) {
+ pagamento.setNumeroBollettino(numeroBollettino);
+ PagamentoLocalServiceUtil.updatePagamento(pagamento);
+ }
+ //PortalUtil.copyRequestParameters(actionRequest, actionResponse);
+ String redirectURL = ParamUtil.getString(actionRequest, "redirect");
+ if (Validator.isNotNull(redirectURL)) {
+ actionResponse.sendRedirect(redirectURL);
+ }
+ } catch (Exception e) {
+ PortalUtil.copyRequestParameters(actionRequest, actionResponse);
+ _log.error("Error", e);
+ throw new SystemException(e);
+ }
+ }
+
}
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
index 002a5478..c1d47a26 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
@@ -13,8 +13,8 @@
##
build.namespace=portos_bo
- build.number=3143
- build.date=1621522310640
+ build.number=3144
+ build.date=1621580624659
build.auto.upgrade=true
##
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view.jsp
index fda63bdd..bada833c 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view.jsp
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view.jsp
@@ -80,6 +80,39 @@
+