Subversion Repositories Integrator Subversion

Rev

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

Rev 277 Rev 280
Line 639... Line 639...
639
       
639
       
640
        public void adicionarPagamento(final VendaFormaPagamento vendaFormaPagamento) {
640
        public void adicionarPagamento(final VendaFormaPagamento vendaFormaPagamento) {
641
                new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() {
641
                new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() {
642
                        public void execute() {
642
                        public void execute() {
643
                                verificarPagamento(vendaFormaPagamento);
643
                                verificarPagamento(vendaFormaPagamento);
644
                                seParcelaAcima12xAlterarMaquineta(getFormaPagamento());
-
 
-
 
644
//                              seParcelaAcima12xAlterarMaquineta(getFormaPagamento());
645
                                getParametrosVenda().getLancamentosPagamentos().add(vendaFormaPagamento);
645
                                getParametrosVenda().getLancamentosPagamentos().add(vendaFormaPagamento);
646
                                setFormaPagamento(null);
646
                                setFormaPagamento(null);
647
                                setValorPagamento(null);
647
                                setValorPagamento(null);
648
                                setCupomSelecionado(null);
648
                                setCupomSelecionado(null);
649
                                LancadorMensagem.lancarSucesso("PAGAMENTO ADICIONADO COM SUCESSO");
649
                                LancadorMensagem.lancarSucesso("PAGAMENTO ADICIONADO COM SUCESSO");
Line 749... Line 749...
749
                new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() {
749
                new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() {
750
                        public void execute() {
750
                        public void execute() {
751
                                setVendaSelecionada(vendaService.cadastrarVendaPeloPDV(getParametrosVenda()));
751
                                setVendaSelecionada(vendaService.cadastrarVendaPeloPDV(getParametrosVenda()));
752
                                preCarregamento();
752
                                preCarregamento();
753
                                getParametrosVenda().setLoja(getVendaSelecionada().getLoja());
753
                                getParametrosVenda().setLoja(getVendaSelecionada().getLoja());
-
 
754
                                getParametrosVenda().setMaquineta(getVendaSelecionada().getLoja().getMaquineta());
754
                                setEmitirCupom(true);
755
                                setEmitirCupom(true);
755
                                LancadorMensagem.lancarSucesso("VENDA REALIZADA COM SUCESSO");
756
                                LancadorMensagem.lancarSucesso("VENDA REALIZADA COM SUCESSO");
756
                        }
757
                        }
757
                });
758
                });
758
        }
759
        }
Line 770... Line 771...
770
                new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() {
771
                new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() {
771
                        public void execute() {
772
                        public void execute() {
772
                                setVendaSelecionada(vendaService.cadastrarVendaPeloPDV(getParametrosVenda()));
773
                                setVendaSelecionada(vendaService.cadastrarVendaPeloPDV(getParametrosVenda()));
773
                                preCarregamento();
774
                                preCarregamento();
774
                                getParametrosVenda().setLoja(getVendaSelecionada().getLoja());
775
                                getParametrosVenda().setLoja(getVendaSelecionada().getLoja());
-
 
776
                                getParametrosVenda().setMaquineta(getVendaSelecionada().getLoja().getMaquineta());
775
                                getVendaSelecionada().setEmitirComanda(true);
777
                                getVendaSelecionada().setEmitirComanda(true);
776
                                setEmitirCupom(true);
778
                                setEmitirCupom(true);
777
                                LancadorMensagem.lancarSucesso("VENDA REALIZADA COM SUCESSO");
779
                                LancadorMensagem.lancarSucesso("VENDA REALIZADA COM SUCESSO");
778
                        }
780
                        }
779
                });
781
                });