Subversion Repositories Integrator Subversion

Rev

Rev 195 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 195 Rev 286
Line 53... Line 53...
53
                }
53
                }
54
                if (VerificadorUtil.estaNulo(orcamento)) {
54
                if (VerificadorUtil.estaNulo(orcamento)) {
55
                        orcamento = new Orcamento();
55
                        orcamento = new Orcamento();
56
                        orcamento.setCategoria(categoriaOrcado);
56
                        orcamento.setCategoria(categoriaOrcado);
57
                        orcamento.setTipoCategoria(tipoCategoria);
57
                        orcamento.setTipoCategoria(tipoCategoria);
58
                        orcamento.setDataOrcado(DataUtils.getDataAtual());
-
 
-
 
58
                        if (DataUtils.getDataAtual().before(fluxo.getDataInicial())) {
-
 
59
                                orcamento.setDataOrcado(fluxo.getDataInicial());
-
 
60
                        } else {
-
 
61
                                orcamento.setDataOrcado(DataUtils.getDataAtual());
-
 
62
                        }
59
                }
63
                }
60
                return orcamento;
64
                return orcamento;
61
        }
65
        }
62
       
66
       
63
        @Override
67
        @Override