Examples of ErroreFattura


Examples of it.pdor.webapp.contabilita.operazioniGiornaliere.fattura.ErroreFattura

      List<IntestatariFattura> intestatari = anagraficaFacade.getIntestatariTerziFattura(tf.getNumeroIntestatario());
      if(intestatari.size() == 0){
        errore = messageBundle.getMessage("TextFattura") + ": " + tf.getNumeroFattura()
        + " - " + messageBundle.getMessage("AlertMsgMancanoSoggettiMutuo")
        + tf.getNumeroIntestatario();
        errori.add(new ErroreFattura(errore));
      } else {
        for(IntestatariFattura iFatt : intestatari){
          if("PF".equals(iFatt.getTipoSoggetto())){
            if(iFatt.getCodiceFiscale() == null || "".equals(iFatt.getCodiceFiscale())){
              errore = messageBundle.getMessage("TextFattura") + ": " + tf.getNumeroFattura()
                + " - " + messageBundle.getMessage("AlertMsgMancanoCFPivaSoggetto")
                + iFatt.getNumeroSoggetto()
                + " " + messageBundle.getMessage("AlertMsgDelMutuo")
                + tf.getNumeroIntestatario();
              errori.add(new ErroreFattura(errore));
            }
          }else if("PG".equals(iFatt.getTipoSoggetto())){
            if(iFatt.getPartitaIva() == null || "".equals(iFatt.getPartitaIva())){
              errore = messageBundle.getMessage("TextFattura") + ": " + tf.getNumeroFattura()
              + " - " + messageBundle.getMessage("AlertMsgMancanoCFPivaSoggetto")
              + iFatt.getNumeroSoggetto()
              + " " + messageBundle.getMessage("AlertMsgDelMutuo")
              + tf.getNumeroIntestatario();
            errori.add(new ErroreFattura(errore));
            }
          }
        }
      }
    }else if ("S".equals(tf.getTipoIntestatario())){
      Soggetto soggetto = anagraficaFacade.leggiSoggetto(tf.getNumeroIntestatario());
      if(soggetto == null){
        errore = messageBundle.getMessage("TextFattura") + ": " + tf.getNumeroFattura()
          + " - " + messageBundle.getMessage("AlertMsgMancaSoggetto") + tf.getNumeroIntestatario();
        errori.add(new ErroreFattura(errore));
      }else{
        if("PF".equals(soggetto.getTipoSoggetto())){
          if(soggetto.getCodiceFiscale() == null || "".equals(soggetto.getCodiceFiscale())){
            errore = messageBundle.getMessage("TextFattura") + ": " + tf.getNumeroFattura()
              + " - " + messageBundle.getMessage("AlertMsgMancanoCFPivaSoggetto")
              + tf.getNumeroIntestatario();
            errori.add(new ErroreFattura(errore));
          }
        }else if("PG".equals(soggetto.getTipoSoggetto())){
          if(soggetto.getPartitaIva() == null || "".equals(soggetto.getPartitaIva())){
            errore = messageBundle.getMessage("TextFattura") + ": " + tf.getNumeroFattura()
            + " - " + messageBundle.getMessage("AlertMsgMancanoCFPivaSoggetto")
            + tf.getNumeroIntestatario();
          errori.add(new ErroreFattura(errore));
          }
        }
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.