fixes bug#AL-4761
parent
c77ef45113
commit
022ab03a3c
2
pom.xml
2
pom.xml
|
@ -4,7 +4,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>br.com.rjconsultores</groupId>
|
||||
<artifactId>ventaboletosadm</artifactId>
|
||||
<version>1.145.7</version>
|
||||
<version>1.145.8</version>
|
||||
<packaging>war</packaging>
|
||||
|
||||
<properties>
|
||||
|
|
|
@ -117,8 +117,9 @@ public class RelatorioFormaPagamentoAgenciaNovo extends RelatorioDemandas {
|
|||
BigDecimal seguroOPC = rset.getBigDecimal("seg_opcional");
|
||||
BigDecimal taxa = rset.getBigDecimal("taxa");
|
||||
BigDecimal valor = rset.getBigDecimal("valor");
|
||||
String formaPagamento = rset.getString("forma_pagamento");
|
||||
String formaPagamentoOriginal = rset.getString("forma_pago_original");
|
||||
String formaPagamento = StringUtils.isEmpty(rset.getString("forma_pagamento")) ? StringUtils.EMPTY : rset.getString("forma_pagamento");
|
||||
String formaPagamentoOriginal = StringUtils.isEmpty(rset.getString("forma_pago_original")) ? StringUtils.EMPTY : rset.getString("forma_pago_original");
|
||||
Boolean isFormaPagamentoIguais = formaPagamento.equals(formaPagamentoOriginal);
|
||||
|
||||
dataResult.put("DATA", rset.getDate("data"));
|
||||
dataResult.put("BILHETE", rset.getString("bilhete"));
|
||||
|
@ -137,7 +138,7 @@ public class RelatorioFormaPagamentoAgenciaNovo extends RelatorioDemandas {
|
|||
dataResult.put("SEG_OPCIONAL", seguroOPC.compareTo(BigDecimal.ZERO) == 0 ? seguroOPC : seguroOPC.negate());
|
||||
dataResult.put("TAXA", taxa.compareTo(BigDecimal.ZERO) == 0 ? taxa : taxa.negate());
|
||||
dataResult.put("VALOR", valor.compareTo(BigDecimal.ZERO) == 0 ? valor : valor.negate());
|
||||
} else {
|
||||
} else if (isFormaPagamentoIguais){
|
||||
dataResult.put("FORMA_PAGAMENTO", formaPagamento);
|
||||
dataResult.put("TARIFA", tarifa);
|
||||
dataResult.put("PEDAGIO", pedagio);
|
||||
|
|
Binary file not shown.
|
@ -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="RelatorioFormaPagamentoAgenciaNovo" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isFloatColumnFooter="true" uuid="832cc8a2-6330-4063-9b36-f96514ae8283">
|
||||
<property name="ireport.zoom" value="2.5937424601000147"/>
|
||||
<property name="ireport.x" value="574"/>
|
||||
<property name="ireport.x" value="0"/>
|
||||
<property name="ireport.y" value="0"/>
|
||||
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="title"/>
|
||||
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.3" value="pageHeader"/>
|
||||
|
@ -71,7 +71,7 @@
|
|||
<groupHeader>
|
||||
<band height="30">
|
||||
<textField>
|
||||
<reportElement x="0" y="0" width="90" height="15" uuid="29bb0167-21cd-401c-94d9-f94bb1e9b9e4">
|
||||
<reportElement x="0" y="0" width="100" height="15" uuid="29bb0167-21cd-401c-94d9-f94bb1e9b9e4">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<box>
|
||||
|
@ -82,8 +82,8 @@
|
|||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{AGENCIA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="90" y="0" width="711" height="15" isPrintWhenDetailOverflows="true" uuid="e873a0b8-5b07-4883-8be6-edf75307e9ab">
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement x="100" y="0" width="701" height="15" isPrintWhenDetailOverflows="true" uuid="e873a0b8-5b07-4883-8be6-edf75307e9ab">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<box>
|
||||
|
|
Loading…
Reference in New Issue