1
<?xml version="1.0" encoding="UTF-8"?>
2
<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="report_entradas_mensuales" language="groovy" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="AllSectionsNoDetail" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="0" isFloatColumnFooter="true" isIgnorePagination="true">
3
<property name="ireport.zoom" value="1.7715610000000017"/>
4
<property name="ireport.x" value="0"/>
5
<property name="ireport.y" value="46"/>
6
<style name="Title" fontName="SansSerif" fontSize="21" isBold="true" pdfFontName="Helvetica-Bold"/>
7
<style name="SubTitle" forecolor="#666666" fontName="SansSerif" fontSize="13"/>
8
<style name="Column header" forecolor="#FFFFFF" fill="Solid" fontName="SansSerif" fontSize="10" isBold="true">
9
<pen lineWidth="0.25" lineStyle="Dotted"/>
11
<topPen lineWidth="0.25" lineStyle="Dotted" lineColor="#C15E5E"/>
12
<leftPen lineWidth="0.25" lineStyle="Dotted" lineColor="#C15E5E"/>
13
<bottomPen lineWidth="0.25" lineStyle="Dotted" lineColor="#C15E5E"/>
14
<rightPen lineWidth="0.25" lineStyle="Dotted" lineColor="#C15E5E"/>
17
<style name="Detail" fill="Solid" fontName="SansSerif" fontSize="11">
19
<topPen lineWidth="0.25" lineStyle="Dotted" lineColor="#D63A3A"/>
20
<leftPen lineWidth="0.25" lineStyle="Dotted" lineColor="#D63A3A"/>
21
<bottomPen lineWidth="0.25" lineStyle="Dotted" lineColor="#D63A3A"/>
22
<rightPen lineWidth="0.25" lineStyle="Dotted" lineColor="#D63A3A"/>
25
<parameter name="company_name" class="java.lang.String"/>
26
<parameter name="report_name" class="java.lang.String"/>
27
<parameter name="user_name" class="java.lang.String"/>
29
<![CDATA[SELECT name_ubicacion, product, SUM(product_qty) AS product_qty, SUM(costs) AS costs, sum(cump) AS cump FROM report_monthly_purchases GROUP BY name_ubicacion, product ORDER BY name_ubicacion;]]>
31
<field name="name_ubicacion" class="java.lang.String"/>
32
<field name="product" class="java.lang.String"/>
33
<field name="product_qty" class="java.lang.Double"/>
34
<field name="costs" class="java.lang.Double"/>
35
<field name="cump" class="java.lang.Double"/>
37
<band splitType="Stretch"/>
40
<band height="104" splitType="Stretch">
42
<reportElement style="Title" x="118" y="0" width="684" height="58"/>
43
<textElement textAlignment="Right" verticalAlignment="Middle">
44
<font size="20" isBold="false"/>
46
<textFieldExpression class="java.lang.String"><![CDATA[$P{company_name}]]></textFieldExpression>
49
<reportElement style="SubTitle" x="118" y="58" width="684" height="23"/>
50
<textElement textAlignment="Right" verticalAlignment="Middle">
53
<textFieldExpression class="java.lang.String"><![CDATA[$P{report_name}]]></textFieldExpression>
55
<image scaleImage="FillFrame">
56
<reportElement x="0" y="4" width="118" height="77"/>
57
<imageExpression class="java.lang.String"><![CDATA["logo_mcm.gif"]]></imageExpression>
60
<reportElement x="0" y="81" width="802" height="23"/>
61
<textElement textAlignment="Right" verticalAlignment="Middle"/>
62
<textFieldExpression class="java.lang.String"><![CDATA["Impreso por: " + $P{user_name}]]></textFieldExpression>
67
<band splitType="Stretch"/>
70
<band height="15" splitType="Stretch">
72
<reportElement mode="Opaque" x="0" y="0" width="802" height="15" backcolor="#666666"/>
74
<reportElement style="Column header" x="0" y="0" width="323" height="15"/>
75
<box leftPadding="0" rightPadding="0"/>
76
<textElement verticalAlignment="Middle">
77
<font fontName="SansSerif" size="10"/>
79
<text><![CDATA[Ubicación]]></text>
82
<reportElement style="Column header" x="323" y="0" width="205" height="15"/>
83
<textElement verticalAlignment="Middle">
84
<font fontName="SansSerif" size="10"/>
86
<text><![CDATA[Producto]]></text>
89
<reportElement style="Column header" x="528" y="0" width="114" height="15"/>
90
<textElement verticalAlignment="Middle">
91
<font fontName="SansSerif" size="10"/>
93
<text><![CDATA[Cantidad]]></text>
96
<reportElement style="Column header" x="642" y="0" width="78" height="15"/>
97
<textElement textAlignment="Center" verticalAlignment="Middle">
98
<font fontName="SansSerif" size="10"/>
100
<text><![CDATA[Importe]]></text>
103
<reportElement style="Column header" x="720" y="0" width="82" height="15"/>
104
<textElement textAlignment="Center" verticalAlignment="Middle">
105
<font fontName="SansSerif" size="10"/>
107
<text><![CDATA[C. U.]]></text>
113
<band height="16" splitType="Stretch">
115
<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="802" height="16" isPrintWhenDetailOverflows="true"/>
117
<reportElement style="Detail" x="0" y="0" width="323" height="16"/>
118
<textElement verticalAlignment="Middle">
121
<textFieldExpression class="java.lang.String"><![CDATA[$F{name_ubicacion}]]></textFieldExpression>
124
<reportElement style="Detail" x="323" y="0" width="205" height="16"/>
125
<textElement verticalAlignment="Middle">
128
<textFieldExpression class="java.lang.String"><![CDATA[$F{product}]]></textFieldExpression>
130
<textField pattern="#,##0.00">
131
<reportElement style="Detail" x="528" y="0" width="114" height="16"/>
132
<textElement verticalAlignment="Middle">
135
<textFieldExpression class="java.lang.Double"><![CDATA[$F{product_qty}]]></textFieldExpression>
137
<textField pattern="¤ #,##0.00">
138
<reportElement style="Detail" x="642" y="0" width="78" height="16"/>
139
<textElement textAlignment="Right" verticalAlignment="Middle">
142
<textFieldExpression class="java.lang.Double"><![CDATA[$F{costs}]]></textFieldExpression>
144
<textField pattern="¤ #,##0.00">
145
<reportElement style="Detail" x="720" y="0" width="82" height="16"/>
146
<textElement textAlignment="Right" verticalAlignment="Middle">
149
<textFieldExpression class="java.lang.Double"><![CDATA[$F{cump}]]></textFieldExpression>
155
<band splitType="Stretch"/>
158
<band height="40" splitType="Stretch">
159
<textField pattern="EEEEE dd MMMMM yyyy">
160
<reportElement style="Column header" x="642" y="0" width="160" height="20" forecolor="#000000"/>
161
<textElement textAlignment="Right" verticalAlignment="Middle">
162
<font size="9" isBold="false"/>
164
<textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
167
<reportElement x="0" y="0" width="323" height="20"/>
168
<textElement verticalAlignment="Middle">
171
<textFieldExpression class="java.lang.String"><![CDATA[$P{report_name}]]></textFieldExpression>
176
<band splitType="Stretch"/>