<?xml version="1.0" encoding="iso-8859-1"?>
<turisoftreportfile title="Cancelaciones por canal y fechas" breakpoint="" group="">
	<parameters>
		<param name=":1" description="Desde fecha de entrada" type="DATE" order="2" show="yes" default="" />
		<param name=":2" description="Hasta fecha de entrada" type="DATE" order="3" show="yes" default="" />
		<param name=":3" description="Nombre del canal/agencia (o parte de él)" type="STRING" order="1" show="yes" default="" />
		<param name=":4" description="Desde fecha de cancelación" type="DATE" order="4" show="yes" default="" />
		<param name=":5" description="Hasta fecha de cancelación" type="DATE" order="5" show="yes" default="" />
	</parameters>
	<sql>SELECT
	RESERVA as contenedor_reservas."Reserva"
	,FECHA_REALIZADA AS contenedor_reservas."Realización"
	,FECHA_CANCELACION AS contenedor_reservas."Cancelación"
	,AGRUPACION_NOMBRE AS contenedor_reservas."Agrupación"
	,VIVIENDA AS contenedor_reservas."Vivienda"
	,DESDE AS contenedor_reservas."Entrada"
	,HASTA AS contenedor_reservas."Salida"
	,AGENCIA_NOMBRE AS contenedor_reservas."Canal"
	,INQUILINO_NOMBRE AS contenedor_reservas."Inquilino"
	,IMPORTE AS contenedor_reservas."Precio$E$SUM"
FROM 
	contenedor_reservas
WHERE 
	TIPO_RESERVA=&#39;CANCELADA&#39;
	AND DESDE &gt;= &#39;:1&#39;
	AND DESDE &lt;= &#39;:2&#39;
	AND FECHA_CANCELACION &gt;= &#39;:4&#39;
	AND FECHA_CANCELACION &lt;= &#39;:5&#39;
	AND UPPER(contenedor_reservas.AGENCIA_NOMBRE) LIKE UPPER(&#39;%:3%&#39;)
ORDER BY	
	FECHA_CANCELACION DESC
	,AGRUPACION_NOMBRE
	,VIVIENDA
	,DESDE</sql>
	<totals>
	</totals>
	<footer></footer>
</turisoftreportfile>
