Rev 474 | Rev 485 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 474 | Rev 480 | ||
|---|---|---|---|
| Line 325... | Line 325... | ||
| 325 | public String getTextoXmlEvento() { |
325 | public String getTextoXmlEvento() { |
| 326 | return textoXmlEvento; |
326 | return textoXmlEvento; |
| 327 | }
|
327 | }
|
| 328 | public void setTextoXmlEvento(String textoXmlEvento) { |
328 | public void setTextoXmlEvento(String textoXmlEvento) { |
| 329 | this.textoXmlEvento = textoXmlEvento; |
329 | this.textoXmlEvento = textoXmlEvento; |
| - | 330 | }
|
|
| - | 331 | ||
| - | 332 | @Column(name="val_frete") |
|
| - | 333 | public Double getValorFrete() { |
|
| - | 334 | return valorFrete; |
|
| - | 335 | }
|
|
| - | 336 | public void setValorFrete(Double valorFrete) { |
|
| - | 337 | this.valorFrete = valorFrete; |
|
| - | 338 | }
|
|
| - | 339 | ||
| - | 340 | @Column(name="val_seguro") |
|
| - | 341 | public Double getValorSeguro() { |
|
| - | 342 | return valorSeguro; |
|
| - | 343 | }
|
|
| - | 344 | public void setValorSeguro(Double valorSeguro) { |
|
| - | 345 | this.valorSeguro = valorSeguro; |
|
| - | 346 | }
|
|
| - | 347 | ||
| - | 348 | @Column(name="val_desconto") |
|
| - | 349 | public Double getValorDesconto() { |
|
| - | 350 | return valorDesconto; |
|
| - | 351 | }
|
|
| - | 352 | public void setValorDesconto(Double valorDesconto) { |
|
| - | 353 | this.valorDesconto = valorDesconto; |
|
| - | 354 | }
|
|
| - | 355 | ||
| - | 356 | @Column(name="val_outrasdespesas") |
|
| - | 357 | public Double getOutrasDespesas() { |
|
| - | 358 | return outrasDespesas; |
|
| - | 359 | }
|
|
| - | 360 | public void setOutrasDespesas(Double outrasDespesas) { |
|
| - | 361 | this.outrasDespesas = outrasDespesas; |
|
| 330 | }
|
362 | }
|
| 331 | 363 | ||
| 332 | @OneToOne |
364 | @OneToOne |
| 333 | @JoinColumn(name="seq_transporte", referencedColumnName="seq_transporte", insertable=true, updatable=true, nullable=true) |
365 | @JoinColumn(name="seq_transporte", referencedColumnName="seq_transporte", insertable=true, updatable=true, nullable=true) |
| 334 | public Transporte getTransporte() { |
366 | public Transporte getTransporte() { |
| Line 476... | Line 508... | ||
| 476 | }
|
508 | }
|
| 477 | }
|
509 | }
|
| 478 | return 0.0; |
510 | return 0.0; |
| 479 | }
|
511 | }
|
| 480 | 512 | ||
| 481 | /*
|
- | |
| 482 | @Transient
|
513 | @Transient |
| 483 | public Double getTotalValorProdutosRemessa() {
|
- | |
| - | 514 | public Double getTotalValorProdutosVinculados() { |
|
| 484 | Double total = new Double(0.0);
|
515 | Double total = new Double(0.0); |
| 485 | if (VerificadorUtil.naoEstaNuloOuVazio(getListaNFRemessaProdutos())) {
|
- | |
| 486 | for (NotaFiscalProduto notaFiscalProduto : getListaNFRemessaProdutos()) {
|
- | |
| 487 | total = total + notaFiscalProduto.getProduto().getValorCompra() * notaFiscalProduto.getQuantidade();
|
- | |
| - | 516 | if (VerificadorUtil.naoEstaNuloOuVazio(getListaProdutosVinculadosDTO())) { |
|
| - | 517 | for (NotaFiscalProdutoDTO notaFiscalProdutoDTO : getListaProdutosVinculadosDTO()) { |
|
| - | 518 | total = total + notaFiscalProdutoDTO.getCompraProdutoDTO().getValorCompra() * notaFiscalProdutoDTO.getQuantidade(); |
|
| 488 | }
|
519 | }
|
| 489 | }
|
520 | }
|
| 490 | return total;
|
521 | return total; |
| 491 | }
|
522 | }
|
| 492 | */
|
- | |
| - | 523 | ||
| 493 | 524 | ||
| 494 | @Transient |
525 | @Transient |
| 495 | public Boolean ehNotaFiscalDeRemessa() { |
526 | public Boolean ehNotaFiscalDeRemessa() { |
| 496 | return VerificadorUtil.naoEstaNulo(getTipoNotaFiscal()) ? getTipoNotaFiscal().equals(TipoNotaFiscal.NFE_REMESSA.getValor()) : false; |
527 | return VerificadorUtil.naoEstaNulo(getTipoNotaFiscal()) ? getTipoNotaFiscal().equals(TipoNotaFiscal.NFE_REMESSA.getValor()) : false; |
| 497 | }
|
528 | }
|