You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//L’idCarrello deve essere composto nella seguente forma: <idDominio(11)><numeroAvviso(18)><-><Progressivo(5)>
206
-
_ <-
207
-
if (idDominioMulti != rpt.dominio.identificativoDominio) {
208
-
Failure(exception.DigitPaException("L’idCarrello deve contenere idDominio e corrispondere al dominio della prima rpt", DigitPaErrorCodes.PPT_MULTI_BENEFICIARIO))
if (rpt.datiVersamento.datiSingoloVersamento.size == maxVersamentiInSecondRpt) {
222
-
Success(())
223
-
} else {
224
-
Failure(exception.DigitPaException(s"La seconda RPT non contiene solo $maxVersamentiInSecondRpt versamento", DigitPaErrorCodes.PPT_MULTI_BENEFICIARIO))
225
-
}
226
-
//Lo stesso Ente deve essere presente con una sola RPT
227
-
_ <-
228
-
if (rpt.dominio.identificativoDominio != primarpt.dominio.identificativoDominio) {
229
-
Success(())
230
-
} else {
231
-
Failure(exception.DigitPaException("Lo stesso Ente deve essere presente con una sola RPT", DigitPaErrorCodes.PPT_MULTI_BENEFICIARIO))
232
-
}
233
-
//Lo IUV è identico per ogni RPT
234
-
_ <-
235
-
if (rpt.datiVersamento.identificativoUnivocoVersamento == primarpt.datiVersamento.identificativoUnivocoVersamento) {
236
-
Success(())
237
-
} else {
238
-
Failure(exception.DigitPaException("Lo IUV non è identico per ogni RPT", DigitPaErrorCodes.PPT_MULTI_BENEFICIARIO))
239
-
}
240
-
//Il dato dataEsecuzionePagamento è il medesimo per tutte le RPT
241
-
_ <-
242
-
if (rpt.datiVersamento.dataEsecuzionePagamento == primarpt.datiVersamento.dataEsecuzionePagamento) {
243
-
Success(())
244
-
} else {
245
-
Failure(exception.DigitPaException("Il dato dataEsecuzionePagamento non è il medesimo per tutte le RPT", DigitPaErrorCodes.PPT_MULTI_BENEFICIARIO))
246
-
}
247
-
//Il carrello deve avere massimo 5 versamenti totali ( tra le RPT )
248
-
_ <-
249
-
if (rpt.datiVersamento.datiSingoloVersamento.size + primarpt.datiVersamento.datiSingoloVersamento.size >5) {
250
-
Failure(exception.DigitPaException("Il carrello deve avere massimo 5 versamenti totali", DigitPaErrorCodes.PPT_MULTI_BENEFICIARIO))
//L’idCarrello deve essere composto nella seguente forma: <idDominio(11)><numeroAvviso(18)><-><Progressivo(5)>
207
+
_ <-
208
+
if (idDominioMulti != rpt.dominio.identificativoDominio) {
209
+
Failure(exception.DigitPaException("L’idCarrello deve contenere idDominio e corrispondere al dominio della prima rpt", DigitPaErrorCodes.PPT_MULTI_BENEFICIARIO))
if (rpt.datiVersamento.datiSingoloVersamento.size == maxVersamentiInSecondRpt) {
223
+
Success(())
224
+
} else {
225
+
Failure(exception.DigitPaException(s"La seconda RPT non contiene solo $maxVersamentiInSecondRpt versamento", DigitPaErrorCodes.PPT_MULTI_BENEFICIARIO))
226
+
}
227
+
//Lo stesso Ente deve essere presente con una sola RPT
228
+
_ <-
229
+
if (rpt.dominio.identificativoDominio != primarpt.dominio.identificativoDominio) {
230
+
Success(())
231
+
} else {
232
+
Failure(exception.DigitPaException("Lo stesso Ente deve essere presente con una sola RPT", DigitPaErrorCodes.PPT_MULTI_BENEFICIARIO))
233
+
}
234
+
//Lo IUV è identico per ogni RPT
235
+
_ <-
236
+
if (rpt.datiVersamento.identificativoUnivocoVersamento == primarpt.datiVersamento.identificativoUnivocoVersamento) {
237
+
Success(())
238
+
} else {
239
+
Failure(exception.DigitPaException("Lo IUV non è identico per ogni RPT", DigitPaErrorCodes.PPT_MULTI_BENEFICIARIO))
240
+
}
241
+
//Il dato dataEsecuzionePagamento è il medesimo per tutte le RPT
242
+
_ <-
243
+
if (rpt.datiVersamento.dataEsecuzionePagamento == primarpt.datiVersamento.dataEsecuzionePagamento) {
244
+
Success(())
245
+
} else {
246
+
Failure(exception.DigitPaException("Il dato dataEsecuzionePagamento non è il medesimo per tutte le RPT", DigitPaErrorCodes.PPT_MULTI_BENEFICIARIO))
247
+
}
248
+
//Il carrello deve avere massimo 5 versamenti totali ( tra le RPT )
249
+
_ <-
250
+
if (rpt.datiVersamento.datiSingoloVersamento.size + primarpt.datiVersamento.datiSingoloVersamento.size >5) {
251
+
Failure(exception.DigitPaException("Il carrello deve avere massimo 5 versamenti totali", DigitPaErrorCodes.PPT_MULTI_BENEFICIARIO))
0 commit comments