fixes bug#13826

dev: Lucas Silverio
qua: 

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@93527 d1611594-4594-4d17-8e1d-87c2c4800839
master
fabio 2019-05-21 18:15:16 +00:00
parent b1d332e826
commit a1045b94c3
6 changed files with 307 additions and 41 deletions

View File

@ -76,7 +76,7 @@ public class RelatorioOperacionalFinanceiro extends Relatorio {
bean.setDescTramo( rset.getString("descTramo"));
bean.setOutros( rset.getBigDecimal("outros"));
bean.setPedagio( rset.getBigDecimal("pedagio"));
bean.setQtde( rset.getString("qtde"));
bean.setQtde( rset.getInt("qtde"));
bean.setSeguro( rset.getBigDecimal("seguro"));
bean.setSentido( rset.getString("sentido"));
bean.setTarifa( rset.getBigDecimal("tarifa"));
@ -120,7 +120,7 @@ public class RelatorioOperacionalFinanceiro extends Relatorio {
sql.append(" SELECT ");
sql.append(" tramoId, ");
sql.append(" DESCTRAMO, ");
sql.append(" origem || ' x ' || destino as DESCTRAMO, ");
sql.append(" DESCRUTA, ");
sql.append(" count(caja_id) as qtde, ");
sql.append(" SUM(tarifa) as tarifa, ");
@ -134,7 +134,8 @@ public class RelatorioOperacionalFinanceiro extends Relatorio {
sql.append(" SELECT ");
sql.append(" ");
sql.append(" t.TRAMO_ID as tramoId, ");
sql.append(" t.DESCTRAMO, ");
sql.append(" ORI.DESCPARADA as origem, ");
sql.append(" DES.DESCPARADA as destino, ");
sql.append(" r.DESCRUTA, ");
sql.append(" c.TIPOVENTA_ID as tipoVenda, ");
sql.append(" c.caja_id, ");
@ -205,6 +206,8 @@ public class RelatorioOperacionalFinanceiro extends Relatorio {
sql.append(" LEFT JOIN CORRIDA cor ON c.CORRIDA_ID = cor.CORRIDA_ID and cor.FECCORRIDA = c.FECCORRIDA and cor.ACTIVO = 1 ");
sql.append(" LEFT JOIN CORRIDA_TRAMO ct ON ct.CORRIDA_ID = cor.CORRIDA_ID and ct.FECCORRIDA = cor.FECCORRIDA and ct.ACTIVO = 1 ");
sql.append(" LEFT JOIN TRAMO t ON t.TRAMO_ID = ct.TRAMO_ID and t.ACTIVO = 1 ");
sql.append(" LEFT JOIN parada ORI ON ORI.parada_id = t.origen_id ");
sql.append(" LEFT JOIN parada DES ON DES.parada_id = t.destino_id ");
sql.append(" where c.ACTIVO = 1 ");
sql.append(" AND c.FECHORVENTA BETWEEN :fecInicioVenda AND :fecFinalVenda ");
@ -223,11 +226,12 @@ public class RelatorioOperacionalFinanceiro extends Relatorio {
sql.append(" ) dados ");
sql.append(" GROUP BY ");
sql.append(" tramoId, ");
sql.append(" DESCTRAMO, ");
sql.append(" origem, ");
sql.append(" destino, ");
sql.append(" DESCRUTA, ");
sql.append(" sentido, ");
sql.append(" tipo ");
sql.append(" ORDER BY DESCRUTA, DESCTRAMO, tipo ");
sql.append(" ORDER BY DESCRUTA, origem, destino, tipo ");
return sql.toString();
}

View File

@ -15,6 +15,8 @@ header.empresa=Empresa\:
header.periodo.viagem=Período Viagem\:
header.periodo.venda=Período Venda\:
header.tipopassagem=Tipo Passagem\:
header.filtro.total.trecho=Total Trecho:
header.filtro.total.linha=Total Linha:
#Labels detail

View File

@ -15,6 +15,8 @@ header.empresa=Empresa\:
header.periodo.viagem=Período Viagem\:
header.periodo.venda=Período Venda\:
header.tipopassagem=Tipo Passagem\:
header.filtro.total.trecho=Total Trecho:
header.filtro.total.linha=Total Linha:
#Labels detail
@ -28,3 +30,4 @@ detail.seguro=Seguro
detail.taxaembarque=Taxa Embarque
detail.outros=Outros
detail.valortotal=Valor Total
detail.valortotal=Valor Total

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="RelatorioOperacionalFinanceiro" pageWidth="950" pageHeight="595" orientation="Landscape" columnWidth="930" leftMargin="10" rightMargin="10" topMargin="20" bottomMargin="20" uuid="3ee05e26-199e-4ad2-a96b-dd421627aceb">
<property name="ireport.zoom" value="1.2396694214876045"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<property name="ireport.zoom" value="1.3636363636363655"/>
<property name="ireport.x" value="295"/>
<property name="ireport.y" value="106"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="pageHeader"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/>
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/>
@ -17,7 +17,7 @@
<field name="tramoID" class="java.lang.String"/>
<field name="descTramo" class="java.lang.String"/>
<field name="descRuta" class="java.lang.String"/>
<field name="qtde" class="java.lang.String"/>
<field name="qtde" class="java.lang.Integer"/>
<field name="tarifa" class="java.math.BigDecimal"/>
<field name="taxaembarque" class="java.math.BigDecimal"/>
<field name="pedagio" class="java.math.BigDecimal"/>
@ -25,13 +25,86 @@
<field name="seguro" class="java.math.BigDecimal"/>
<field name="sentido" class="java.lang.String"/>
<field name="tipo" class="java.lang.String"/>
<variable name="total" class="java.math.BigDecimal" resetType="Group" resetGroup="groupTrecho">
<variable name="totalTrecho" class="java.math.BigDecimal" resetType="Group" resetGroup="groupTrecho" calculation="Sum">
<variableExpression><![CDATA[$F{tipo}.equals("CANCELADO")?
($F{tarifa}
.add( $F{taxaembarque} )
.add( $F{pedagio} )
.add( $F{outros} )
.add( $F{seguro} )).multiply( new java.math.BigDecimal("-1") )
:
($F{tarifa}
.add( $F{taxaembarque} )
.add( $F{pedagio} )
.add( $F{outros} )
.add( $F{seguro} ))]]></variableExpression>
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
</variable>
<variable name="totalTrechoQte" class="java.lang.Integer" resetType="Group" resetGroup="groupTrecho" calculation="Sum">
<variableExpression><![CDATA[$F{tipo}.equals("CANCELADO")?$F{qtde}*-1:$F{qtde}]]></variableExpression>
</variable>
<variable name="totalTrechoTarifa" class="java.math.BigDecimal" resetType="Group" resetGroup="groupTrecho" calculation="Sum">
<variableExpression><![CDATA[$F{tipo}.equals("CANCELADO")?$F{tarifa}.multiply( new java.math.BigDecimal("-1") ):$F{tarifa}]]></variableExpression>
</variable>
<variable name="totalTrechoTaxaEmbarque" class="java.math.BigDecimal" resetType="Group" resetGroup="groupTrecho" calculation="Sum">
<variableExpression><![CDATA[$F{tipo}.equals("CANCELADO")?$F{taxaembarque}.multiply( new java.math.BigDecimal("-1") ):$F{taxaembarque}]]></variableExpression>
</variable>
<variable name="totalTrechoPedagio" class="java.math.BigDecimal" resetType="Group" resetGroup="groupTrecho" calculation="Sum">
<variableExpression><![CDATA[$F{tipo}.equals("CANCELADO")?$F{pedagio}.multiply( new java.math.BigDecimal("-1") ):$F{pedagio}]]></variableExpression>
</variable>
<variable name="totalTrechoOutros" class="java.math.BigDecimal" resetType="Group" resetGroup="groupTrecho" calculation="Sum">
<variableExpression><![CDATA[$F{tipo}.equals("CANCELADO")?$F{outros}.multiply( new java.math.BigDecimal("-1") ):$F{outros}]]></variableExpression>
</variable>
<variable name="totalTrechoSeguro" class="java.math.BigDecimal" resetType="Group" resetGroup="groupTrecho" calculation="Sum">
<variableExpression><![CDATA[$F{tipo}.equals("CANCELADO")?$F{seguro}.multiply( new java.math.BigDecimal("-1") ):$F{seguro}]]></variableExpression>
</variable>
<variable name="totalTrechoGeral" class="java.math.BigDecimal" resetType="Group" resetGroup="groupTrecho">
<variableExpression><![CDATA[$V{totalTrecho}]]></variableExpression>
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
</variable>
<variable name="totalLinha" class="java.math.BigDecimal" resetType="Group" resetGroup="groupLinha" calculation="Sum">
<variableExpression><![CDATA[$F{tipo}.equals("CANCELADO")?
($F{tarifa}
.add( $F{taxaembarque} )
.add( $F{pedagio} )
.add( $F{outros} )
.add( $F{seguro} )).multiply( new java.math.BigDecimal("-1") )
:
($F{tarifa}
.add( $F{taxaembarque} )
.add( $F{pedagio} )
.add( $F{outros} )
.add( $F{seguro} ))]]></variableExpression>
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
</variable>
<variable name="totalLinhaQte" class="java.lang.Integer" resetType="Group" resetGroup="groupLinha" calculation="Sum">
<variableExpression><![CDATA[$F{tipo}.equals("CANCELADO")?$F{qtde}*-1:$F{qtde}]]></variableExpression>
</variable>
<variable name="totalLinhaTarifa" class="java.math.BigDecimal" resetType="Group" resetGroup="groupLinha" calculation="Sum">
<variableExpression><![CDATA[$F{tipo}.equals("CANCELADO")?$F{tarifa}.multiply( new java.math.BigDecimal("-1") ):$F{tarifa}]]></variableExpression>
</variable>
<variable name="totalLinhaTaxaEmbarque" class="java.math.BigDecimal" resetType="Group" resetGroup="groupLinha" calculation="Sum">
<variableExpression><![CDATA[$F{tipo}.equals("CANCELADO")?$F{taxaembarque}.multiply( new java.math.BigDecimal("-1") ):$F{taxaembarque}]]></variableExpression>
</variable>
<variable name="totalLinhaPedagio" class="java.math.BigDecimal" resetType="Group" resetGroup="groupLinha" calculation="Sum">
<variableExpression><![CDATA[$F{tipo}.equals("CANCELADO")?$F{pedagio}.multiply( new java.math.BigDecimal("-1") ):$F{pedagio}]]></variableExpression>
</variable>
<variable name="totalLinhaOutros" class="java.math.BigDecimal" resetType="Group" resetGroup="groupLinha" calculation="Sum">
<variableExpression><![CDATA[$F{tipo}.equals("CANCELADO")?$F{outros}.multiply( new java.math.BigDecimal("-1") ):$F{outros}]]></variableExpression>
</variable>
<variable name="totalLinhaSeguro" class="java.math.BigDecimal" resetType="Group" resetGroup="groupLinha" calculation="Sum">
<variableExpression><![CDATA[$F{tipo}.equals("CANCELADO")?$F{seguro}.multiply( new java.math.BigDecimal("-1") ):$F{seguro}]]></variableExpression>
</variable>
<variable name="totalLinhaGeral" class="java.math.BigDecimal" resetType="Group" resetGroup="groupLinha">
<variableExpression><![CDATA[$V{totalLinha}]]></variableExpression>
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
</variable>
<variable name="soma" class="java.math.BigDecimal" resetType="None">
<variableExpression><![CDATA[$F{tarifa}
.add( $F{taxaembarque} )
.add( $F{pedagio} )
.add( $F{outros} )
.add( $F{seguro} )]]></variableExpression>
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
</variable>
<group name="groupLinha">
<groupExpression><![CDATA[$F{descRuta}]]></groupExpression>
@ -63,6 +136,98 @@
</textField>
</band>
</groupHeader>
<groupFooter>
<band height="20">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="240" height="20" uuid="80a039a6-f791-4e3a-be58-5154fc917d04"/>
<box leftPadding="0">
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$R{header.filtro.total.linha}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00;-###0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="417" y="0" width="126" height="20" uuid="7ac053bb-1883-4292-ad2c-020d22a4d35e"/>
<box>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$V{totalLinhaPedagio}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00;-###0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="841" y="0" width="89" height="20" uuid="338a967b-af06-4c03-809c-2c0d70a3b95f"/>
<box>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$V{totalLinhaGeral}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00;-###0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="543" y="0" width="126" height="20" uuid="7322a004-1807-46d6-acd3-fabdf1b54df7"/>
<box>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$V{totalLinhaSeguro}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="240" y="0" width="91" height="20" uuid="8d889f0e-3a61-4d6f-9786-460c8c334fa3"/>
<box>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$V{totalLinhaQte}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00;-###0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="331" y="0" width="86" height="20" uuid="40c07af6-4165-4761-ac70-bc145d0f4399"/>
<box>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$V{totalLinhaTarifa}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00;-###0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="669" y="0" width="86" height="20" uuid="ab046c7d-7177-4973-a564-829ea3d808e3"/>
<box>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$V{totalLinhaTaxaEmbarque}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00;-###0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="755" y="0" width="86" height="20" uuid="1eacb9ad-448a-4ffe-9ca5-dbd980e47d56"/>
<box>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$V{totalLinhaOutros}]]></textFieldExpression>
</textField>
</band>
</groupFooter>
</group>
<group name="groupTrecho">
<groupExpression><![CDATA[$F{tramoID}]]></groupExpression>
@ -95,7 +260,7 @@
</band>
<band height="20">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="332" y="0" width="86" height="20" uuid="f1fb4c10-0b23-48a3-ab44-ec9423860a3a"/>
<reportElement stretchType="RelativeToBandHeight" x="331" y="0" width="86" height="20" uuid="f1fb4c10-0b23-48a3-ab44-ec9423860a3a"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.0"/>
@ -107,7 +272,7 @@
<textFieldExpression><![CDATA[$R{detail.tarifa}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="1" y="0" width="240" height="20" uuid="aa6e1262-d10a-466f-9b10-736d01b43c08"/>
<reportElement stretchType="RelativeToBandHeight" x="0" y="0" width="240" height="20" uuid="aa6e1262-d10a-466f-9b10-736d01b43c08"/>
<box leftPadding="20">
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.0"/>
@ -119,7 +284,7 @@
<textFieldExpression><![CDATA[$R{detail.tipo}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="241" y="0" width="91" height="20" uuid="9ef59886-6218-4cf5-8926-f7f2e1e95cc6"/>
<reportElement stretchType="RelativeToBandHeight" x="240" y="0" width="91" height="20" uuid="9ef59886-6218-4cf5-8926-f7f2e1e95cc6"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.0"/>
@ -131,7 +296,7 @@
<textFieldExpression><![CDATA[$R{detail.quantidade}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="756" y="0" width="86" height="20" uuid="86f8576e-d934-4f0d-9b87-4a40bef953ab"/>
<reportElement stretchType="RelativeToBandHeight" x="755" y="0" width="86" height="20" uuid="86f8576e-d934-4f0d-9b87-4a40bef953ab"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.0"/>
@ -143,7 +308,7 @@
<textFieldExpression><![CDATA[$R{detail.outros}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="418" y="0" width="126" height="20" uuid="a1aab05d-496e-4fe5-9c2e-760b7592a7fd"/>
<reportElement stretchType="RelativeToBandHeight" x="417" y="0" width="126" height="20" uuid="a1aab05d-496e-4fe5-9c2e-760b7592a7fd"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.0"/>
@ -155,7 +320,7 @@
<textFieldExpression><![CDATA[$R{detail.pedagio}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="544" y="0" width="126" height="20" uuid="7778d2ac-5f98-4955-9bbf-e474a1f16dad"/>
<reportElement stretchType="RelativeToBandHeight" x="543" y="0" width="126" height="20" uuid="7778d2ac-5f98-4955-9bbf-e474a1f16dad"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.0"/>
@ -167,7 +332,7 @@
<textFieldExpression><![CDATA[$R{detail.seguro}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="842" y="0" width="88" height="20" uuid="3eb6f2e7-2aad-4354-8cff-3938c90800ee"/>
<reportElement stretchType="RelativeToBandHeight" x="841" y="0" width="89" height="20" uuid="3eb6f2e7-2aad-4354-8cff-3938c90800ee"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.0"/>
@ -179,7 +344,7 @@
<textFieldExpression><![CDATA[$R{detail.valortotal}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="670" y="0" width="86" height="20" uuid="8aea1354-22f0-45a4-9382-21623ef9a45d"/>
<reportElement stretchType="RelativeToBandHeight" x="669" y="0" width="86" height="20" uuid="8aea1354-22f0-45a4-9382-21623ef9a45d"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.0"/>
@ -192,6 +357,98 @@
</textField>
</band>
</groupHeader>
<groupFooter>
<band height="20">
<textField isStretchWithOverflow="true" pattern="###0.00;-###0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="417" y="0" width="126" height="20" uuid="56a43e72-3b34-492f-814b-d4d91af9827a"/>
<box>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$V{totalTrechoPedagio}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00;-###0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="543" y="0" width="126" height="20" uuid="6a3f6820-eef8-4c4a-8fe8-99dffd4c0387"/>
<box>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$V{totalTrechoSeguro}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00;-###0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="669" y="0" width="86" height="20" uuid="6824eef6-a2aa-4fa8-94b0-51b752ed991b"/>
<box>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$V{totalTrechoTaxaEmbarque}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00;-###0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="755" y="0" width="86" height="20" uuid="701d1919-2074-4e36-9334-4b9867268fd7"/>
<box>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$V{totalTrechoOutros}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00;-###0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="331" y="0" width="86" height="20" uuid="16f4cb28-d52a-4906-87fc-119866b0216e"/>
<box>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$V{totalTrechoTarifa}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="240" y="0" width="91" height="20" uuid="51962a23-3050-4c64-8ef4-5200e9f89b24"/>
<box>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$V{totalTrechoQte}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00;-###0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="841" y="0" width="89" height="20" uuid="30f159f7-6b91-4978-bb6f-f9bdee08c0b1"/>
<box>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$V{totalTrechoGeral}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="240" height="20" uuid="c1d96c2e-a62c-4ffd-a9db-5a29ca226468"/>
<box leftPadding="10">
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$R{header.filtro.total.trecho}]]></textFieldExpression>
</textField>
</band>
</groupFooter>
</group>
<pageHeader>
<band height="40">
@ -266,8 +523,8 @@
</columnHeader>
<detail>
<band height="20" splitType="Prevent">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="418" y="0" width="126" height="20" uuid="e91ddf3d-5ee2-42d3-b8d4-01c92a2f462a"/>
<textField isStretchWithOverflow="true" pattern="###0.00;-###0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="417" y="0" width="126" height="20" uuid="e91ddf3d-5ee2-42d3-b8d4-01c92a2f462a"/>
<box>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
@ -277,8 +534,8 @@
</textElement>
<textFieldExpression><![CDATA[$F{pedagio}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="544" y="0" width="126" height="20" uuid="d9ec1d06-efc7-4a65-96a2-e88e89f4ca91"/>
<textField isStretchWithOverflow="true" pattern="###0.00;-###0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="543" y="0" width="126" height="20" uuid="d9ec1d06-efc7-4a65-96a2-e88e89f4ca91"/>
<box>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
@ -289,7 +546,7 @@
<textFieldExpression><![CDATA[$F{seguro}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="1" y="0" width="240" height="20" uuid="aeca5093-6645-4f7d-814f-48abec2773bc"/>
<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="240" height="20" uuid="aeca5093-6645-4f7d-814f-48abec2773bc"/>
<box leftPadding="20">
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
@ -299,8 +556,8 @@
</textElement>
<textFieldExpression><![CDATA[$F{tipo}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="241" y="0" width="91" height="20" uuid="6a5746f1-e112-4ea2-ac52-f3c4bf6f7c96"/>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="240" y="0" width="91" height="20" uuid="6a5746f1-e112-4ea2-ac52-f3c4bf6f7c96"/>
<box>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
@ -310,8 +567,8 @@
</textElement>
<textFieldExpression><![CDATA[$F{qtde}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="332" y="0" width="86" height="20" uuid="1ae38af7-3815-4fc0-ba8c-a87f6a26914a"/>
<textField isStretchWithOverflow="true" pattern="###0.00;-###0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="331" y="0" width="86" height="20" uuid="1ae38af7-3815-4fc0-ba8c-a87f6a26914a"/>
<box>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
@ -321,8 +578,8 @@
</textElement>
<textFieldExpression><![CDATA[$F{tarifa}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="756" y="0" width="86" height="20" uuid="bde0e80b-872a-4b26-b882-83efc01c25b7"/>
<textField isStretchWithOverflow="true" pattern="###0.00;-###0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="755" y="0" width="86" height="20" uuid="bde0e80b-872a-4b26-b882-83efc01c25b7"/>
<box>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
@ -332,8 +589,8 @@
</textElement>
<textFieldExpression><![CDATA[$F{outros}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="670" y="0" width="86" height="20" uuid="7e10a3dc-7e63-49cf-ab5a-87bd2e7aa213"/>
<textField isStretchWithOverflow="true" pattern="###0.00;-###0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="669" y="0" width="86" height="20" uuid="7e10a3dc-7e63-49cf-ab5a-87bd2e7aa213"/>
<box>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
@ -343,8 +600,8 @@
</textElement>
<textFieldExpression><![CDATA[$F{taxaembarque}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="842" y="0" width="89" height="20" uuid="e4dc6a7f-049d-45e1-9c6d-231303fb288c"/>
<textField isStretchWithOverflow="true" pattern="###0.00;-###0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="841" y="0" width="89" height="20" uuid="e4dc6a7f-049d-45e1-9c6d-231303fb288c"/>
<box>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
@ -352,14 +609,14 @@
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$V{total}]]></textFieldExpression>
<textFieldExpression><![CDATA[$V{soma}]]></textFieldExpression>
</textField>
</band>
</detail>
<noData>
<band height="22">
<textField>
<reportElement x="1" y="0" width="930" height="20" uuid="254c9278-71b2-4ffa-926c-5b0055e02cda"/>
<reportElement x="1" y="0" width="930" height="22" uuid="254c9278-71b2-4ffa-926c-5b0055e02cda"/>
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
</textField>
</band>

View File

@ -7,7 +7,7 @@ public class RelatorioOperacionalFinanceiroBean {
private String tramoID;
private String descTramo;
private String descRuta;
private String qtde;
private Integer qtde;
private BigDecimal tarifa;
private BigDecimal taxaembarque;
private BigDecimal pedagio;
@ -40,11 +40,11 @@ public class RelatorioOperacionalFinanceiroBean {
this.descRuta = descRuta;
}
public String getQtde() {
public Integer getQtde() {
return qtde;
}
public void setQtde(String qtde) {
public void setQtde(Integer qtde) {
this.qtde = qtde;
}