Subversion Repositories Integrator Subversion

Rev

Rev 485 | Rev 488 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 485 Rev 487
Line 66... Line 66...
66
        private CompraProdutoService compraProdutoService;
66
        private CompraProdutoService compraProdutoService;
67
        private EmissorRelatorioService emissorRelatorioService;
67
        private EmissorRelatorioService emissorRelatorioService;
68
       
68
       
69
        @Inject
69
        @Inject
70
        public NotaFiscalBean(NotaFiscalConsultaPorDemanda lazy, NotaFiscalService notaFiscalService, NotaFiscalProdutoService notaFiscalProdutoService,
70
        public NotaFiscalBean(NotaFiscalConsultaPorDemanda lazy, NotaFiscalService notaFiscalService, NotaFiscalProdutoService notaFiscalProdutoService,
71
                        ProdutoService produtoService, CompraProdutoService compraProdutoService,
-
 
72
                        EmissorRelatorioService emissorRelatorioService) {
-
 
-
 
71
                        ProdutoService produtoService, CompraProdutoService compraProdutoService, EmissorRelatorioService emissorRelatorioService) {
73
                this.lazy = lazy;
72
                this.lazy = lazy;
74
                this.notaFiscalService = notaFiscalService;
73
                this.notaFiscalService = notaFiscalService;
75
                this.notaFiscalProdutoService = notaFiscalProdutoService;
74
                this.notaFiscalProdutoService = notaFiscalProdutoService;
76
                this.produtoService = produtoService;
75
                this.produtoService = produtoService;
77
                this.compraProdutoService = compraProdutoService;
76
                this.compraProdutoService = compraProdutoService;
Line 326... Line 325...
326
       
325
       
327
        public void prepararNotaFiscalRemessa() {
326
        public void prepararNotaFiscalRemessa() {
328
                preCadastrar();
327
                preCadastrar();
329
                getEntidade().setTipoModeloNotaFiscal(TipoModeloNotaFiscal.MODELO_NFE_55.getValor());
328
                getEntidade().setTipoModeloNotaFiscal(TipoModeloNotaFiscal.MODELO_NFE_55.getValor());
330
                getEntidade().setTipoNotaFiscal(TipoNotaFiscal.NFE_REMESSA.getValor());
329
                getEntidade().setTipoNotaFiscal(TipoNotaFiscal.NFE_REMESSA.getValor());
-
 
330
                getEntidade().setTransporte(new Transporte());
331
        }
331
        }
332
       
332
       
333
        public void emitirNotaFiscalRemessa() {
333
        public void emitirNotaFiscalRemessa() {
334
                new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() {
334
                new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() {
335
                        public void execute() {
335
                        public void execute() {