Rev 195 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 195 | Rev 545 | ||
|---|---|---|---|
| Line 134... | Line 134... | ||
| 134 | 134 | ||
| 135 | Integer notasRemessas = 0; |
135 | Integer notasRemessas = 0; |
| 136 | Double valorTotalRemessas = 0.0; |
136 | Double valorTotalRemessas = 0.0; |
| 137 | for (NotaFiscal nf : notasFiscais) { |
137 | for (NotaFiscal nf : notasFiscais) { |
| 138 | if (VerificadorUtil.naoEstaNulo(nf.getValorNotaFiscal())) { |
138 | if (VerificadorUtil.naoEstaNulo(nf.getValorNotaFiscal())) { |
| 139 | if (nf.getTipoNotaFiscal().equals(TipoNotaFiscal.NFE_REMESSA.getValor())) { |
- | |
| - | 139 | if (nf.getTipoNotaFiscal().equals(TipoNotaFiscal.NFE_REMESSA_SAIDA.getValor())) { |
|
| 140 | notasRemessas++;
|
140 | notasRemessas++;
|
| 141 | valorTotalRemessas = valorTotalRemessas + nf.getValorNotaFiscal(); |
141 | valorTotalRemessas = valorTotalRemessas + nf.getValorNotaFiscal(); |
| 142 | }
|
142 | }
|
| 143 | }
|
143 | }
|
| 144 | }
|
144 | }
|
| Line 215... | Line 215... | ||
| 215 | 215 | ||
| 216 | public StreamedContent downloadXmlsNotasFiscaisRemessa() { |
216 | public StreamedContent downloadXmlsNotasFiscaisRemessa() { |
| 217 | return new VerificadorLancamentoException().verificarLancamentoException(new CommandRelatorioStreamedContent() { |
217 | return new VerificadorLancamentoException().verificarLancamentoException(new CommandRelatorioStreamedContent() { |
| 218 | @Override |
218 | @Override |
| 219 | public StreamedContent execute() { |
219 | public StreamedContent execute() { |
| 220 | return notaFiscalService.downloadXmls(getEntidade().getVigencia().getDataInicio(), getEntidade().getVigencia().getDataFim(), TipoNotaFiscal.NFE_REMESSA.getValor(), null); |
- | |
| - | 220 | return notaFiscalService.downloadXmls(getEntidade().getVigencia().getDataInicio(), getEntidade().getVigencia().getDataFim(), TipoNotaFiscal.NFE_REMESSA_SAIDA.getValor(), null); |
|
| 221 | }
|
221 | }
|
| 222 | }); |
222 | }); |
| 223 | }
|
223 | }
|
| 224 | 224 | ||
| 225 | }
|
225 | }
|