Package it.pdor.contabilita.domain

Examples of it.pdor.contabilita.domain.LibroIVA


      if(!ok){
        alertMsgPopup.setMessage(getMessageBundle().getMessage("AlertMsgSaltoNumeroProtocollo"));
        alertMsgPopup.openPopup();
        ok = true;
      }
      LibroIVA li = new LibroIVA();
      StringBuffer rigaDiStampa = new StringBuffer();
      for(int i = 0 ; i < 118 - precedenteNumeroProtocollo.toString().length() ; i++ )
        rigaDiStampa.append(" ");
      rigaDiStampa.append(precedenteNumeroProtocollo.toString());
      for(int i = 0 ; i < 66 ; i++ )
        rigaDiStampa.append(" ");
      rigaDiStampa.append(getMessageBundle().getMessage("ProtocolloNonUtilizzato"));
      li.setRigaDiStampa(rigaDiStampa.toString());
      li.setImponibile(0d);
      li.setImposta(0d);
      listaCompleta.add(li);
    }
    precedenteNumeroProtocollo++;
    listaCompleta.add(listaStampa.iterator().next());

    int cont = 0;
    for(LibroIVA li : listaStampa){
      if(cont != 0){
        boolean aggiunto = false;
        dataProtocolloCorrente = li.getDataRegistrazione();
        numeroProtocolloCorrente = li.getNumeroProtocollo();
        numeroArticoloCorrente = li.getNumeroArticolo();
        indConto = li.getCtrlInd().trim();
        if("".equals(indConto)) return;
       
        if(dataProtocolloCorrente.before(precedenteDataProtocollo)){
          alertMsgPopup.setMessage(numeroProtocolloCorrente.toString() + getMessageBundle().getMessage("AlertMsgSaltoNumeroProtocolloEData"));
          alertMsgPopup.openPopup();
        }
        if(numeroProtocolloCorrente.longValue() == precedenteNumeroProtocollo.longValue()
            && numeroArticoloCorrente.longValue() != precedenteArticolo.longValue()){
          alertMsgPopup.setMessage(numeroProtocolloCorrente.toString() + getMessageBundle().getMessage("AlertMsgNumeroProtocolloDoppio"));
          alertMsgPopup.openPopup();
        }
        if(numeroProtocolloCorrente.longValue() != precedenteNumeroProtocollo.longValue()
            && numeroProtocolloCorrente.longValue() != precedenteNumeroProtocollo.longValue() + 1){
          if(!ok){
            alertMsgPopup.setMessage(getMessageBundle().getMessage("AlertMsgSaltoNumeroProtocollo"));
            alertMsgPopup.openPopup();
            ok=true;
          }
          precedenteNumeroProtocollo++;
         
          StringBuffer rigaDiStampa = new StringBuffer();
          for(int i = 0 ; i < 118 - precedenteNumeroProtocollo.toString().length() ; i++ )
            rigaDiStampa.append(" ");
          rigaDiStampa.append(precedenteNumeroProtocollo.toString());
          for(int i = 0 ; i < 66 ; i++ )
            rigaDiStampa.append(" ");
          rigaDiStampa.append(getMessageBundle().getMessage("ProtocolloNonUtilizzato"));
          LibroIVA liAdd = new LibroIVA();
          liAdd.setRigaDiStampa(rigaDiStampa.toString());
          liAdd.setImponibile(0d);
          liAdd.setImposta(0d);
          liAdd.setCtrlInd("*");
          listaCompleta.add(liAdd);
          listaCompleta.add(li);
          aggiunto = true;
          continue;
        }
View Full Code Here

TOP

Related Classes of it.pdor.contabilita.domain.LibroIVA

Copyright © 2018 www.massapicom. 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.