bug#12602
dev: Aristides qua: Marcelo git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@87945 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
6d4ea56baf
commit
d8ae011d08
|
@ -47,6 +47,10 @@ public class RelatorioTaxasLinha extends Relatorio {
|
|||
Map<String, Object> parametros = this.relatorio.getParametros();
|
||||
String puntosVentaIds = (String) parametros.get("NUMPUNTOVENTA");
|
||||
|
||||
Boolean isTxEmbarque = (Boolean) parametros.get("IS_TX_EMBARQUE");
|
||||
Boolean isPedagio = (Boolean) parametros.get("IS_SEGURO");
|
||||
Boolean isSeguro = (Boolean) parametros.get("IS_SEGURO");
|
||||
|
||||
lsDadosRelatorio = new ArrayList<RelatorioTaxasLinhaBean>();
|
||||
|
||||
String sql = getSql(puntosVentaIds);
|
||||
|
@ -78,6 +82,7 @@ public class RelatorioTaxasLinha extends Relatorio {
|
|||
|
||||
|
||||
while (rset1.next()) {
|
||||
Boolean isValidado = false;
|
||||
BigDecimal valorIcms;
|
||||
// Se não for pra subtrair o ICMS, realiza o calculo e adiciona o mesmo
|
||||
if(!(Boolean) parametros.get("B_SUBTRAIR_ICMS")){
|
||||
|
@ -157,7 +162,19 @@ public class RelatorioTaxasLinha extends Relatorio {
|
|||
taxasLinha.setPEDAGIO_VENDIDOS(pedagio_vendidos);
|
||||
taxasLinha.setSEGURO_VENDIDOS(seguro_vendidos);
|
||||
|
||||
lsDadosRelatorio.add(taxasLinha);
|
||||
if( importeTaxaEmbarque.doubleValue() > 0 && isTxEmbarque ) {
|
||||
isValidado = true;
|
||||
}else if( importeSeguro.doubleValue() > 0 && isSeguro ) {
|
||||
isValidado = true;
|
||||
}else if( importePedagio.doubleValue() > 0 && isPedagio ) {
|
||||
isValidado = true;
|
||||
}
|
||||
|
||||
if( isValidado ) {
|
||||
lsDadosRelatorio.add(taxasLinha);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
if (lsDadosRelatorio.size() > 0) {
|
||||
|
|
Loading…
Reference in New Issue