*Total de passageiros Absoluto não batem > RRL e RLH = OK

*A Receita Total não bate > RRL, RLH e Receita Embarcada = Ok
*Total de Quilômetros não batem > RRL, RLH e KM Programada .
A forma de calcular a quilometragem é diferente nos relatorios devido o rol operativo, o calculo é feito através do rol operativo, no relatorio de linhas por horario por exemplo, ele está buscando um rol operativo bem maior, por isso a diferença. Devemos checar qual é a formula correta
*Total de Viagens não batem > RRL, RLH e KM Programada - Não consegui ver irregularidade
* O totalizador do RLH esta errado. - O wallyson irá validar com o clliente o que seria essa informação.
* No RRL ele apresenta a Quilometragem total mesmo o serviço estando fracionado. - O wallyson irá validar com o clliente o que seria essa informação.
* NO RLH não esta calculando o valor total de Passageiros Equivalente. Ele esta copiando o resultado do Total de Passageiros Absoluto.
O relatorio verifica o passageiro absoluto e o equivalente dentro de uma determinada linha, não fazendo a quebra por trechos, desta forma, na visão deste relatorio, os valores serão sempre iguais, pois está baseado somente na linha.

fixes bug#11006
dev:julio
qua:wallace


git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@82363 d1611594-4594-4d17-8e1d-87c2c4800839
master
walace 2018-06-04 21:25:15 +00:00
parent 1120bbf8ef
commit f377239569
4 changed files with 42 additions and 40 deletions

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="RelatorioResumoLinhasAnalitico" pageWidth="595" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isFloatColumnFooter="true" uuid="efbc89d4-6f08-4ea5-802f-d4f48ed208e2">
<property name="ireport.zoom" value="3.5431220000000043"/>
<property name="ireport.zoom" value="2.000000000000002"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="274"/>
<property name="ireport.y" value="100"/>
<style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
<style name="table">
<box>
@ -89,6 +89,7 @@
AND BL.MOTIVOCANCELACION_ID IS NULL
AND BL.INDSTATUSOPERACION = 'F'
AND BL.ACTIVO = 1
AND CR.ACTIVO = 1
AND CR.RUTA_ID = NVL($P{RUTA_ID}, CR.RUTA_ID)
AND CR.EMPRESACORRIDA_ID = $P{EMPRESA_ID}
AND DECODE($P{GRUPORUTA_ID}, NULL, 1, RT.GRUPORUTA_ID) = DECODE($P{GRUPORUTA_ID}, NULL, 1, $P{GRUPORUTA_ID})
@ -128,53 +129,53 @@
<groupHeader>
<band height="32">
<staticText>
<reportElement uuid="9c579f27-ee14-4804-b73d-64994a6e41ec" x="0" y="18" width="50" height="11"/>
<reportElement x="0" y="18" width="50" height="11" uuid="9c579f27-ee14-4804-b73d-64994a6e41ec"/>
<textElement>
<font size="8"/>
</textElement>
<text><![CDATA[Data]]></text>
</staticText>
<staticText>
<reportElement uuid="7b8a8f38-e513-4a8c-a82b-a9c6ffd21f6f" x="50" y="18" width="64" height="11"/>
<reportElement x="50" y="18" width="64" height="11" uuid="7b8a8f38-e513-4a8c-a82b-a9c6ffd21f6f"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<text><![CDATA[Passageiros]]></text>
</staticText>
<staticText>
<reportElement uuid="4f8fcbb3-73e7-4b15-9687-30ff12bb1526" x="114" y="18" width="42" height="11"/>
<reportElement x="114" y="18" width="42" height="11" uuid="4f8fcbb3-73e7-4b15-9687-30ff12bb1526"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<text><![CDATA[Viagens]]></text>
</staticText>
<textField>
<reportElement uuid="9e40c4ad-b386-4e8a-9d84-977a27bfebcc" x="0" y="3" width="554" height="13"/>
<reportElement x="0" y="3" width="554" height="13" uuid="9e40c4ad-b386-4e8a-9d84-977a27bfebcc"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{NUMRUTA}+" - "+$F{DESCRUTA}+" Extensão: "+new java.text.DecimalFormat("###0.00").format($F{EXTENSAO_KM})+" Empresa: "+$P{EMPRESA}+" Sentido: "+($F{INDSENTIDOIDA} == 0 ? "Ida" : "Volta")]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="afaaa1cf-1a3e-4a42-9fa3-e634a66fc3d3" x="0" y="1" width="554" height="1"/>
<reportElement x="0" y="1" width="554" height="1" uuid="afaaa1cf-1a3e-4a42-9fa3-e634a66fc3d3"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<line>
<reportElement uuid="04a75f17-3686-484b-be43-7b7e22e9def7" x="0" y="16" width="554" height="1"/>
<reportElement x="0" y="16" width="554" height="1" uuid="04a75f17-3686-484b-be43-7b7e22e9def7"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<line>
<reportElement uuid="d9f712d0-01a8-4241-a1e6-dc096b4ee773" x="0" y="30" width="554" height="1"/>
<reportElement x="0" y="30" width="554" height="1" uuid="d9f712d0-01a8-4241-a1e6-dc096b4ee773"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<staticText>
<reportElement uuid="7b817589-f754-49f1-bf53-856be52946fb" mode="Transparent" x="156" y="18" width="65" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement mode="Transparent" x="156" y="18" width="65" height="11" forecolor="#000000" backcolor="#FFFFFF" uuid="7b817589-f754-49f1-bf53-856be52946fb"/>
<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"/>
@ -182,7 +183,7 @@
<text><![CDATA[KM Rodados]]></text>
</staticText>
<staticText>
<reportElement uuid="4e931a04-04b4-41b7-90c2-e66083daf0fe" mode="Transparent" x="221" y="18" width="98" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement mode="Transparent" x="221" y="18" width="98" height="11" forecolor="#000000" backcolor="#FFFFFF" uuid="4e931a04-04b4-41b7-90c2-e66083daf0fe"/>
<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"/>
@ -194,34 +195,34 @@
<groupFooter>
<band height="20">
<textField>
<reportElement uuid="102eebb5-25f0-4175-ab9b-78fbca54bc06" x="50" y="1" width="64" height="13"/>
<reportElement x="50" y="1" width="64" height="13" uuid="102eebb5-25f0-4175-ab9b-78fbca54bc06"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$V{PASSAGEIROS_1}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="9f6ea621-a236-429f-bb13-ae57118ff5b3" x="114" y="1" width="42" height="12"/>
<reportElement x="114" y="1" width="42" height="12" uuid="9f6ea621-a236-429f-bb13-ae57118ff5b3"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$V{VIAGENS_1}]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="422ef3af-efca-47b0-80ba-16120724ca36" x="0" y="0" width="554" height="1"/>
<reportElement x="0" y="0" width="554" height="1" uuid="422ef3af-efca-47b0-80ba-16120724ca36"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<textField pattern="#,##0.00">
<reportElement uuid="3a2d351f-134e-43d6-acea-e3556fc61897" x="156" y="1" width="65" height="12"/>
<reportElement x="156" y="1" width="65" height="12" uuid="3a2d351f-134e-43d6-acea-e3556fc61897"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$V{EXTENSAO_1}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="false">
<reportElement uuid="7fc513ea-f587-433c-88fa-6357bdb9ed55" mode="Transparent" x="221" y="1" width="98" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement mode="Transparent" x="221" y="1" width="98" height="12" forecolor="#000000" backcolor="#FFFFFF" uuid="7fc513ea-f587-433c-88fa-6357bdb9ed55"/>
<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"/>
@ -237,7 +238,7 @@
<pageHeader>
<band height="79" splitType="Stretch">
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="2ed4524d-5c06-487c-a8f1-abc59a8ef7fc" mode="Transparent" x="0" y="21" width="296" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement mode="Transparent" x="0" y="21" width="296" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="2ed4524d-5c06-487c-a8f1-abc59a8ef7fc"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -245,7 +246,7 @@
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="fc199edd-4f2f-4b5f-9397-44f4af50a920" mode="Transparent" x="0" y="36" width="50" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement mode="Transparent" x="0" y="36" width="50" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="fc199edd-4f2f-4b5f-9397-44f4af50a920"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -253,7 +254,7 @@
<textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="f64c2e3c-d936-4072-a0b1-d914f408bbbb" mode="Transparent" x="50" y="36" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement mode="Transparent" x="50" y="36" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="f64c2e3c-d936-4072-a0b1-d914f408bbbb"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -261,7 +262,7 @@
<textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="00093c35-d3a5-4b0e-8a7a-26a86912dd25" mode="Transparent" x="111" y="36" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement mode="Transparent" x="111" y="36" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="00093c35-d3a5-4b0e-8a7a-26a86912dd25"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -269,7 +270,7 @@
<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="def1b81c-a286-4749-9ef7-f90984a3a5eb" mode="Transparent" x="101" y="36" width="10" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement mode="Transparent" x="101" y="36" width="10" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="def1b81c-a286-4749-9ef7-f90984a3a5eb"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -277,7 +278,7 @@
<textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="5dfea5f4-257a-43bc-94cb-bdead81ef7ac" mode="Transparent" x="0" y="1" width="296" height="20" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement mode="Transparent" x="0" y="1" width="296" height="20" forecolor="#000000" backcolor="#FFFFFF" uuid="5dfea5f4-257a-43bc-94cb-bdead81ef7ac"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="12" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -285,7 +286,7 @@
<textFieldExpression><![CDATA[$P{EMPRESA}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
<reportElement uuid="ea4dfc22-27b5-4600-8e8b-7d74460ed744" mode="Transparent" x="463" y="2" width="91" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement mode="Transparent" x="463" y="2" width="91" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="ea4dfc22-27b5-4600-8e8b-7d74460ed744"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -293,17 +294,17 @@
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="d9b398e6-2fe9-4a3d-bceb-f9db7a06e5a9" x="0" y="50" width="554" height="1"/>
<reportElement x="0" y="50" width="554" height="1" uuid="d9b398e6-2fe9-4a3d-bceb-f9db7a06e5a9"/>
</line>
<textField>
<reportElement uuid="a46c91f5-fb60-48d8-93c1-3814ce0160dd" x="383" y="2" width="80" height="15"/>
<reportElement x="383" y="2" width="80" height="15" uuid="a46c91f5-fb60-48d8-93c1-3814ce0160dd"/>
<textElement textAlignment="Right">
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="623b5d82-e7b3-4439-96c5-f44833fb8864" mode="Transparent" x="383" y="34" width="171" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement mode="Transparent" x="383" y="34" width="171" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="623b5d82-e7b3-4439-96c5-f44833fb8864"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -311,7 +312,7 @@
<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="ccec8b66-ed79-418b-b66d-15d9ed3bf2ce" mode="Transparent" x="0" y="51" width="50" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement mode="Transparent" x="0" y="51" width="50" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="ccec8b66-ed79-418b-b66d-15d9ed3bf2ce"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -319,14 +320,14 @@
<textFieldExpression><![CDATA[$R{cabecalho.filtros}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="98fc1c7e-3fee-4c70-924f-2cbb17fd243f" x="50" y="51" width="505" height="14"/>
<reportElement x="50" y="51" width="505" height="14" uuid="98fc1c7e-3fee-4c70-924f-2cbb17fd243f"/>
<textElement>
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="6aae4c9b-2e2a-4fd5-9115-760449d3c263" mode="Transparent" x="383" y="18" width="159" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement mode="Transparent" x="383" y="18" width="159" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="6aae4c9b-2e2a-4fd5-9115-760449d3c263"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -334,7 +335,7 @@
<textFieldExpression><![CDATA[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}]]></textFieldExpression>
</textField>
<textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
<reportElement uuid="5a57c3a1-ed8e-46fb-836f-d250116a238a" mode="Transparent" x="542" y="18" width="12" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement mode="Transparent" x="542" y="18" width="12" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="5a57c3a1-ed8e-46fb-836f-d250116a238a"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -342,7 +343,7 @@
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="77463b2d-5ef3-445a-a7b6-f22eb271387c" mode="Transparent" x="0" y="65" width="50" height="13" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement mode="Transparent" x="0" y="65" width="50" height="13" forecolor="#000000" backcolor="#FFFFFF" uuid="77463b2d-5ef3-445a-a7b6-f22eb271387c"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -350,7 +351,7 @@
<textFieldExpression><![CDATA["Data:"]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="6ff72302-1d83-4131-ab66-3ae0dbeb8b39" mode="Transparent" x="50" y="65" width="64" height="13" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement mode="Transparent" x="50" y="65" width="64" height="13" forecolor="#000000" backcolor="#FFFFFF" uuid="6ff72302-1d83-4131-ab66-3ae0dbeb8b39"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -362,35 +363,35 @@
<detail>
<band height="12">
<textField pattern="dd/MM/yyyy">
<reportElement uuid="ee9c23bd-e562-43d1-a766-851d09848504" x="0" y="0" width="50" height="12"/>
<reportElement x="0" y="0" width="50" height="12" uuid="ee9c23bd-e562-43d1-a766-851d09848504"/>
<textElement>
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{FECCORRIDA}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="9557122b-0661-4f5e-9a89-b0bfd74dabe3" x="50" y="0" width="64" height="12"/>
<reportElement x="50" y="0" width="64" height="12" uuid="9557122b-0661-4f5e-9a89-b0bfd74dabe3"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{PASSAGEIROS}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="01a234c4-7c30-4ac3-9a7c-dc09d0ebe314" x="114" y="0" width="42" height="12"/>
<reportElement x="114" y="0" width="42" height="12" uuid="01a234c4-7c30-4ac3-9a7c-dc09d0ebe314"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{VIAGENS}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement uuid="21f73b7d-c377-4047-9960-41e085463aa0" x="156" y="0" width="65" height="12"/>
<reportElement x="156" y="0" width="65" height="12" uuid="21f73b7d-c377-4047-9960-41e085463aa0"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{VIAGENS}.multiply($F{EXTENSAO_KM})]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="false">
<reportElement uuid="beb097c0-f4c1-4fe3-a62e-badfdf823c0c" mode="Transparent" x="221" y="0" width="98" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement mode="Transparent" x="221" y="0" width="98" height="12" forecolor="#000000" backcolor="#FFFFFF" uuid="beb097c0-f4c1-4fe3-a62e-badfdf823c0c"/>
<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"/>
@ -402,7 +403,7 @@
<noData>
<band height="39">
<textField>
<reportElement uuid="a640c0eb-ead8-4a2a-bda4-675165e8bc7d" x="0" y="8" width="555" height="20"/>
<reportElement x="0" y="8" width="555" height="20" uuid="a640c0eb-ead8-4a2a-bda4-675165e8bc7d"/>
<textElement textAlignment="Center" markup="none">
<font size="11" isBold="true"/>
</textElement>

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="RelatorioResumoLinhas" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isFloatColumnFooter="true" uuid="efbc89d4-6f08-4ea5-802f-d4f48ed208e2">
<property name="ireport.zoom" value="2.14358881000001"/>
<property name="ireport.x" value="566"/>
<property name="ireport.x" value="100"/>
<property name="ireport.y" value="67"/>
<style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
<style name="table">
@ -62,7 +62,7 @@ FROM (SELECT TAB1.*,
((NVL(TAB1.VIAGENS,0) + NVL(TAB1.VIAGENS_EXTRA,0)) * NVL(TAB1.EXTENSAO_KM,0)) KM_RODADO,
(SELECT SUM(NVL(PE.EQUIVALENTE,0))
FROM (SELECT CO.FECCORRIDA, CO.RUTA_ID, BO.PRECIOBASE, ROUND((BO.NUMKMVIAJE * COUNT(1) /
(SELECT SUM(NVL(TR.CANTKMREAL,0)) FROM RUTA_SECUENCIA RS, TRAMO TR WHERE RS.RUTA_ID = CO.RUTA_ID AND RS.TRAMO_ID = TR.TRAMO_ID)), 2) EQUIVALENTE
(SELECT SUM(NVL(TR.CANTKMREAL,0)) FROM RUTA_COMBINACION RS, TRAMO TR WHERE RS.RUTA_ID = CO.RUTA_ID AND RS.TRAMO_ID = TR.TRAMO_ID)), 2) EQUIVALENTE
FROM CORRIDA CO, BOLETO BO
WHERE CO.CORRIDA_ID = BO.CORRIDA_ID
AND CO.FECCORRIDA = BO.FECCORRIDA
@ -132,6 +132,7 @@ FROM (SELECT TAB1.*,
AND VT.ACTIVO = 1
AND CR.FECCORRIDA BETWEEN VT.FECINICIOVIGENCIA AND VT.FECFINVIGENCIA
AND CR.FECCORRIDA BETWEEN $P{DATA_INICIAL} AND $P{DATA_FINAL}
AND CR.ACTIVO = 1
GROUP BY CS.CVECLASE,
RT.RUTA_ID,
RT.NUMRUTA,