Skip to content

Commit

Permalink
Anomalia mandati regolarizzazione
Browse files Browse the repository at this point in the history
  • Loading branch information
rosangela.pucciarelli committed May 31, 2016
1 parent 697978f commit b2afbc7
Showing 1 changed file with 9 additions and 8 deletions.
Expand Up @@ -5779,13 +5779,7 @@ private void verificaModalitaPagamento(UserContext aUC, MandatoBulk mandato)
* if ( riga.getBanca() == null || riga.getBanca().getNumero_conto()
* == null) //mandato di regolarizzazione return;
*/

Rif_modalita_pagamentoBulk rifModPag = (Rif_modalita_pagamentoBulk) getHome(aUC,
Rif_modalita_pagamentoBulk.class).findByPrimaryKey(
new Rif_modalita_pagamentoBulk(riga.getModalita_pagamento().getCd_modalita_pag()));
if( rifModPag.isMandatoRegSospeso() && !mandato.isRegolamentoSospeso())
throw new ApplicationException(
"Attenzione per la modalità di pagamento indicata il mandato deve essere a regolamento sospeso.");

if (riga.getBanca() == null
|| Rif_modalita_pagamentoBulk.ALTRO.equals(riga.getBanca()
.getTi_pagamento())
Expand All @@ -5796,7 +5790,14 @@ private void verificaModalitaPagamento(UserContext aUC, MandatoBulk mandato)
|| mandato.TIPO_REGOLARIZZAZIONE.equals(mandato
.getTi_mandato())) // mandato di regolarizzazione
return;


Rif_modalita_pagamentoBulk rifModPag = (Rif_modalita_pagamentoBulk) getHome(aUC,
Rif_modalita_pagamentoBulk.class).findByPrimaryKey(
new Rif_modalita_pagamentoBulk(riga.getModalita_pagamento().getCd_modalita_pag()));
if( rifModPag.isMandatoRegSospeso() && !mandato.isRegolamentoSospeso())
throw new ApplicationException(
"Attenzione per la modalità di pagamento indicata il mandato deve essere a regolamento sospeso.");

BancaBulk banca = riga.getBanca();

String abi = riga.getBanca().getAbi();
Expand Down

0 comments on commit b2afbc7

Please sign in to comment.