src/org/openbravo/erpCommon/ad_reports/ReportInvoiceDiscountJR.jrxml
author David Baz Fayos <david.baz@openbravo.com>
Tue, 27 May 2008 15:26:10 +0000
changeset 1044 8691bbc94032
parent 726 dac2a1486bd3
child 1868 b462ce988fa2
permissions -rw-r--r--
Removed old frame parameter of windowTableId
juanpablo@726
     1
<?xml version="1.0" encoding="UTF-8"  ?>
juanpablo@726
     2
<!-- Created with iReport - A designer for JasperReports -->
juanpablo@726
     3
<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
juanpablo@726
     4
<jasperReport
juanpablo@726
     5
		 name="ReportInvoiceDiscountJR"
juanpablo@726
     6
		 columnCount="1"
juanpablo@726
     7
		 printOrder="Vertical"
juanpablo@726
     8
		 orientation="Portrait"
juanpablo@726
     9
		 pageWidth="595"
juanpablo@726
    10
		 pageHeight="842"
juanpablo@726
    11
		 columnWidth="535"
juanpablo@726
    12
		 columnSpacing="0"
juanpablo@726
    13
		 leftMargin="30"
juanpablo@726
    14
		 rightMargin="30"
juanpablo@726
    15
		 topMargin="20"
juanpablo@726
    16
		 bottomMargin="20"
juanpablo@726
    17
		 whenNoDataType="NoPages"
juanpablo@726
    18
		 isTitleNewPage="false"
juanpablo@726
    19
		 isSummaryNewPage="false">
juanpablo@726
    20
	<property name="ireport.scriptlethandling" value="0" />
juanpablo@726
    21
	<property name="ireport.encoding" value="UTF-8" />
juanpablo@726
    22
	<import value="java.util.*" />
juanpablo@726
    23
	<import value="net.sf.jasperreports.engine.*" />
juanpablo@726
    24
	<import value="net.sf.jasperreports.engine.data.*" />
juanpablo@726
    25
juanpablo@726
    26
	<style 
juanpablo@726
    27
		name="default"
juanpablo@726
    28
		isDefault="false"
juanpablo@726
    29
		vAlign="Middle"
juanpablo@726
    30
		fontName="Bitstream Vera Sans"
juanpablo@726
    31
		fontSize="10"
juanpablo@726
    32
	/>
juanpablo@726
    33
	<style 
juanpablo@726
    34
		name="Report_Title"
juanpablo@726
    35
		isDefault="false"
juanpablo@726
    36
		leftPadding="5"
juanpablo@726
    37
		fontName="Bitstream Vera Sans"
juanpablo@726
    38
		fontSize="18"
juanpablo@726
    39
	/>
juanpablo@726
    40
	<style 
juanpablo@726
    41
		name="Report_Subtitle"
juanpablo@726
    42
		isDefault="false"
juanpablo@726
    43
		forecolor="#555555"
juanpablo@726
    44
		leftPadding="5"
juanpablo@726
    45
		fontName="Bitstream Vera Sans"
juanpablo@726
    46
		fontSize="14"
juanpablo@726
    47
	/>
juanpablo@726
    48
	<style 
juanpablo@726
    49
		name="Total_Field"
juanpablo@726
    50
		isDefault="false"
juanpablo@726
    51
		mode="Opaque"
juanpablo@726
    52
		forecolor="#000000"
juanpablo@726
    53
		backcolor="#CCCCCC"
juanpablo@726
    54
		vAlign="Middle"
juanpablo@726
    55
		leftPadding="5"
juanpablo@726
    56
	/>
juanpablo@726
    57
	<style 
juanpablo@726
    58
		name="Detail_Header"
juanpablo@726
    59
		isDefault="false"
juanpablo@726
    60
		mode="Opaque"
juanpablo@726
    61
		forecolor="#FFFFFF"
juanpablo@726
    62
		backcolor="#555555"
juanpablo@726
    63
		vAlign="Middle"
juanpablo@726
    64
		leftBorder="1Point"
juanpablo@726
    65
		leftBorderColor="#FFFFFF"
juanpablo@726
    66
		leftPadding="5"
juanpablo@726
    67
		rightBorder="1Point"
juanpablo@726
    68
		rightBorderColor="#FFFFFF"
juanpablo@726
    69
	/>
juanpablo@726
    70
	<style 
juanpablo@726
    71
		name="GroupHeader_DarkGray"
juanpablo@726
    72
		isDefault="false"
juanpablo@726
    73
		mode="Opaque"
juanpablo@726
    74
		forecolor="#FFFFFF"
juanpablo@726
    75
		backcolor="#555555"
juanpablo@726
    76
		vAlign="Middle"
juanpablo@726
    77
		leftPadding="5"
juanpablo@726
    78
		fontName="Bitstream Vera Sans"
juanpablo@726
    79
		fontSize="14"
juanpablo@726
    80
	/>
juanpablo@726
    81
	<style 
juanpablo@726
    82
		name="GroupHeader_Gray"
juanpablo@726
    83
		isDefault="false"
juanpablo@726
    84
		mode="Opaque"
juanpablo@726
    85
		backcolor="#999999"
juanpablo@726
    86
	/>
juanpablo@726
    87
	<style 
juanpablo@726
    88
		name="Detail_Line"
juanpablo@726
    89
		isDefault="false"
juanpablo@726
    90
	>
juanpablo@726
    91
juanpablo@726
    92
		<conditionalStyle>
juanpablo@726
    93
			<conditionExpression><![CDATA[new Boolean($V{NAME_COUNT}.intValue()%2==1)]]></conditionExpression>
juanpablo@726
    94
			<style 
juanpablo@726
    95
				name="Detail_Line"
juanpablo@726
    96
				isDefault="false"
juanpablo@726
    97
				mode="Opaque"
juanpablo@726
    98
				backcolor="#CCCCCC"
juanpablo@726
    99
			/>
juanpablo@726
   100
		</conditionalStyle>
juanpablo@726
   101
	</style>
juanpablo@726
   102
	<style 
juanpablo@726
   103
		name="Total_Gray"
juanpablo@726
   104
		isDefault="false"
juanpablo@726
   105
		mode="Opaque"
juanpablo@726
   106
		forecolor="#000000"
juanpablo@726
   107
		backcolor="#CCCCCC"
juanpablo@726
   108
	/>
juanpablo@726
   109
juanpablo@726
   110
	<parameter name="ATTACH" isForPrompting="false" class="java.lang.String"/>
juanpablo@726
   111
	<parameter name="BASE_WEB" isForPrompting="false" class="java.lang.String"/>
juanpablo@726
   112
	<parameter name="BASE_DESIGN" isForPrompting="false" class="java.lang.String"/>
juanpablo@726
   113
	<parameter name="LANGUAGE" isForPrompting="false" class="java.lang.String">
juanpablo@726
   114
		<defaultValueExpression ><![CDATA["en_US"]]></defaultValueExpression>
juanpablo@726
   115
	</parameter>
juanpablo@726
   116
	<parameter name="USER_CLIENT" isForPrompting="false" class="java.lang.String">
juanpablo@726
   117
		<defaultValueExpression ><![CDATA["(1000000)"]]></defaultValueExpression>
juanpablo@726
   118
	</parameter>
juanpablo@726
   119
	<parameter name="USER_ORG" isForPrompting="false" class="java.lang.String">
juanpablo@726
   120
		<defaultValueExpression ><![CDATA["(0)"]]></defaultValueExpression>
juanpablo@726
   121
	</parameter>
juanpablo@726
   122
	<parameter name="REPORT_TITLE" isForPrompting="false" class="java.lang.String">
juanpablo@726
   123
		<defaultValueExpression ><![CDATA["REPORT TITLE"]]></defaultValueExpression>
juanpablo@726
   124
	</parameter>
juanpablo@726
   125
	<parameter name="REPORT_SUBTITLE" isForPrompting="false" class="java.lang.String"/>
juanpablo@726
   126
	<parameter name="NUMBERFORMAT" isForPrompting="false" class="java.text.DecimalFormat"/>
juanpablo@726
   127
	<parameter name="LOCALE" isForPrompting="false" class="java.util.Locale"/>
carlos@0
   128
	<queryString><![CDATA[SELECT C_BPARTNER_ID as ID, NAME, PRODUCTNAME, QTY,UOM, ROUND(TOTALLINE/QTY,3) AS PRICEACTUAL, TOTALLINE, ROUND(TOTALLINEDISCOUNT/QTY,3) AS REALPRICE, TOTALLINEDISCOUNT,
carlos@0
   129
        (ROUND((ROUND(TOTALLINE/QTY,3)-ROUND(TOTALLINEDISCOUNT/QTY,3))/ROUND(TOTALLINE/QTY,3),2))*100 AS DISCOUNT,
carlos@0
   130
        (CASE (ROUND((ROUND(TOTALLINE/QTY,3)-ROUND(TOTALLINEDISCOUNT/QTY,3))/ROUND(TOTALLINE/QTY,3),2))*100 WHEN 0 THEN 'DerechaMedio' ELSE 'BordesRojoClaro' END) AS CLASS_DESIGN,
carlos@0
   131
        WEIGHT
carlos@0
   132
        FROM (
carlos@0
   133
        SELECT C_BPARTNER.C_BPARTNER_ID, C_BPARTNER.NAME, M_PRODUCT.NAME AS PRODUCTNAME, C_UOM.UOMSYMBOL AS UOM, SUM(C_INVOICELINE.QTYINVOICED) AS QTY, ROUND(SUM(LINENETAMT),2) AS TOTALLINE, 
carlos@0
   134
        ROUND(SUM(LINENETAMT*(1-COALESCE(DISCOUNTPERUNIT,0))),2) AS TOTALLINEDISCOUNT, SUM(C_INVOICELINE.QTYINVOICED)*COALESCE(M_PRODUCT.WEIGHT,0) AS WEIGHT
carlos@0
   135
        FROM C_INVOICELINE left join
carlos@0
   136
          (SELECT C_INVOICE_ID, DISCOUNTLINES/(TOTALLINES+DISCOUNTLINES) AS DISCOUNTPERUNIT 
carlos@0
   137
          FROM (SELECT I.C_INVOICE_ID, I.TOTALLINES, -SUM(LINENETAMT) AS DISCOUNTLINES FROM C_INVOICE I, C_INVOICELINE IL 
carlos@0
   138
          WHERE I.C_INVOICE_ID = IL.C_INVOICE_ID 
carlos@0
   139
          AND IL.C_INVOICE_DISCOUNT_ID IS NOT NULL 
carlos@0
   140
          GROUP BY I.C_INVOICE_ID, I.TOTALLINES) BB) A on C_INVOICELINE.C_INVOICE_ID = A.C_INVOICE_ID
carlos@0
   141
          left join C_INVOICE on C_INVOICELINE.C_INVOICE_ID = C_INVOICE.C_INVOICE_ID,
carlos@0
   142
        M_PRODUCT, C_BPARTNER,  C_UOM
carlos@0
   143
        WHERE  C_INVOICELINE.C_INVOICE_DISCOUNT_ID IS NULL
carlos@0
   144
        AND C_INVOICELINE.M_PRODUCT_ID = M_PRODUCT.M_PRODUCT_ID
carlos@0
   145
        AND M_PRODUCT.C_UOM_ID = C_UOM.C_UOM_ID
carlos@0
   146
        AND C_INVOICE.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID
carlos@0
   147
        AND C_INVOICE.ISSOTRX='Y'
carlos@0
   148
	AND PRICEACTUAL<>0
carlos@0
   149
	 GROUP BY C_BPARTNER.C_BPARTNER_ID, C_BPARTNER.NAME, M_PRODUCT.NAME, C_UOM.UOMSYMBOL, M_PRODUCT.WEIGHT) AA
carlos@0
   150
        WHERE QTY<>0
juanpablo@726
   151
	ORDER BY NAME]]></queryString>
juanpablo@726
   152
juanpablo@726
   153
	<field name="ID" class="java.math.BigDecimal"/>
juanpablo@726
   154
	<field name="NAME" class="java.lang.String"/>
juanpablo@726
   155
	<field name="PRODUCTNAME" class="java.lang.String"/>
juanpablo@726
   156
	<field name="QTY" class="java.math.BigDecimal"/>
juanpablo@726
   157
	<field name="UOM" class="java.lang.String"/>
juanpablo@726
   158
	<field name="PRICEACTUAL" class="java.math.BigDecimal"/>
juanpablo@726
   159
	<field name="TOTALLINE" class="java.math.BigDecimal"/>
juanpablo@726
   160
	<field name="REALPRICE" class="java.math.BigDecimal"/>
juanpablo@726
   161
	<field name="TOTALLINEDISCOUNT" class="java.math.BigDecimal"/>
juanpablo@726
   162
	<field name="DISCOUNT" class="java.math.BigDecimal"/>
juanpablo@726
   163
	<field name="CLASS_DESIGN" class="java.lang.String"/>
juanpablo@726
   164
	<field name="WEIGHT" class="java.math.BigDecimal"/>
juanpablo@726
   165
juanpablo@726
   166
	<variable name="totalWeight" class="java.math.BigDecimal" resetType="Report" calculation="Sum">
juanpablo@726
   167
		<variableExpression><![CDATA[$F{WEIGHT}]]></variableExpression>
juanpablo@726
   168
	</variable>
juanpablo@726
   169
	<variable name="totalLine" class="java.math.BigDecimal" resetType="Report" calculation="Sum">
juanpablo@726
   170
		<variableExpression><![CDATA[$F{TOTALLINE}]]></variableExpression>
juanpablo@726
   171
	</variable>
juanpablo@726
   172
	<variable name="totalWeightDetail" class="java.math.BigDecimal" resetType="Group" resetGroup="NAME" calculation="Sum">
juanpablo@726
   173
		<variableExpression><![CDATA[$F{WEIGHT}]]></variableExpression>
juanpablo@726
   174
	</variable>
juanpablo@726
   175
	<variable name="totalLineDetail" class="java.math.BigDecimal" resetType="Group" resetGroup="NAME" calculation="Sum">
juanpablo@726
   176
		<variableExpression><![CDATA[$F{TOTALLINE}]]></variableExpression>
juanpablo@726
   177
	</variable>
juanpablo@726
   178
	<variable name="totalLineDiscountDetail" class="java.math.BigDecimal" resetType="Group" resetGroup="NAME" calculation="Sum">
juanpablo@726
   179
		<variableExpression><![CDATA[$F{TOTALLINEDISCOUNT}]]></variableExpression>
juanpablo@726
   180
	</variable>
juanpablo@726
   181
	<variable name="totalLineDiscount" class="java.math.BigDecimal" resetType="Report" calculation="Sum">
juanpablo@726
   182
		<variableExpression><![CDATA[$F{TOTALLINEDISCOUNT}]]></variableExpression>
juanpablo@726
   183
	</variable>
juanpablo@726
   184
juanpablo@726
   185
		<group  name="NAME" >
juanpablo@726
   186
			<groupExpression><![CDATA[$F{NAME}]]></groupExpression>
juanpablo@726
   187
			<groupHeader>
juanpablo@726
   188
			<band height="67"  isSplitAllowed="true" >
juanpablo@726
   189
				<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   190
					<reportElement
carlos@0
   191
						style="GroupHeader_DarkGray"
carlos@0
   192
						x="0"
carlos@0
   193
						y="0"
carlos@0
   194
						width="535"
carlos@0
   195
						height="23"
juanpablo@726
   196
						key="textField"/>
juanpablo@726
   197
					<box topBorder="None" topBorderColor="#000000" topPadding="2" leftBorder="None" leftBorderColor="#000000" leftPadding="5" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   198
					<textElement>
juanpablo@726
   199
						<font fontName="Bitstream Vera Sans" pdfFontName="Helvetica"/>
juanpablo@726
   200
					</textElement>
juanpablo@726
   201
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{NAME}]]></textFieldExpression>
juanpablo@726
   202
				</textField>
juanpablo@726
   203
				<line direction="TopDown">
carlos@0
   204
					<reportElement
carlos@0
   205
						x="0"
carlos@0
   206
						y="23"
carlos@0
   207
						width="0"
carlos@0
   208
						height="44"
carlos@0
   209
						forecolor="#555555"
carlos@0
   210
						key="line-2"
juanpablo@726
   211
						stretchType="RelativeToBandHeight"/>
juanpablo@726
   212
					<graphicElement stretchType="RelativeToBandHeight" pen="2Point"/>
juanpablo@726
   213
				</line>
juanpablo@726
   214
				<line direction="TopDown">
carlos@0
   215
					<reportElement
carlos@0
   216
						x="535"
carlos@0
   217
						y="0"
carlos@0
   218
						width="0"
carlos@0
   219
						height="67"
carlos@0
   220
						forecolor="#555555"
carlos@0
   221
						key="line-3"
juanpablo@726
   222
						stretchType="RelativeToBandHeight"/>
juanpablo@726
   223
					<graphicElement stretchType="RelativeToBandHeight" pen="2Point"/>
juanpablo@726
   224
				</line>
juanpablo@726
   225
				<staticText>
carlos@0
   226
					<reportElement
carlos@0
   227
						style="Detail_Header"
carlos@0
   228
						mode="Opaque"
carlos@0
   229
						x="331"
carlos@0
   230
						y="50"
carlos@0
   231
						width="57"
carlos@0
   232
						height="16"
juanpablo@726
   233
						key="element-90"/>
juanpablo@726
   234
					<box topBorder="None" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#FFFFFF" leftPadding="5" rightBorder="1Point" rightBorderColor="#FFFFFF" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   235
					<textElement textAlignment="Center">
juanpablo@726
   236
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   237
					</textElement>
juanpablo@726
   238
				<text><![CDATA[Amt.]]></text>
juanpablo@726
   239
				</staticText>
juanpablo@726
   240
				<staticText>
carlos@0
   241
					<reportElement
carlos@0
   242
						style="Detail_Header"
carlos@0
   243
						x="444"
carlos@0
   244
						y="50"
carlos@0
   245
						width="57"
carlos@0
   246
						height="16"
juanpablo@726
   247
						key="element-90"/>
juanpablo@726
   248
					<box topBorder="None" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#FFFFFF" leftPadding="5" rightBorder="1Point" rightBorderColor="#FFFFFF" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   249
					<textElement textAlignment="Center">
juanpablo@726
   250
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   251
					</textElement>
juanpablo@726
   252
				<text><![CDATA[Real Amt.]]></text>
juanpablo@726
   253
				</staticText>
juanpablo@726
   254
				<staticText>
carlos@0
   255
					<reportElement
carlos@0
   256
						style="Detail_Header"
carlos@0
   257
						x="3"
carlos@0
   258
						y="50"
carlos@0
   259
						width="142"
carlos@0
   260
						height="16"
juanpablo@726
   261
						key="element-90"/>
juanpablo@726
   262
					<box topBorder="None" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#FFFFFF" leftPadding="5" rightBorder="1Point" rightBorderColor="#FFFFFF" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   263
					<textElement>
juanpablo@726
   264
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   265
					</textElement>
juanpablo@726
   266
				<text><![CDATA[Article]]></text>
juanpablo@726
   267
				</staticText>
juanpablo@726
   268
				<staticText>
carlos@0
   269
					<reportElement
carlos@0
   270
						style="Detail_Header"
carlos@0
   271
						x="145"
carlos@0
   272
						y="50"
carlos@0
   273
						width="45"
carlos@0
   274
						height="16"
juanpablo@726
   275
						key="element-90"/>
juanpablo@726
   276
					<box topBorder="None" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#FFFFFF" leftPadding="5" rightBorder="1Point" rightBorderColor="#FFFFFF" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   277
					<textElement textAlignment="Left">
juanpablo@726
   278
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   279
					</textElement>
juanpablo@726
   280
				<text><![CDATA[Quantity]]></text>
juanpablo@726
   281
				</staticText>
juanpablo@726
   282
				<staticText>
carlos@0
   283
					<reportElement
carlos@0
   284
						style="Detail_Header"
carlos@0
   285
						x="190"
carlos@0
   286
						y="50"
carlos@0
   287
						width="27"
carlos@0
   288
						height="16"
juanpablo@726
   289
						key="element-90"/>
juanpablo@726
   290
					<box topBorder="None" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#FFFFFF" leftPadding="5" rightBorder="1Point" rightBorderColor="#FFFFFF" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   291
					<textElement>
juanpablo@726
   292
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   293
					</textElement>
juanpablo@726
   294
				<text><![CDATA[#]]></text>
juanpablo@726
   295
				</staticText>
juanpablo@726
   296
				<staticText>
carlos@0
   297
					<reportElement
carlos@0
   298
						style="Detail_Header"
carlos@0
   299
						x="217"
carlos@0
   300
						y="50"
carlos@0
   301
						width="57"
carlos@0
   302
						height="16"
juanpablo@726
   303
						key="element-90"/>
juanpablo@726
   304
					<box topBorder="None" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#FFFFFF" leftPadding="5" rightBorder="1Point" rightBorderColor="#FFFFFF" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   305
					<textElement textAlignment="Left">
juanpablo@726
   306
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   307
					</textElement>
juanpablo@726
   308
				<text><![CDATA[Weight]]></text>
juanpablo@726
   309
				</staticText>
juanpablo@726
   310
				<staticText>
carlos@0
   311
					<reportElement
carlos@0
   312
						style="Detail_Header"
carlos@0
   313
						x="274"
carlos@0
   314
						y="50"
carlos@0
   315
						width="57"
carlos@0
   316
						height="16"
juanpablo@726
   317
						key="element-90"/>
juanpablo@726
   318
					<box topBorder="None" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#FFFFFF" leftPadding="5" rightBorder="1Point" rightBorderColor="#FFFFFF" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   319
					<textElement>
juanpablo@726
   320
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   321
					</textElement>
juanpablo@726
   322
				<text><![CDATA[Avg. Pr.]]></text>
juanpablo@726
   323
				</staticText>
juanpablo@726
   324
				<staticText>
carlos@0
   325
					<reportElement
carlos@0
   326
						style="Detail_Header"
carlos@0
   327
						x="501"
carlos@0
   328
						y="50"
carlos@0
   329
						width="33"
carlos@0
   330
						height="16"
juanpablo@726
   331
						key="element-90"/>
juanpablo@726
   332
					<box topBorder="None" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#FFFFFF" leftPadding="5" rightBorder="1Point" rightBorderColor="#FFFFFF" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   333
					<textElement textAlignment="Center">
juanpablo@726
   334
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   335
					</textElement>
juanpablo@726
   336
				<text><![CDATA[Disc.]]></text>
juanpablo@726
   337
				</staticText>
juanpablo@726
   338
				<staticText>
carlos@0
   339
					<reportElement
carlos@0
   340
						style="Detail_Header"
carlos@0
   341
						x="388"
carlos@0
   342
						y="50"
carlos@0
   343
						width="56"
carlos@0
   344
						height="16"
juanpablo@726
   345
						key="element-90"/>
juanpablo@726
   346
					<box topBorder="None" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#FFFFFF" leftPadding="5" rightBorder="1Point" rightBorderColor="#FFFFFF" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   347
					<textElement textAlignment="Center">
juanpablo@726
   348
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   349
					</textElement>
juanpablo@726
   350
				<text><![CDATA[Avg. Net Pr.]]></text>
juanpablo@726
   351
				</staticText>
juanpablo@726
   352
			</band>
juanpablo@726
   353
			</groupHeader>
juanpablo@726
   354
			<groupFooter>
juanpablo@726
   355
			<band height="30"  isSplitAllowed="true" >
juanpablo@726
   356
				<elementGroup><!--  Start: 1 !-->
juanpablo@726
   357
				<line direction="TopDown">
carlos@0
   358
					<reportElement
carlos@0
   359
						x="0"
carlos@0
   360
						y="0"
carlos@0
   361
						width="0"
carlos@0
   362
						height="30"
carlos@0
   363
						forecolor="#555555"
carlos@0
   364
						key="line-32"
juanpablo@726
   365
						stretchType="RelativeToBandHeight"/>
juanpablo@726
   366
					<graphicElement stretchType="RelativeToBandHeight" pen="2Point"/>
juanpablo@726
   367
				</line>
juanpablo@726
   368
				</elementGroup><!-- End 1 !-->
juanpablo@726
   369
				<line direction="TopDown">
carlos@0
   370
					<reportElement
carlos@0
   371
						x="535"
carlos@0
   372
						y="0"
carlos@0
   373
						width="0"
carlos@0
   374
						height="30"
carlos@0
   375
						forecolor="#555555"
carlos@0
   376
						key="line-33"
juanpablo@726
   377
						stretchType="RelativeToBandHeight"/>
juanpablo@726
   378
					<graphicElement stretchType="RelativeToBandHeight" pen="2Point"/>
juanpablo@726
   379
				</line>
juanpablo@726
   380
				<line direction="TopDown">
carlos@0
   381
					<reportElement
carlos@0
   382
						x="1"
carlos@0
   383
						y="29"
carlos@0
   384
						width="534"
carlos@0
   385
						height="0"
carlos@0
   386
						forecolor="#555555"
juanpablo@726
   387
						key="line-34"/>
juanpablo@726
   388
					<graphicElement stretchType="NoStretch" pen="2Point"/>
juanpablo@726
   389
				</line>
juanpablo@726
   390
				<staticText>
carlos@0
   391
					<reportElement
carlos@0
   392
						style="GroupHeader_Gray"
carlos@0
   393
						mode="Transparent"
carlos@0
   394
						x="145"
carlos@0
   395
						y="8"
carlos@0
   396
						width="69"
carlos@0
   397
						height="16"
juanpablo@726
   398
						key="staticText-6"/>
juanpablo@726
   399
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="5" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   400
					<textElement textAlignment="Right">
juanpablo@726
   401
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   402
					</textElement>
juanpablo@726
   403
				<text><![CDATA[Total:]]></text>
juanpablo@726
   404
				</staticText>
juanpablo@726
   405
				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   406
					<reportElement
carlos@0
   407
						style="Total_Gray"
carlos@0
   408
						x="331"
carlos@0
   409
						y="8"
carlos@0
   410
						width="113"
carlos@0
   411
						height="16"
juanpablo@726
   412
						key="textField"/>
juanpablo@726
   413
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   414
					<textElement>
juanpablo@726
   415
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   416
					</textElement>
juanpablo@726
   417
				<textFieldExpression   class="java.lang.String"><![CDATA[($V{totalLineDetail}!=null)?$P{NUMBERFORMAT}.format($V{totalLineDetail}):new String(" ")]]></textFieldExpression>
juanpablo@726
   418
				</textField>
juanpablo@726
   419
				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   420
					<reportElement
carlos@0
   421
						style="Total_Gray"
carlos@0
   422
						x="217"
carlos@0
   423
						y="8"
carlos@0
   424
						width="114"
carlos@0
   425
						height="16"
juanpablo@726
   426
						key="textField"/>
juanpablo@726
   427
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   428
					<textElement>
juanpablo@726
   429
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   430
					</textElement>
juanpablo@726
   431
				<textFieldExpression   class="java.lang.String"><![CDATA[($V{totalWeightDetail}!=null)?$P{NUMBERFORMAT}.format($V{totalWeightDetail}):new String(" ")]]></textFieldExpression>
juanpablo@726
   432
				</textField>
juanpablo@726
   433
				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   434
					<reportElement
carlos@0
   435
						style="Total_Gray"
carlos@0
   436
						x="444"
carlos@0
   437
						y="8"
carlos@0
   438
						width="89"
carlos@0
   439
						height="16"
juanpablo@726
   440
						key="textField"/>
juanpablo@726
   441
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   442
					<textElement>
juanpablo@726
   443
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   444
					</textElement>
juanpablo@726
   445
				<textFieldExpression   class="java.lang.String"><![CDATA[($V{totalLineDiscountDetail}!=null)?$P{NUMBERFORMAT}.format($V{totalLineDiscountDetail}):new String(" ")]]></textFieldExpression>
juanpablo@726
   446
				</textField>
juanpablo@726
   447
				<line direction="TopDown">
carlos@0
   448
					<reportElement
carlos@0
   449
						x="3"
carlos@0
   450
						y="0"
carlos@0
   451
						width="531"
carlos@0
   452
						height="0"
juanpablo@726
   453
						key="line-35"/>
juanpablo@726
   454
					<graphicElement stretchType="NoStretch"/>
juanpablo@726
   455
				</line>
juanpablo@726
   456
			</band>
juanpablo@726
   457
			</groupFooter>
juanpablo@726
   458
		</group>
juanpablo@726
   459
		<background>
juanpablo@726
   460
			<band height="0"  isSplitAllowed="true" >
juanpablo@726
   461
			</band>
juanpablo@726
   462
		</background>
juanpablo@726
   463
		<title>
juanpablo@726
   464
			<band height="0"  isSplitAllowed="true" >
juanpablo@726
   465
			</band>
juanpablo@726
   466
		</title>
juanpablo@726
   467
		<pageHeader>
juanpablo@726
   468
			<band height="60"  isSplitAllowed="true" >
juanpablo@726
   469
				<textField isStretchWithOverflow="true" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   470
					<reportElement
carlos@0
   471
						style="Report_Title"
carlos@0
   472
						mode="Transparent"
carlos@0
   473
						x="0"
carlos@0
   474
						y="7"
carlos@0
   475
						width="535"
carlos@0
   476
						height="30"
juanpablo@726
   477
						key="textField"/>
juanpablo@726
   478
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="5" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   479
					<textElement>
juanpablo@726
   480
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   481
					</textElement>
juanpablo@726
   482
				<textFieldExpression   class="java.lang.String"><![CDATA[$P{REPORT_TITLE}]]></textFieldExpression>
juanpablo@726
   483
				</textField>
juanpablo@726
   484
				<line direction="TopDown">
carlos@0
   485
					<reportElement
carlos@0
   486
						x="0"
carlos@0
   487
						y="38"
carlos@0
   488
						width="535"
carlos@0
   489
						height="0"
juanpablo@726
   490
						key="line-1"/>
juanpablo@726
   491
					<graphicElement stretchType="NoStretch" pen="2Point"/>
juanpablo@726
   492
				</line>
juanpablo@726
   493
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   494
					<reportElement
carlos@0
   495
						x="0"
carlos@0
   496
						y="39"
carlos@0
   497
						width="535"
carlos@0
   498
						height="21"
juanpablo@726
   499
						key="textField"/>
juanpablo@726
   500
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   501
					<textElement>
juanpablo@726
   502
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   503
					</textElement>
juanpablo@726
   504
				<textFieldExpression   class="java.lang.String"><![CDATA[$P{REPORT_SUBTITLE}]]></textFieldExpression>
juanpablo@726
   505
				</textField>
juanpablo@726
   506
			</band>
juanpablo@726
   507
		</pageHeader>
juanpablo@726
   508
		<columnHeader>
juanpablo@726
   509
			<band height="20"  isSplitAllowed="true" >
juanpablo@726
   510
			</band>
juanpablo@726
   511
		</columnHeader>
juanpablo@726
   512
		<detail>
juanpablo@726
   513
			<band height="16"  isSplitAllowed="true" >
juanpablo@726
   514
				<line direction="TopDown">
carlos@0
   515
					<reportElement
carlos@0
   516
						x="535"
carlos@0
   517
						y="0"
carlos@0
   518
						width="0"
carlos@0
   519
						height="16"
carlos@0
   520
						forecolor="#555555"
carlos@0
   521
						key="line-16"
juanpablo@726
   522
						stretchType="RelativeToBandHeight"/>
juanpablo@726
   523
					<graphicElement stretchType="RelativeToBandHeight" pen="2Point"/>
juanpablo@726
   524
				</line>
juanpablo@726
   525
				<line direction="TopDown">
carlos@0
   526
					<reportElement
carlos@0
   527
						x="0"
carlos@0
   528
						y="0"
carlos@0
   529
						width="0"
carlos@0
   530
						height="16"
carlos@0
   531
						forecolor="#555555"
carlos@0
   532
						key="line-17"
juanpablo@726
   533
						stretchType="RelativeToBandHeight"/>
juanpablo@726
   534
					<graphicElement stretchType="RelativeToBandHeight" pen="2Point"/>
juanpablo@726
   535
				</line>
juanpablo@726
   536
				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   537
					<reportElement
carlos@0
   538
						style="Detail_Line"
carlos@0
   539
						x="332"
carlos@0
   540
						y="0"
carlos@0
   541
						width="57"
carlos@0
   542
						height="16"
carlos@0
   543
						key="textField"
juanpablo@726
   544
						stretchType="RelativeToBandHeight"/>
juanpablo@726
   545
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="1Point" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   546
					<textElement textAlignment="Left" verticalAlignment="Middle">
juanpablo@726
   547
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   548
					</textElement>
juanpablo@726
   549
				<textFieldExpression   class="java.lang.String"><![CDATA[($F{TOTALLINE}!=null)?$P{NUMBERFORMAT}.format($F{TOTALLINE}):new String(" ")]]></textFieldExpression>
juanpablo@726
   550
				</textField>
juanpablo@726
   551
				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   552
					<reportElement
carlos@0
   553
						style="Detail_Line"
carlos@0
   554
						x="445"
carlos@0
   555
						y="0"
carlos@0
   556
						width="56"
carlos@0
   557
						height="16"
carlos@0
   558
						key="textField"
juanpablo@726
   559
						stretchType="RelativeToBandHeight"/>
juanpablo@726
   560
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="1Point" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   561
					<textElement textAlignment="Left" verticalAlignment="Middle">
juanpablo@726
   562
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   563
					</textElement>
juanpablo@726
   564
				<textFieldExpression   class="java.lang.String"><![CDATA[($F{TOTALLINEDISCOUNT}!=null)?$P{NUMBERFORMAT}.format($F{TOTALLINEDISCOUNT}):new String(" ")]]></textFieldExpression>
juanpablo@726
   565
				</textField>
juanpablo@726
   566
				<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   567
					<reportElement
carlos@0
   568
						style="Detail_Line"
carlos@0
   569
						x="3"
carlos@0
   570
						y="0"
carlos@0
   571
						width="142"
carlos@0
   572
						height="16"
carlos@0
   573
						key="textField"
juanpablo@726
   574
						stretchType="RelativeToBandHeight"/>
juanpablo@726
   575
					<box topBorder="None" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#000000" leftPadding="2" rightBorder="1Point" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   576
					<textElement verticalAlignment="Middle">
juanpablo@726
   577
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   578
					</textElement>
juanpablo@726
   579
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{PRODUCTNAME}]]></textFieldExpression>
juanpablo@726
   580
				</textField>
juanpablo@726
   581
				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   582
					<reportElement
carlos@0
   583
						style="Detail_Line"
carlos@0
   584
						x="145"
carlos@0
   585
						y="0"
carlos@0
   586
						width="45"
carlos@0
   587
						height="16"
carlos@0
   588
						key="textField"
juanpablo@726
   589
						stretchType="RelativeToBandHeight"/>
juanpablo@726
   590
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="1Point" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   591
					<textElement textAlignment="Left" verticalAlignment="Middle">
juanpablo@726
   592
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   593
					</textElement>
juanpablo@726
   594
				<textFieldExpression   class="java.lang.String"><![CDATA[($F{QTY}!=null)?$P{NUMBERFORMAT}.format($F{QTY}):new String(" ")]]></textFieldExpression>
juanpablo@726
   595
				</textField>
juanpablo@726
   596
				<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   597
					<reportElement
carlos@0
   598
						style="Detail_Line"
carlos@0
   599
						x="190"
carlos@0
   600
						y="0"
carlos@0
   601
						width="28"
carlos@0
   602
						height="16"
carlos@0
   603
						key="textField"
juanpablo@726
   604
						stretchType="RelativeToBandHeight"/>
juanpablo@726
   605
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="1Point" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   606
					<textElement textAlignment="Left" verticalAlignment="Middle">
juanpablo@726
   607
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   608
					</textElement>
juanpablo@726
   609
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{UOM}]]></textFieldExpression>
juanpablo@726
   610
				</textField>
juanpablo@726
   611
				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   612
					<reportElement
carlos@0
   613
						style="Detail_Line"
carlos@0
   614
						x="218"
carlos@0
   615
						y="0"
carlos@0
   616
						width="57"
carlos@0
   617
						height="16"
carlos@0
   618
						key="textField"
juanpablo@726
   619
						stretchType="RelativeToBandHeight"/>
juanpablo@726
   620
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="1Point" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   621
					<textElement textAlignment="Left" verticalAlignment="Middle">
juanpablo@726
   622
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   623
					</textElement>
juanpablo@726
   624
				<textFieldExpression   class="java.lang.String"><![CDATA[($F{WEIGHT}!=null)?$P{NUMBERFORMAT}.format($F{WEIGHT}):new String(" ")]]></textFieldExpression>
juanpablo@726
   625
				</textField>
juanpablo@726
   626
				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   627
					<reportElement
carlos@0
   628
						style="Detail_Line"
carlos@0
   629
						x="275"
carlos@0
   630
						y="0"
carlos@0
   631
						width="57"
carlos@0
   632
						height="16"
carlos@0
   633
						key="textField"
juanpablo@726
   634
						stretchType="RelativeToBandHeight"/>
juanpablo@726
   635
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="1Point" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   636
					<textElement textAlignment="Left" verticalAlignment="Middle">
juanpablo@726
   637
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   638
					</textElement>
juanpablo@726
   639
				<textFieldExpression   class="java.lang.String"><![CDATA[($F{PRICEACTUAL}!=null)?$P{NUMBERFORMAT}.format($F{PRICEACTUAL}):new String(" ")]]></textFieldExpression>
juanpablo@726
   640
				</textField>
juanpablo@726
   641
				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   642
					<reportElement
carlos@0
   643
						style="Detail_Line"
carlos@0
   644
						x="501"
carlos@0
   645
						y="0"
carlos@0
   646
						width="33"
carlos@0
   647
						height="16"
carlos@0
   648
						key="textField"
juanpablo@726
   649
						stretchType="RelativeToBandHeight"/>
juanpablo@726
   650
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="1Point" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   651
					<textElement textAlignment="Left" verticalAlignment="Middle">
juanpablo@726
   652
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   653
					</textElement>
juanpablo@726
   654
				<textFieldExpression   class="java.lang.String"><![CDATA[($F{DISCOUNT}!=null)?$P{NUMBERFORMAT}.format($F{DISCOUNT}):new String(" ")]]></textFieldExpression>
juanpablo@726
   655
				</textField>
juanpablo@726
   656
				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   657
					<reportElement
carlos@0
   658
						style="Detail_Line"
carlos@0
   659
						mode="Opaque"
carlos@0
   660
						x="389"
carlos@0
   661
						y="0"
carlos@0
   662
						width="56"
carlos@0
   663
						height="16"
carlos@0
   664
						key="textField"
juanpablo@726
   665
						stretchType="RelativeToBandHeight"/>
juanpablo@726
   666
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="1Point" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   667
					<textElement textAlignment="Left" verticalAlignment="Middle">
juanpablo@726
   668
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   669
					</textElement>
juanpablo@726
   670
				<textFieldExpression   class="java.lang.String"><![CDATA[($F{REALPRICE}!=null)?$P{NUMBERFORMAT}.format($F{REALPRICE}):new String(" ")]]></textFieldExpression>
juanpablo@726
   671
				</textField>
juanpablo@726
   672
			</band>
juanpablo@726
   673
		</detail>
juanpablo@726
   674
		<columnFooter>
juanpablo@726
   675
			<band height="16"  isSplitAllowed="true" >
juanpablo@726
   676
			</band>
juanpablo@726
   677
		</columnFooter>
juanpablo@726
   678
		<pageFooter>
juanpablo@726
   679
			<band height="27"  isSplitAllowed="true" >
juanpablo@726
   680
				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   681
					<reportElement
carlos@0
   682
						x="400"
carlos@0
   683
						y="4"
carlos@0
   684
						width="95"
carlos@0
   685
						height="19"
juanpablo@726
   686
						key="textField"/>
juanpablo@726
   687
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   688
					<textElement textAlignment="Right" verticalAlignment="Middle">
juanpablo@726
   689
						<font fontName="Helvetica" size="10"/>
juanpablo@726
   690
					</textElement>
juanpablo@726
   691
				<textFieldExpression   class="java.lang.String"><![CDATA["Page " + $V{PAGE_NUMBER} + " of "]]></textFieldExpression>
juanpablo@726
   692
				</textField>
juanpablo@726
   693
				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   694
					<reportElement
carlos@0
   695
						x="499"
carlos@0
   696
						y="4"
carlos@0
   697
						width="36"
carlos@0
   698
						height="19"
carlos@0
   699
						forecolor="#000000"
carlos@0
   700
						backcolor="#FFFFFF"
juanpablo@726
   701
						key="textField"/>
juanpablo@726
   702
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   703
					<textElement textAlignment="Left" verticalAlignment="Middle" rotation="None" lineSpacing="Single">
juanpablo@726
   704
						<font fontName="Helvetica" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
juanpablo@726
   705
					</textElement>
juanpablo@726
   706
				<textFieldExpression   class="java.lang.String"><![CDATA["" + $V{PAGE_NUMBER}]]></textFieldExpression>
juanpablo@726
   707
				</textField>
juanpablo@726
   708
				<line direction="TopDown">
carlos@0
   709
					<reportElement
carlos@0
   710
						x="0"
carlos@0
   711
						y="1"
carlos@0
   712
						width="535"
carlos@0
   713
						height="0"
carlos@0
   714
						forecolor="#000000"
juanpablo@726
   715
						key="line"/>
juanpablo@726
   716
					<graphicElement stretchType="NoStretch" pen="2Point"/>
juanpablo@726
   717
				</line>
juanpablo@726
   718
				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   719
					<reportElement
carlos@0
   720
						x="277"
carlos@0
   721
						y="4"
carlos@0
   722
						width="69"
carlos@0
   723
						height="19"
juanpablo@726
   724
						key="textField"/>
juanpablo@726
   725
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   726
					<textElement verticalAlignment="Middle">
juanpablo@726
   727
						<font fontName="Times-Roman" size="10"/>
juanpablo@726
   728
					</textElement>
juanpablo@726
   729
				<textFieldExpression   class="java.util.Date"><![CDATA[new Date()]]></textFieldExpression>
juanpablo@726
   730
				</textField>
juanpablo@726
   731
				<staticText>
carlos@0
   732
					<reportElement
carlos@0
   733
						x="213"
carlos@0
   734
						y="4"
carlos@0
   735
						width="60"
carlos@0
   736
						height="19"
juanpablo@726
   737
						key="staticText-1"/>
juanpablo@726
   738
					<box topBorder="None" topBorderColor="#000000" topPadding="2" leftBorder="None" leftBorderColor="#000000" leftPadding="5" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   739
					<textElement textAlignment="Right">
juanpablo@726
   740
						<font/>
juanpablo@726
   741
					</textElement>
juanpablo@726
   742
				<text><![CDATA[Printed on]]></text>
juanpablo@726
   743
				</staticText>
juanpablo@726
   744
			</band>
juanpablo@726
   745
		</pageFooter>
juanpablo@726
   746
		<summary>
juanpablo@726
   747
			<band height="28"  isSplitAllowed="true" >
juanpablo@726
   748
				<staticText>
carlos@0
   749
					<reportElement
carlos@0
   750
						style="default"
carlos@0
   751
						mode="Transparent"
carlos@0
   752
						x="145"
carlos@0
   753
						y="6"
carlos@0
   754
						width="69"
carlos@0
   755
						height="16"
juanpablo@726
   756
						key="staticText-7"/>
juanpablo@726
   757
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   758
					<textElement textAlignment="Right">
juanpablo@726
   759
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   760
					</textElement>
juanpablo@726
   761
				<text><![CDATA[Totals]]></text>
juanpablo@726
   762
				</staticText>
juanpablo@726
   763
				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   764
					<reportElement
carlos@0
   765
						style="Total_Gray"
carlos@0
   766
						x="217"
carlos@0
   767
						y="6"
carlos@0
   768
						width="114"
carlos@0
   769
						height="16"
juanpablo@726
   770
						key="textField-2"/>
juanpablo@726
   771
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   772
					<textElement textAlignment="Left">
juanpablo@726
   773
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   774
					</textElement>
juanpablo@726
   775
				<textFieldExpression   class="java.lang.String"><![CDATA[($V{totalWeight}!=null)?$P{NUMBERFORMAT}.format($V{totalWeight}):new String(" ")]]></textFieldExpression>
juanpablo@726
   776
				</textField>
juanpablo@726
   777
				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   778
					<reportElement
carlos@0
   779
						style="Total_Gray"
carlos@0
   780
						x="331"
carlos@0
   781
						y="6"
carlos@0
   782
						width="113"
carlos@0
   783
						height="16"
juanpablo@726
   784
						key="textField-3"/>
juanpablo@726
   785
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   786
					<textElement textAlignment="Left">
juanpablo@726
   787
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   788
					</textElement>
juanpablo@726
   789
				<textFieldExpression   class="java.lang.String"><![CDATA[($V{totalLine}!=null)?$P{NUMBERFORMAT}.format($V{totalLine}):new String(" ")]]></textFieldExpression>
juanpablo@726
   790
				</textField>
juanpablo@726
   791
				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   792
					<reportElement
carlos@0
   793
						style="Total_Gray"
carlos@0
   794
						x="444"
carlos@0
   795
						y="6"
carlos@0
   796
						width="89"
carlos@0
   797
						height="16"
juanpablo@726
   798
						key="textField-4"/>
juanpablo@726
   799
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   800
					<textElement textAlignment="Left">
juanpablo@726
   801
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   802
					</textElement>
juanpablo@726
   803
				<textFieldExpression   class="java.lang.String"><![CDATA[($V{totalLineDetail}!=null)?$P{NUMBERFORMAT}.format($V{totalLineDetail}):new String(" ")]]></textFieldExpression>
juanpablo@726
   804
				</textField>
juanpablo@726
   805
			</band>
juanpablo@726
   806
		</summary>
juanpablo@726
   807
</jasperReport>