Skip to content

Commit

Permalink
Tesoreria Unica - modifiche parziali
Browse files Browse the repository at this point in the history
  • Loading branch information
rpucciarelli committed Feb 15, 2016
1 parent 743c297 commit 9675efc
Showing 1 changed file with 14 additions and 6 deletions.
Expand Up @@ -4687,13 +4687,17 @@ public BancaBulk setContoEnteIn(
Documento_generico_rigaBulk dettaglio,
java.util.List banche)
throws ComponentException {

if (!Rif_modalita_pagamentoBulk.BANCARIO.equals(dettaglio.getModalita_pagamento_uo_cds().getTi_pagamento()) ||
!dettaglio.getDocumento_generico().isGenericoAttivo() ||
!dettaglio.getDocumento_generico().isFlagEnte())
return null;

try {
if(Utility.createParametriCnrComponentSession().getParametriCnr(userContext,dettaglio.getEsercizio()).getFl_tesoreria_unica().booleanValue()){
if (!Rif_modalita_pagamentoBulk.BANCARIO.equals(dettaglio.getModalita_pagamento_uo_cds().getTi_pagamento()) ||
!dettaglio.getDocumento_generico().isGenericoAttivo())
return null;
}else{
if (!Rif_modalita_pagamentoBulk.BANCARIO.equals(dettaglio.getModalita_pagamento_uo_cds().getTi_pagamento()) ||
!dettaglio.getDocumento_generico().isGenericoAttivo() ||
!dettaglio.getDocumento_generico().isFlagEnte())
return null;
}
Configurazione_cnrBulk config = new Configurazione_cnrBulk(
"CONTO_CORRENTE_SPECIALE",
"ENTE",
Expand Down Expand Up @@ -4724,6 +4728,10 @@ else if (configurazioni.size() == 1) {
}
} catch (it.cnr.jada.persistency.PersistencyException e) {
throw handleException(e);
} catch (RemoteException e) {
throw handleException(e);
} catch (EJBException e) {
throw handleException(e);
}

return (BancaBulk)banche.get(0);
Expand Down

0 comments on commit 9675efc

Please sign in to comment.