Rev 516 | Rev 616 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 516 | Rev 543 | ||
|---|---|---|---|
| Line 32... | Line 32... | ||
| 32 | private Integer quantidadeMinimaTransferir; |
32 | private Integer quantidadeMinimaTransferir; |
| 33 | private Integer quantidadeVendida; |
33 | private Integer quantidadeVendida; |
| 34 | private Integer quantidadeParaTransferir; |
34 | private Integer quantidadeParaTransferir; |
| 35 | private Integer quantidadeEstoqueAnterior; |
35 | private Integer quantidadeEstoqueAnterior; |
| 36 | private Boolean indicadorSolicitarTransferencia = false; |
36 | private Boolean indicadorSolicitarTransferencia = false; |
| - | 37 | private Boolean retirarTransferenciaAutomatica; |
|
| 37 | 38 | ||
| 38 | public ProdutoLojaDTO() { |
39 | public ProdutoLojaDTO() { |
| 39 | }
|
40 | }
|
| 40 | 41 | ||
| 41 | public static String CONSULTA_DTO_COMPLETA_QUANTIDADE_VENDAS = "e.produto.sequencial, e.produto.codigo, e.produto.descricao, e.loja.sequencial, e.quantidadeEstoque"; // + QUANTIDADE_VENDIDA |
- | |
| 42 | public ProdutoLojaDTO(Long sequencialProduto, String codigoProduto, String descricaoProduto, Long sequencialLoja, Integer quantidadeEstoque, Long quantidadeVendida) { |
- | |
| - | 42 | public static String CONSULTA_DTO_COMPLETA_QUANTIDADE_VENDAS = "e.produto.sequencial, e.produto.codigo, e.produto.descricao, e.loja.sequencial, e.quantidadeEstoque, e.retirarTransferenciaAutomatica"; // + QUANTIDADE_VENDIDA |
|
| - | 43 | public ProdutoLojaDTO(Long sequencialProduto, String codigoProduto, String descricaoProduto, Long sequencialLoja, Integer quantidadeEstoque, Boolean retirarTransferenciaAutomatica, Long quantidadeVendida) { |
|
| 43 | this.produtoDTO = new ProdutoDTO(sequencialProduto, codigoProduto, descricaoProduto); |
44 | this.produtoDTO = new ProdutoDTO(sequencialProduto, codigoProduto, descricaoProduto); |
| 44 | this.lojaDTO = new LojaDTO(sequencialLoja); |
45 | this.lojaDTO = new LojaDTO(sequencialLoja); |
| 45 | this.quantidadeEstoque = quantidadeEstoque; |
46 | this.quantidadeEstoque = quantidadeEstoque; |
| - | 47 | this.retirarTransferenciaAutomatica = retirarTransferenciaAutomatica; |
|
| 46 | if (VerificadorUtil.naoEstaNulo(quantidadeVendida)) { |
48 | if (VerificadorUtil.naoEstaNulo(quantidadeVendida)) { |
| 47 | this.quantidadeVendida = quantidadeVendida.intValue(); |
49 | this.quantidadeVendida = quantidadeVendida.intValue(); |
| 48 | } else { |
50 | } else { |
| 49 | this.quantidadeVendida = 0; |
51 | this.quantidadeVendida = 0; |
| 50 | }
|
52 | }
|
| Line 102... | Line 104... | ||
| 102 | public Boolean getIndicadorSolicitarTransferencia() { |
104 | public Boolean getIndicadorSolicitarTransferencia() { |
| 103 | return indicadorSolicitarTransferencia; |
105 | return indicadorSolicitarTransferencia; |
| 104 | }
|
106 | }
|
| 105 | public void setIndicadorSolicitarTransferencia(Boolean indicadorSolicitarTransferencia) { |
107 | public void setIndicadorSolicitarTransferencia(Boolean indicadorSolicitarTransferencia) { |
| 106 | this.indicadorSolicitarTransferencia = indicadorSolicitarTransferencia; |
108 | this.indicadorSolicitarTransferencia = indicadorSolicitarTransferencia; |
| - | 109 | }
|
|
| - | 110 | ||
| - | 111 | public Boolean getRetirarTransferenciaAutomatica() { |
|
| - | 112 | if (VerificadorUtil.estaNulo(retirarTransferenciaAutomatica)) { |
|
| - | 113 | retirarTransferenciaAutomatica = false; |
|
| - | 114 | }
|
|
| - | 115 | return retirarTransferenciaAutomatica; |
|
| - | 116 | }
|
|
| - | 117 | public void setRetirarTransferenciaAutomatica(Boolean retirarTransferenciaAutomatica) { |
|
| - | 118 | this.retirarTransferenciaAutomatica = retirarTransferenciaAutomatica; |
|
| 107 | }
|
119 | }
|
| 108 | 120 | ||
| 109 | public Long getSequencialDoProduto() { |
121 | public Long getSequencialDoProduto() { |
| 110 | return VerificadorUtil.naoEstaNulo(getProdutoDTO())? getProdutoDTO().getSequencial() : null; |
122 | return VerificadorUtil.naoEstaNulo(getProdutoDTO())? getProdutoDTO().getSequencial() : null; |
| 111 | }
|
123 | }
|