fixes bug#AL-2679

master
Célio de Souza Ribeiro JR 2023-05-17 10:08:40 -03:00
parent 5fd25b5e87
commit fc0c9a6481
4 changed files with 5 additions and 5 deletions

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>br.com.rjconsultores</groupId>
<artifactId>ventaboletosadm</artifactId>
<version>1.5.3</version>
<version>1.5.4</version>
<packaging>war</packaging>
<properties>

View File

@ -205,8 +205,8 @@ public class RelatorioPassagensAGR extends Relatorio {
public static String capitalizeWords(String input) {
StringBuilder output = new StringBuilder();
boolean newWord = true;
if(input != null || !input.isEmpty()) {
boolean newWord = input == null || input.isEmpty() ? false : true;
if(newWord) {
for (int i = 0; i < input.length(); i++) {
char c = input.charAt(i);

View File

@ -24,7 +24,7 @@
<field name="razaoSocial" class="java.lang.String"/>
<field name="cnpj" class="java.lang.String"/>
<field name="numeroPassaporte" class="java.lang.String"/>
<field name="tipoDescontoBenefício" class="java.lang.String"/>
<field name="tipoDescontoBeneficio" class="java.lang.String"/>
<field name="nomePassageiro" class="java.lang.String"/>
<field name="numeroIdentidade" class="java.lang.String"/>
<field name="orgaoExpedidor" class="java.lang.String"/>
@ -382,7 +382,7 @@
<bottomPen lineWidth="0.75"/>
</box>
<textElement textAlignment="Center"/>
<textFieldExpression><![CDATA[$F{tipoDescontoBenefício}]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{tipoDescontoBeneficio}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="ba84d11d-f63a-4fa5-9ac2-46488f040cdd" stretchType="RelativeToTallestObject" x="528" y="2" width="82" height="17" isPrintWhenDetailOverflows="true"/>