bug#13826

dev: Lucas Silvério
qua:

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@93671 d1611594-4594-4d17-8e1d-87c2c4800839
master
fabio 2019-05-23 17:47:57 +00:00
parent ed17504d72
commit f87fa438f3
4 changed files with 134 additions and 3 deletions

View File

@ -17,6 +17,7 @@ header.periodo.venda=Per
header.tipopassagem=Tipo Passagem\:
header.filtro.total.trecho=Total Trecho:
header.filtro.total.linha=Total Linha:
header.filtro.total=Total Geral:
#Labels detail

View File

@ -17,6 +17,7 @@ header.periodo.venda=Per
header.tipopassagem=Tipo Passagem\:
header.filtro.total.trecho=Total Trecho:
header.filtro.total.linha=Total Linha:
header.filtro.total=Total Geral:
#Labels detail

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.3636363636363655"/>
<property name="ireport.x" value="295"/>
<property name="ireport.y" value="106"/>
<property name="ireport.zoom" value="1.239669421487605"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="90"/>
<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"/>
@ -106,6 +106,43 @@
.add( $F{outros} )
.add( $F{seguro} )]]></variableExpression>
</variable>
<variable name="total" class="java.math.BigDecimal" 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="totalQte" class="java.lang.Integer" calculation="Sum">
<variableExpression><![CDATA[$F{tipo}.equals("CANCELADO")?$F{qtde}*-1:$F{qtde}]]></variableExpression>
</variable>
<variable name="totalTarifa" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{tipo}.equals("CANCELADO")?$F{tarifa}.multiply( new java.math.BigDecimal("-1") ):$F{tarifa}]]></variableExpression>
</variable>
<variable name="totalTaxaEmbarque" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{tipo}.equals("CANCELADO")?$F{taxaembarque}.multiply( new java.math.BigDecimal("-1") ):$F{taxaembarque}]]></variableExpression>
</variable>
<variable name="totalPedagio" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{tipo}.equals("CANCELADO")?$F{pedagio}.multiply( new java.math.BigDecimal("-1") ):$F{pedagio}]]></variableExpression>
</variable>
<variable name="totalOutros" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{tipo}.equals("CANCELADO")?$F{outros}.multiply( new java.math.BigDecimal("-1") ):$F{outros}]]></variableExpression>
</variable>
<variable name="totalSeguro" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{tipo}.equals("CANCELADO")?$F{seguro}.multiply( new java.math.BigDecimal("-1") ):$F{seguro}]]></variableExpression>
</variable>
<variable name="totalGeral" class="java.math.BigDecimal">
<variableExpression><![CDATA[$V{total}]]></variableExpression>
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
</variable>
<group name="groupLinha">
<groupExpression><![CDATA[$F{descRuta}]]></groupExpression>
<groupHeader>
@ -613,6 +650,98 @@
</textField>
</band>
</detail>
<summary>
<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="5476b82a-2529-4b0f-baca-6f68e9a5f3bc"/>
<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{totalPedagio}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="240" height="20" uuid="6430a76b-5907-4783-9efc-08f108b1a19b"/>
<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}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00;-###0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="841" y="0" width="89" height="20" uuid="45b3533b-d863-423d-b6a0-682d2336d6ca"/>
<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{totalGeral}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="240" y="0" width="91" height="20" uuid="40caa383-bae0-43f5-9a2a-b93264740668"/>
<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{totalQte}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00;-###0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="669" y="0" width="86" height="20" uuid="892dea7f-0a9d-40ab-8f69-7e950fefd73b"/>
<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{totalTaxaEmbarque}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00;-###0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="331" y="0" width="86" height="20" uuid="8dbbd30a-18f8-4c7d-bf8a-e526b28971fa"/>
<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{totalTarifa}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00;-###0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="755" y="0" width="86" height="20" uuid="e423dc37-408c-4d74-bcb2-cd0e199b37aa"/>
<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{totalOutros}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00;-###0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="543" y="0" width="126" height="20" uuid="df545e3c-3cd3-40e2-a440-c3ae45c27a5d"/>
<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{totalSeguro}]]></textFieldExpression>
</textField>
</band>
</summary>
<noData>
<band height="22">
<textField>