fixed bug #8369 - correção campo documento e agrupamento empresa

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@64917 d1611594-4594-4d17-8e1d-87c2c4800839
master
frederico 2017-01-13 11:51:45 +00:00
parent 0d8366c523
commit 84521416a9
5 changed files with 110 additions and 76 deletions

View File

@ -73,7 +73,8 @@ public class RelatorioDescontos extends Relatorio {
singleData.put("nomepassageiro", resultSet.getString("nomepassageiro"));
singleData.put("documento", resultSet.getString("documento"));
singleData.put("bilheteiro", resultSet.getString("bilheteiro"));
singleData.put("empresacorrida", resultSet.getString("empresacorrida"));
singleData.put("empresacorrida", resultSet.getInt("empresacorrida"));
singleData.put("empresa", resultSet.getString("empresa"));
dadosRelatorio.add(singleData);
}
@ -97,9 +98,10 @@ public class RelatorioDescontos extends Relatorio {
+ " BOL.IMPORTETAXAEMBARQUE AS tut, "
+ " BOL.IMPORTEPEDAGIO AS pedagio, "
+ " BOL.NOMBPASAJERO AS nomepassageiro, "
+ " BOL.NUMIDENTIFICACION AS documento,"
+ " BOL.DESCNUMDOC AS documento,"
+ " U.CVEUSUARIO AS bilheteiro, "
+ " BOL.EMPRESACORRIDA_ID AS empresacorrida"
+ " BOL.EMPRESACORRIDA_ID AS empresacorrida, "
+ " EMP.NOMBEMPRESA AS empresa "
+ " FROM BOLETO BOL "
+ " JOIN CONVENIO_DET CONV_D ON CONV_D.CONVENIODET_ID = BOL.CONVENIODET_ID "
+ " JOIN CONVENIO CONV ON CONV.CONVENIO_ID = CONV_D.CONVENIO_ID "
@ -107,6 +109,7 @@ public class RelatorioDescontos extends Relatorio {
+ " JOIN PARADA ORIG ON ORIG.PARADA_ID = BOL.ORIGEN_ID "
+ " JOIN PARADA DEST ON DEST.PARADA_ID = BOL.DESTINO_ID "
+ " INNER JOIN USUARIO U ON U.USUARIO_ID = BOL.USUARIO_ID "
+ " JOIN EMPRESA EMP ON EMP.EMPRESA_ID = BOL.EMPRESACORRIDA_ID "
+ " WHERE "
+ " BOL.INDSTATUSOPERACION = 'F' "
+ " AND BOL.ACTIVO = 1 "
@ -122,13 +125,14 @@ public class RelatorioDescontos extends Relatorio {
if (codconvenio != null && !codconvenio.isEmpty()) {
query += " AND (CONV.CVECONVENIO = :codconvenio)";
}
query += " GROUP BY (CONV.CVECONVENIO || ' - ' || CONV.DESCCONVENIO), BOL.EMPRESACORRIDA_ID, PUNT_V.NOMBPUNTOVENTA, ";
query += " BOL.FECHORVENTA, BOL.FECHORVIAJE, BOL.CORRIDA_ID, ORIG.CVEPARADA, DEST.CVEPARADA, BOL.PRECIOPAGADO, " ;
query += " BOL.IMPORTETAXAEMBARQUE, BOL.IMPORTEPEDAGIO, BOL.NOMBPASAJERO, BOL.NUMIDENTIFICACION, U.CVEUSUARIO " ;
query += " ORDER BY (CONV.CVECONVENIO || ' - ' || CONV.DESCCONVENIO), BOL.EMPRESACORRIDA_ID, PUNT_V.NOMBPUNTOVENTA, ";
query += " BOL.FECHORVENTA, BOL.FECHORVIAJE, BOL.CORRIDA_ID, ORIG.CVEPARADA, DEST.CVEPARADA, BOL.PRECIOPAGADO, " ;
query += " BOL.IMPORTETAXAEMBARQUE, BOL.IMPORTEPEDAGIO, BOL.NOMBPASAJERO, BOL.NUMIDENTIFICACION, U.CVEUSUARIO " ;
//
// query += " GROUP BY (CONV.CVECONVENIO || ' - ' || CONV.DESCCONVENIO), BOL.EMPRESACORRIDA_ID, PUNT_V.NOMBPUNTOVENTA, ";
// query += " BOL.FECHORVENTA, BOL.FECHORVIAJE, BOL.CORRIDA_ID, ORIG.CVEPARADA, DEST.CVEPARADA, BOL.PRECIOPAGADO, " ;
// query += " BOL.IMPORTETAXAEMBARQUE, BOL.IMPORTEPEDAGIO, BOL.NOMBPASAJERO, BOL.NUMIDENTIFICACION, U.CVEUSUARIO " ;
query += " ORDER BY BOL.EMPRESACORRIDA_ID, (CONV.CVECONVENIO || ' - ' || CONV.DESCCONVENIO)";
// " BOL.EMPRESACORRIDA_ID, PUNT_V.NOMBPUNTOVENTA, ";
// query += " BOL.FECHORVENTA, BOL.FECHORVIAJE, BOL.CORRIDA_ID, ORIG.CVEPARADA, DEST.CVEPARADA, BOL.PRECIOPAGADO, " ;
// query += " BOL.IMPORTETAXAEMBARQUE, BOL.IMPORTEPEDAGIO, BOL.NOMBPASAJERO, BOL.NUMIDENTIFICACION, U.CVEUSUARIO " ;
return query;

View File

@ -6,6 +6,7 @@ cabecalho.dataHora = Data/Hora:
cabecalho.impressorPor = Impresso por:
cabecalho.pagina = Página
cabecalho.de = de
label.empresa = Empresa
label.codigo = Código:
label.nomeAgencia = Agc. Emissora
label.dataEmissao = Data Emissão

View File

@ -6,6 +6,7 @@ cabecalho.dataHora = Data/Hora:
cabecalho.impressorPor = Impresso por:
cabecalho.pagina = Página
cabecalho.de = de
label.empresa = Empresa
label.codigo = Código:
label.nomeAgencia = Agc. Emissora
label.dataEmissao = Data Emissão

View File

@ -1,7 +1,7 @@
<?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="RelatorioDescontos" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="6d46a2d2-555e-4b7f-944f-b25c672e5feb">
<property name="ireport.zoom" value="1.2396694214876032"/>
<property name="ireport.x" value="25"/>
<property name="ireport.zoom" value="1.3636363636363658"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<parameter name="fecVentaInicial" class="java.util.Date"/>
<parameter name="fecVentaFinal" class="java.util.Date"/>
@ -22,7 +22,8 @@
<field name="nomepassageiro" class="java.lang.String"/>
<field name="documento" class="java.lang.String"/>
<field name="bilheteiro" class="java.lang.String"/>
<field name="empresacorrida" class="java.lang.String"/>
<field name="empresacorrida" class="java.lang.Integer"/>
<field name="empresa" class="java.lang.String"/>
<variable name="sumTarifaComDesconto" class="java.lang.Double" resetType="Group" resetGroup="ConvenioGroup" calculation="Sum">
<variableExpression><![CDATA[$F{tarifaComDesconto}]]></variableExpression>
</variable>
@ -47,13 +48,43 @@
<variable name="sumAllRows" class="java.lang.Double" calculation="Sum">
<variableExpression><![CDATA[new Double($F{tarifaComDesconto} + $F{tut} + $F{pedagio})]]></variableExpression>
</variable>
<group name="empresa">
<groupExpression><![CDATA[$F{empresacorrida}]]></groupExpression>
<groupHeader>
<band height="12">
<textField>
<reportElement uuid="97ca901d-78c1-4b92-a6d9-2b2278d11e2a" mode="Opaque" x="49" y="0" width="506" height="12" backcolor="#666666"/>
<box>
<topPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
<rightPen lineWidth="0.5"/>
</box>
<textElement>
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="203834fa-0973-44b2-b63a-982fa94346aa" mode="Opaque" x="0" y="0" width="49" height="12" backcolor="#666666"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement>
<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.empresa}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
</group>
<group name="ConvenioGroup">
<groupExpression><![CDATA[$F{codConvenio}
]]></groupExpression>
<groupExpression><![CDATA[$F{codConvenio}]]></groupExpression>
<groupHeader>
<band height="22">
<textField>
<reportElement uuid="6def49f9-df21-45fe-86e6-ddd8c2ab117d" mode="Opaque" x="49" y="0" width="506" height="12" backcolor="#CCCCCC"/>
<reportElement uuid="6def49f9-df21-45fe-86e6-ddd8c2ab117d" mode="Opaque" x="50" y="0" width="505" height="12" backcolor="#CCCCCC"/>
<box>
<topPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
@ -65,7 +96,7 @@
<textFieldExpression><![CDATA[$F{codConvenio}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="5d770871-0167-4885-9215-b4a3f6881d18" mode="Opaque" x="0" y="0" width="49" height="12" backcolor="#CCCCCC"/>
<reportElement uuid="5d770871-0167-4885-9215-b4a3f6881d18" mode="Opaque" x="1" y="0" width="49" height="12" backcolor="#CCCCCC"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
@ -77,7 +108,7 @@
<textFieldExpression><![CDATA[$R{label.codigo}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="c614f11f-5e39-45d5-ba3b-d94dfb313fb5" x="1" y="12" width="91" height="10"/>
<reportElement uuid="c614f11f-5e39-45d5-ba3b-d94dfb313fb5" x="2" y="12" width="91" height="10"/>
<box>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/>
@ -89,7 +120,7 @@
<textFieldExpression><![CDATA[$R{label.nomeAgencia}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="46d51dbb-8f53-4afa-8e8a-ddba45ddd4b7" x="247" y="12" width="40" height="10"/>
<reportElement uuid="46d51dbb-8f53-4afa-8e8a-ddba45ddd4b7" x="248" y="12" width="40" height="10"/>
<box>
<bottomPen lineWidth="0.5"/>
</box>
@ -99,7 +130,7 @@
<textFieldExpression><![CDATA[$R{label.dataEmissao}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="b8b25bb5-75a0-4780-b2a1-8e02c42590bb" x="287" y="12" width="44" height="10"/>
<reportElement uuid="b8b25bb5-75a0-4780-b2a1-8e02c42590bb" x="288" y="12" width="44" height="10"/>
<box>
<bottomPen lineWidth="0.5"/>
</box>
@ -109,7 +140,7 @@
<textFieldExpression><![CDATA[$R{label.dataViagem}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="3a6335ef-979e-4232-ba62-f7113e8b6c89" x="331" y="12" width="41" height="10"/>
<reportElement uuid="3a6335ef-979e-4232-ba62-f7113e8b6c89" x="332" y="12" width="41" height="10"/>
<box>
<bottomPen lineWidth="0.5"/>
</box>
@ -119,7 +150,7 @@
<textFieldExpression><![CDATA[$R{label.codServico}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="b3792e14-b26f-47a8-8da2-f35d3fc0f4fb" x="371" y="12" width="27" height="10"/>
<reportElement uuid="b3792e14-b26f-47a8-8da2-f35d3fc0f4fb" x="372" y="12" width="27" height="10"/>
<box>
<bottomPen lineWidth="0.5"/>
</box>
@ -129,7 +160,7 @@
<textFieldExpression><![CDATA[$R{label.codOrigem}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="2122af46-a40b-476a-ac4c-dd9c0a5a3413" x="396" y="12" width="30" height="10"/>
<reportElement uuid="2122af46-a40b-476a-ac4c-dd9c0a5a3413" x="397" y="12" width="30" height="10"/>
<box>
<bottomPen lineWidth="0.5"/>
</box>
@ -139,7 +170,7 @@
<textFieldExpression><![CDATA[$R{label.codDestino}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="ad5b6c97-a125-4e41-b08a-1c70642ae66e" x="425" y="12" width="40" height="10"/>
<reportElement uuid="ad5b6c97-a125-4e41-b08a-1c70642ae66e" x="426" y="12" width="40" height="10"/>
<box>
<bottomPen lineWidth="0.5"/>
</box>
@ -149,7 +180,7 @@
<textFieldExpression><![CDATA[$R{label.tarifaComDesconto}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="aebfcc06-37c4-4f7f-a8ed-ad8011c55658" x="464" y="12" width="28" height="10"/>
<reportElement uuid="aebfcc06-37c4-4f7f-a8ed-ad8011c55658" x="465" y="12" width="28" height="10"/>
<box>
<bottomPen lineWidth="0.5"/>
</box>
@ -159,7 +190,7 @@
<textFieldExpression><![CDATA[$R{label.tut}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="aa6a57f1-ea6d-4449-90d4-44a753fea7fe" x="492" y="12" width="32" height="10"/>
<reportElement uuid="aa6a57f1-ea6d-4449-90d4-44a753fea7fe" x="493" y="12" width="32" height="10"/>
<box>
<topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.5"/>
@ -171,7 +202,7 @@
<textFieldExpression><![CDATA[$R{label.pedagio}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="85672596-8266-4500-bf8d-3f2c757c4226" x="524" y="12" width="30" height="10"/>
<reportElement uuid="85672596-8266-4500-bf8d-3f2c757c4226" x="525" y="12" width="30" height="10"/>
<box>
<topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.5"/>
@ -183,7 +214,7 @@
<textFieldExpression><![CDATA[$R{label.total}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="b29e15c3-facb-4dc0-bac7-66d8068ffc8b" x="92" y="12" width="58" height="10"/>
<reportElement uuid="b29e15c3-facb-4dc0-bac7-66d8068ffc8b" x="93" y="12" width="58" height="10"/>
<box>
<bottomPen lineWidth="0.5"/>
</box>
@ -193,7 +224,7 @@
<textFieldExpression><![CDATA[$R{label.bilheteiro}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="dcfb9cb1-125f-4a27-a071-3245e508827b" x="150" y="12" width="58" height="10"/>
<reportElement uuid="dcfb9cb1-125f-4a27-a071-3245e508827b" x="151" y="12" width="58" height="10"/>
<box>
<bottomPen lineWidth="0.5"/>
</box>
@ -203,7 +234,7 @@
<textFieldExpression><![CDATA[$R{label.nomepassageiro}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="11473a35-c133-4f7d-a313-4bc4c4cffdd1" x="208" y="12" width="40" height="10"/>
<reportElement uuid="11473a35-c133-4f7d-a313-4bc4c4cffdd1" x="209" y="12" width="40" height="10"/>
<box>
<bottomPen lineWidth="0.5"/>
</box>
@ -217,41 +248,41 @@
<groupFooter>
<band height="18">
<textField>
<reportElement uuid="21939498-3964-4b50-b792-c810057ca04b" x="312" y="6" width="100" height="12"/>
<reportElement uuid="21939498-3964-4b50-b792-c810057ca04b" x="313" y="6" width="100" height="12"/>
<textElement>
<font size="6" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.totalPorConvenio}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="e383a185-7fe9-4b2c-ae23-65db33ee1790" x="426" y="6" width="39" height="12"/>
<reportElement uuid="e383a185-7fe9-4b2c-ae23-65db33ee1790" x="427" y="6" width="39" height="12"/>
<textElement textAlignment="Right">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$V{sumTarifaComDesconto}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="7e0997ce-bffa-431c-8d8b-7a4e2d7168c6" x="464" y="6" width="29" height="12"/>
<reportElement uuid="7e0997ce-bffa-431c-8d8b-7a4e2d7168c6" x="465" y="6" width="29" height="12"/>
<textElement textAlignment="Right">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$V{SumTut}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="14a07a9d-75a5-4296-87ac-036461e44d68" x="493" y="6" width="31" height="12"/>
<reportElement uuid="14a07a9d-75a5-4296-87ac-036461e44d68" x="494" y="6" width="31" height="12"/>
<textElement textAlignment="Right">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$V{sumPedagio}]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="05728025-9728-4057-a461-799535ef933f" x="269" y="3" width="286" height="1"/>
<reportElement uuid="05728025-9728-4057-a461-799535ef933f" x="270" y="3" width="285" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="6d37f5dd-12a3-44b8-aac7-a430eb53143c" x="524" y="6" width="31" height="12" isPrintWhenDetailOverflows="true"/>
<reportElement uuid="6d37f5dd-12a3-44b8-aac7-a430eb53143c" x="525" y="6" width="30" height="12" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Right">
<font size="6"/>
</textElement>
@ -264,12 +295,9 @@
<band splitType="Stretch"/>
</background>
<title>
<band splitType="Stretch"/>
</title>
<pageHeader>
<band height="104" splitType="Stretch">
<band height="82" splitType="Stretch">
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
<reportElement uuid="b8a08223-0a24-43a7-8ebe-17a3db2d83fe" mode="Transparent" x="482" y="46" width="73" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="b8a08223-0a24-43a7-8ebe-17a3db2d83fe" mode="Transparent" x="482" y="29" width="73" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -277,14 +305,14 @@
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="d095c344-00e0-4532-8035-8b93ef192a56" x="382" y="46" width="100" height="24"/>
<reportElement uuid="d095c344-00e0-4532-8035-8b93ef192a56" x="382" y="29" width="100" height="24"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="eceda28e-b177-4d40-a99f-bce905486f71" mode="Transparent" x="0" y="17" width="555" height="25" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="eceda28e-b177-4d40-a99f-bce905486f71" mode="Transparent" x="0" y="0" width="555" height="25" forecolor="#000000" backcolor="#FFFFFF"/>
<box>
<pen lineWidth="0.5"/>
<topPen lineWidth="0.5"/>
@ -299,7 +327,7 @@
<textFieldExpression><![CDATA[$P{nomeRelatorio}]]></textFieldExpression>
</textField>
<textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
<reportElement uuid="17bc8d21-5221-4757-ade1-9b3d1b4c10ce" mode="Transparent" x="536" y="70" width="19" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="17bc8d21-5221-4757-ade1-9b3d1b4c10ce" mode="Transparent" x="536" y="53" width="19" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -307,7 +335,7 @@
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="8857ff4c-243b-4073-9466-98722a23eccf" mode="Transparent" x="382" y="70" width="154" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="8857ff4c-243b-4073-9466-98722a23eccf" mode="Transparent" x="382" y="13" width="154" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -315,7 +343,7 @@
<textFieldExpression><![CDATA[$R{cabecalho.pagina} + " " + $V{PAGE_NUMBER} + " " + $R{cabecalho.de}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="65e099b5-ddc7-4f45-a453-38ab8cc4cb7c" mode="Transparent" x="382" y="82" width="173" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="65e099b5-ddc7-4f45-a453-38ab8cc4cb7c" mode="Transparent" x="382" y="65" width="173" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -323,35 +351,35 @@
<textFieldExpression><![CDATA[$R{cabecalho.impressorPor} + " " + $P{usuario}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy">
<reportElement uuid="145289a7-0f0a-4aa0-aab7-2bad8b44292e" x="103" y="58" width="100" height="12" isPrintWhenDetailOverflows="true"/>
<reportElement uuid="145289a7-0f0a-4aa0-aab7-2bad8b44292e" x="103" y="41" width="100" height="12" isPrintWhenDetailOverflows="true"/>
<textElement>
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$P{fecVentaInicial}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy">
<reportElement uuid="74a3108b-f2bf-4a05-8a0e-ef3bc6e23e78" x="103" y="70" width="100" height="12" isPrintWhenDetailOverflows="true"/>
<reportElement uuid="74a3108b-f2bf-4a05-8a0e-ef3bc6e23e78" x="103" y="53" width="100" height="12" isPrintWhenDetailOverflows="true"/>
<textElement>
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$P{fecVentaFinal}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement uuid="4ea6cfd8-2183-4d3a-b7fc-51ece4715dd9" x="103" y="46" width="100" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<reportElement uuid="4ea6cfd8-2183-4d3a-b7fc-51ece4715dd9" x="103" y="29" width="100" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement>
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$P{codconvenio}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement uuid="c95a7200-7032-4a56-abca-615be605f781" x="103" y="82" width="100" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<reportElement uuid="c95a7200-7032-4a56-abca-615be605f781" x="103" y="65" width="100" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement>
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$P{puntoVenta}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="0fb0788e-1dae-4756-8d2d-076ed62e733c" x="3" y="46" width="100" height="12">
<reportElement uuid="0fb0788e-1dae-4756-8d2d-076ed62e733c" x="3" y="29" width="100" height="12">
<printWhenExpression><![CDATA[new Boolean($P{codconvenio} != null && !$P{codconvenio}.isEmpty())]]></printWhenExpression>
</reportElement>
<textElement>
@ -360,21 +388,21 @@
<textFieldExpression><![CDATA[$R{label.codConvenio}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="1ffb28ce-353b-45c6-95a3-ba5c40faa4b5" x="3" y="58" width="100" height="12"/>
<reportElement uuid="1ffb28ce-353b-45c6-95a3-ba5c40faa4b5" x="3" y="41" width="100" height="12"/>
<textElement>
<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.fecVentaInicial}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="c52ee81b-b6a0-44cd-b0e0-c61177419f22" x="3" y="70" width="100" height="12"/>
<reportElement uuid="c52ee81b-b6a0-44cd-b0e0-c61177419f22" x="3" y="53" width="100" height="12"/>
<textElement>
<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.fecVentaFinal}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="2c80eede-1c35-4bec-8c97-3ea0ea54ed16" x="3" y="82" width="100" height="12">
<reportElement uuid="2c80eede-1c35-4bec-8c97-3ea0ea54ed16" x="3" y="65" width="100" height="12">
<printWhenExpression><![CDATA[new Boolean($P{puntoVenta} != null)]]></printWhenExpression>
</reportElement>
<textElement>
@ -383,101 +411,101 @@
<textFieldExpression><![CDATA[$R{label.puntoVenta}]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="d6ec8319-dcf8-42f7-bb0f-64235db1f2da" x="0" y="98" width="555" height="1"/>
<reportElement uuid="d6ec8319-dcf8-42f7-bb0f-64235db1f2da" x="0" y="81" width="555" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
</band>
</pageHeader>
</title>
<detail>
<band height="11" splitType="Stretch">
<band height="34" splitType="Stretch">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="ad1ffaa8-6c48-4316-ba3c-ea68579af300" x="1" y="0" width="91" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<reportElement uuid="ad1ffaa8-6c48-4316-ba3c-ea68579af300" x="2" y="0" width="91" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{nomeAgencia}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement uuid="cf354725-73cd-4ec9-b10e-4aadc6c27e57" x="248" y="0" width="39" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<reportElement uuid="cf354725-73cd-4ec9-b10e-4aadc6c27e57" x="249" y="0" width="39" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{dataEmissao}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement uuid="8351ad8e-e02b-4f89-8655-091bec145801" x="287" y="0" width="44" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<reportElement uuid="8351ad8e-e02b-4f89-8655-091bec145801" x="288" y="0" width="44" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{dataViagem}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="0b904fc9-5da8-42df-86e7-0749839574b6" x="331" y="0" width="41" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<reportElement uuid="0b904fc9-5da8-42df-86e7-0749839574b6" x="332" y="0" width="41" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{codServico}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="2dd64398-024e-4ce0-a8a8-2c93dec6182d" x="371" y="0" width="27" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<reportElement uuid="2dd64398-024e-4ce0-a8a8-2c93dec6182d" x="372" y="0" width="27" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{codOrigem}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="b8655897-1818-4afc-be13-cf15abb85f41" x="396" y="0" width="30" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<reportElement uuid="b8655897-1818-4afc-be13-cf15abb85f41" x="397" y="0" width="30" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{codDestino}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="a2f90f64-e8eb-45b8-828b-53c01e7258a0" x="425" y="0" width="40" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<reportElement uuid="a2f90f64-e8eb-45b8-828b-53c01e7258a0" x="426" y="0" width="40" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Right">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{tarifaComDesconto}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="e17967ac-cb7c-4907-98f5-bb3212cec2eb" x="464" y="0" width="28" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<reportElement uuid="e17967ac-cb7c-4907-98f5-bb3212cec2eb" x="465" y="0" width="28" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Right">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{tut}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="584271a9-2bf3-4c50-a4cf-6615c17bf989" x="493" y="0" width="31" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<reportElement uuid="584271a9-2bf3-4c50-a4cf-6615c17bf989" x="494" y="0" width="31" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Right">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{pedagio}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="e7415c92-58d7-482c-a830-06708116c9d5" x="524" y="0" width="30" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<reportElement uuid="e7415c92-58d7-482c-a830-06708116c9d5" x="525" y="0" width="30" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Right">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[new Double($F{pedagio} + $F{tarifaComDesconto} + $F{tut})]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="546f445d-2263-4cdc-a1d7-681d40f311e4" x="92" y="0" width="58" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<reportElement uuid="546f445d-2263-4cdc-a1d7-681d40f311e4" x="93" y="0" width="58" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{bilheteiro}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="eba09120-e3ae-4119-af20-8ff20c45d935" x="150" y="0" width="58" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<reportElement uuid="eba09120-e3ae-4119-af20-8ff20c45d935" x="151" y="0" width="58" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{nomepassageiro}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="374795a6-5fae-417c-93d9-ae0c9e12829a" x="209" y="0" width="39" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<reportElement uuid="374795a6-5fae-417c-93d9-ae0c9e12829a" x="210" y="0" width="39" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement>
<font size="6"/>
</textElement>
@ -494,41 +522,41 @@
<summary>
<band height="26" splitType="Stretch">
<textField>
<reportElement uuid="bb9ab283-7cb9-445b-b741-29a6e5c931e9" x="312" y="14" width="100" height="12"/>
<reportElement uuid="bb9ab283-7cb9-445b-b741-29a6e5c931e9" x="313" y="14" width="100" height="12"/>
<textElement>
<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.totalGeral}]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="eb4f7cb9-51dd-48ed-a924-ed5477b1f35d" x="269" y="12" width="286" height="1"/>
<reportElement uuid="eb4f7cb9-51dd-48ed-a924-ed5477b1f35d" x="270" y="13" width="285" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="d4dac747-8ca0-4b61-9216-ba38d252bc60" x="433" y="14" width="34" height="12" isPrintWhenDetailOverflows="true"/>
<reportElement uuid="d4dac747-8ca0-4b61-9216-ba38d252bc60" x="434" y="14" width="34" height="12" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$V{sumTarifaComDescontoGeral}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="d58a5fb0-6276-459b-9b9c-c698a36dcb0d" x="465" y="14" width="29" height="12" isPrintWhenDetailOverflows="true"/>
<reportElement uuid="d58a5fb0-6276-459b-9b9c-c698a36dcb0d" x="466" y="14" width="29" height="12" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$V{SumTutGeral}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="29281cf5-8f96-4169-b413-affb15dee8c1" x="494" y="14" width="31" height="12" isPrintWhenDetailOverflows="true"/>
<reportElement uuid="29281cf5-8f96-4169-b413-affb15dee8c1" x="495" y="14" width="30" height="12" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$V{sumPedagioGeral}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="232a2a0f-d134-418d-8b95-c3425802c153" x="524" y="14" width="31" height="12" isPrintWhenDetailOverflows="true"/>
<reportElement uuid="232a2a0f-d134-418d-8b95-c3425802c153" x="525" y="14" width="30" height="12" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>