Rev 305 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 305 | Rev 320 | ||
|---|---|---|---|
| Line 338... | Line 338... | ||
| 338 | }
|
338 | }
|
| 339 | return false; |
339 | return false; |
| 340 | }
|
340 | }
|
| 341 | 341 | ||
| 342 | @Transient |
342 | @Transient |
| - | 343 | @Deprecated |
|
| 343 | public Boolean comDescontosAcimaDoPermitido() { |
344 | public Boolean comDescontosAcimaDoPermitido() { |
| 344 | if (VerificadorUtil.naoEstaNulo(getValorVarejo()) && VerificadorUtil.naoEstaNulo(getValorVenda())) { |
345 | if (VerificadorUtil.naoEstaNulo(getValorVarejo()) && VerificadorUtil.naoEstaNulo(getValorVenda())) { |
| 345 | if (getProduto().getValorVarejo() < 100) { |
346 | if (getProduto().getValorVarejo() < 100) { |
| 346 | Double valorDesconto = getValorVarejo() - getValorVenda(); |
347 | Double valorDesconto = getValorVarejo() - getValorVenda(); |
| 347 | return valorDesconto > ConstantesSEC.Venda.LIMITE_DESCONTO_ABAIXO_100; |
348 | return valorDesconto > ConstantesSEC.Venda.LIMITE_DESCONTO_ABAIXO_100; |