fixes bug#AL-4653
parent
b09364d950
commit
9ea53d5d55
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.6</version>
|
||||
<version>1.145.7</version>
|
||||
<packaging>war</packaging>
|
||||
|
||||
<properties>
|
||||
|
|
|
@ -39,6 +39,7 @@ public class RelatorioBilhetesCancelados extends Relatorio {
|
|||
Map<String, Object> parametros = this.relatorio.getParametros();
|
||||
StringBuilder sql = new StringBuilder();
|
||||
sql.append(" select ");
|
||||
sql.append(" mc.descmotivo, ");
|
||||
sql.append(" u.CVEUSUARIO CVEBILHETEIRO, ");
|
||||
sql.append(" uc.CVEUSUARIO CVEBILHETEIRO_CANCELADO, ");
|
||||
sql.append(" B.indstatusboleto IMPRESSAO_POSTERIOR, ");
|
||||
|
@ -87,10 +88,8 @@ public class RelatorioBilhetesCancelados extends Relatorio {
|
|||
sql.append(" left join ciudad co ON co.ciudad_id = p_origen.ciudad_id ");
|
||||
sql.append(" left join estado est ON est.estado_id = co.estado_id ");
|
||||
sql.append(" LEFT JOIN boleto utilizado ON (utilizado.boleto_id = b.transacaooriginal_id AND b.INDSTATUSBOLETO = 'E') ");
|
||||
|
||||
sql.append(" WHERE ");
|
||||
sql.append(" (b.indreimpresion = 0 OR b.INDSTATUSBOLETO = 'E') ");
|
||||
sql.append(" and m.EMPRESA_ID = :EMPRESA_ID ");
|
||||
sql.append(" LEFT JOIN motivo_cancelacion mc ON mc.motivocancelacion_id = b.motivocancelacion_id ");
|
||||
sql.append(" WHERE m.EMPRESA_ID = :EMPRESA_ID ");
|
||||
if (parametros.get(DATA_INICIAL) != null && parametros.get(DATA_FINAL) != null) {
|
||||
if (parametros.get(TIPO_DATA) != null) {
|
||||
if ((parametros.get(TIPO_DATA).toString().equals(DATA_VENDA))) {
|
||||
|
@ -178,9 +177,7 @@ public class RelatorioBilhetesCancelados extends Relatorio {
|
|||
dataResult.put("SENTIDO", rset.getInt("SENTIDO"));
|
||||
dataResult.put("COD_LINHA", rset.getString("COD_LINHA"));
|
||||
dataResult.put("DESC_LINHA", rset.getString("DESC_LINHA"));
|
||||
if (rset.getString("STATUS_PASSAGEM") != null) {
|
||||
dataResult.put("STATUS_PASSAGEM", IndStatusBoleto.valueOf(rset.getString("STATUS_PASSAGEM")).getValue());
|
||||
}
|
||||
dataResult.put("DESCMOTIVO", rset.getString("DESCMOTIVO"));
|
||||
dataResult.put("TARIFA", rset.getString("TARIFA"));
|
||||
dataResult.put("TX_EMBARQUE", rset.getString("TX_EMBARQUE"));
|
||||
dataResult.put("PEDAGIO", rset.getString("PEDAGIO"));
|
||||
|
|
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="RelatorioBilhetesCancelados" pageWidth="1266" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="1226" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="b92fb063-a827-4619-8a69-5c78e3afbb8c">
|
||||
<property name="ireport.zoom" value="4.279675059165056"/>
|
||||
<property name="ireport.x" value="0"/>
|
||||
<property name="ireport.y" value="198"/>
|
||||
<property name="ireport.x" value="3039"/>
|
||||
<property name="ireport.y" value="197"/>
|
||||
<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"/>
|
||||
|
@ -68,6 +68,7 @@
|
|||
<field name="PASSAGEIRO" class="java.lang.String"/>
|
||||
<field name="DOC" class="java.lang.String"/>
|
||||
<field name="LOCALIZADOR" class="java.lang.String"/>
|
||||
<field name="DESCMOTIVO" class="java.lang.String"/>
|
||||
<background>
|
||||
<band splitType="Stretch"/>
|
||||
</background>
|
||||
|
@ -330,7 +331,7 @@
|
|||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Status]]></text>
|
||||
<text><![CDATA[Mot. Can.]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="235c8f23-9c13-48cd-ab7a-e74363424caf" stretchType="RelativeToTallestObject" x="805" y="0" width="72" height="10" isPrintWhenDetailOverflows="true"/>
|
||||
|
@ -584,11 +585,11 @@
|
|||
<textFieldExpression><![CDATA[$F{SENTIDO} == 0 ? "Ida" : "Volta"]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="27ec5d64-d949-4b02-a4a7-d6c5db93b3bd" stretchType="RelativeToTallestObject" x="877" y="0" width="30" height="12" isPrintWhenDetailOverflows="true"/>
|
||||
<reportElement uuid="27ec5d64-d949-4b02-a4a7-d6c5db93b3bd" positionType="Float" x="877" y="0" width="30" height="12" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{STATUS_PASSAGEM}]]></textFieldExpression>
|
||||
<textFieldExpression><![CDATA[$F{DESCMOTIVO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="f5f01da5-4ea3-41ba-8b58-b1f7e8e70601" stretchType="RelativeToTallestObject" x="805" y="0" width="72" height="12" isPrintWhenDetailOverflows="true"/>
|
||||
|
|
|
@ -41,6 +41,7 @@ import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
|||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioVendasBilheteiro;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioVendasBilheteiroSelecionados;
|
||||
|
||||
@Controller("relatorioBilhetesCanceladosController")
|
||||
@Scope("prototype")
|
||||
|
@ -86,7 +87,7 @@ public class RelatorioBilhetesCanceladosController extends MyGenericForwardCompo
|
|||
lsTiposCancelamento = motivoCancelacionService.obtenerTodosEspecificos(escolhidos);
|
||||
motivosCancelacionList.setData(lsTiposCancelamento);
|
||||
puntoVentaList.setItemRenderer(new RenderRelatorioVendasBilheteiro());
|
||||
|
||||
puntoVentaSelList.setItemRenderer(new RenderRelatorioVendasBilheteiroSelecionados());
|
||||
}
|
||||
|
||||
public List<Empresa> getLsEmpresa() {
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
<listhead>
|
||||
<listheader
|
||||
label="${c:l('relatorioBilhetesCanceladosController.lbPuntoVenta.value')}" />
|
||||
<listheader width="35%"
|
||||
<listheader width="55%"
|
||||
label="${c:l('relatorioBilhetesCanceladosController.lbEmpresa.value')}" />
|
||||
<listheader width="20%"
|
||||
label="${c:l('relatorioBilhetesCanceladosController.lbNumero.value')}" />
|
||||
|
|
Loading…
Reference in New Issue