fixes bug#23068
dev: Celio qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@108385 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
52431abc7a
commit
500a343d86
|
@ -362,7 +362,6 @@ public class RelatorioLinhasHorarioSimplificado extends Relatorio {
|
|||
BigDecimal eq = null;
|
||||
try {
|
||||
eq = horarioBean.getMediaReceitaViagem().divide(horarioBean.getTarifa(), 2, 4);
|
||||
eq = BigDecimal.ZERO;
|
||||
} catch (ArithmeticException e) {
|
||||
eq = BigDecimal.ZERO;
|
||||
} catch (NullPointerException nex) {
|
||||
|
|
Binary file not shown.
|
@ -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="RelatorioLinhasHorario" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="812" leftMargin="20" rightMargin="10" topMargin="20" bottomMargin="20" uuid="ae2cbb01-bc79-4d18-8206-3b59273fe793">
|
||||
<property name="ireport.zoom" value="3.215383215000005"/>
|
||||
<property name="ireport.x" value="509"/>
|
||||
<property name="ireport.y" value="0"/>
|
||||
<property name="ireport.zoom" value="1.6500000000000021"/>
|
||||
<property name="ireport.x" value="708"/>
|
||||
<property name="ireport.y" value="86"/>
|
||||
<parameter name="NOMBEMPRESA" class="java.lang.String"/>
|
||||
<parameter name="DATA_INICIO" class="java.util.Date">
|
||||
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
|
||||
|
@ -119,7 +119,7 @@
|
|||
<variableExpression><![CDATA[$P{TOTAL_PASSAGENS}.divide( $P{TOTAL_KM_RODADO}, 2, BigDecimal.ROUND_HALF_UP )]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="TOTAL_RSKM" class="java.math.BigDecimal">
|
||||
<variableExpression><![CDATA[$P{TOTAL_PASSAGENS}.divide( $P{TOTAL_KM_RODADO}, 2, BigDecimal.ROUND_HALF_UP )]]></variableExpression>
|
||||
<variableExpression><![CDATA[$P{TOTAL_TOTAL}.divide( $P{TOTAL_KM_RODADO}, 2, BigDecimal.ROUND_HALF_UP )]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="TOTAL_VIAGEM" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{rsViagem}]]></variableExpression>
|
||||
|
|
Loading…
Reference in New Issue