src/org/openbravo/erpCommon/ad_reports/ReportTaxInvoicePurchase.jrxml
author Eduardo Argal <eduardo.argal@openbravo.com>
Wed, 18 Jun 2008 15:34:13 +0000
changeset 1271 762533f2593a
parent 1102 d24a59b98fbb
child 1605 8a0fe0193bef
permissions -rw-r--r--
Fixes bug 0002791 : Credit memo invoices
Modifies tax reports to take into account credit memo amounts as negative amounts
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="ReportTaxInvoicePurchase"
juanpablo@726
     6
		 columnCount="1"
juanpablo@726
     7
		 printOrder="Vertical"
juanpablo@726
     8
		 orientation="Portrait"
juanpablo@726
     9
		 pageWidth="535"
juanpablo@726
    10
		 pageHeight="842"
juanpablo@726
    11
		 columnWidth="535"
juanpablo@726
    12
		 columnSpacing="0"
juanpablo@726
    13
		 leftMargin="0"
juanpablo@726
    14
		 rightMargin="0"
juanpablo@726
    15
		 topMargin="0"
juanpablo@726
    16
		 bottomMargin="0"
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="9"
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
		fontName="Bitstream Vera Sans"
juanpablo@726
    57
	/>
juanpablo@726
    58
	<style 
juanpablo@726
    59
		name="Detail_Header"
juanpablo@726
    60
		isDefault="false"
juanpablo@726
    61
		mode="Opaque"
juanpablo@726
    62
		forecolor="#FFFFFF"
juanpablo@726
    63
		backcolor="#555555"
juanpablo@726
    64
		vAlign="Middle"
juanpablo@726
    65
		leftBorder="1Point"
juanpablo@726
    66
		leftBorderColor="#FFFFFF"
juanpablo@726
    67
		leftPadding="5"
juanpablo@726
    68
		rightBorder="1Point"
juanpablo@726
    69
		rightBorderColor="#FFFFFF"
juanpablo@726
    70
	/>
juanpablo@726
    71
	<style 
juanpablo@726
    72
		name="GroupHeader_DarkGray"
juanpablo@726
    73
		isDefault="false"
juanpablo@726
    74
		mode="Opaque"
juanpablo@726
    75
		forecolor="#FFFFFF"
juanpablo@726
    76
		backcolor="#555555"
juanpablo@726
    77
		vAlign="Middle"
juanpablo@726
    78
		leftPadding="5"
juanpablo@726
    79
		fontName="Bitstream Vera Sans"
juanpablo@726
    80
		fontSize="14"
juanpablo@726
    81
	/>
juanpablo@726
    82
	<style 
juanpablo@726
    83
		name="GroupHeader_Gray"
juanpablo@726
    84
		isDefault="false"
juanpablo@726
    85
		mode="Opaque"
juanpablo@726
    86
		backcolor="#999999"
juanpablo@726
    87
	/>
juanpablo@726
    88
	<style 
juanpablo@726
    89
		name="Detail_Line"
juanpablo@726
    90
		isDefault="false"
juanpablo@726
    91
		vAlign="Middle"
juanpablo@726
    92
		fontName="Bitstream Vera Sans"
juanpablo@726
    93
		fontSize="9"
juanpablo@726
    94
	>
juanpablo@726
    95
juanpablo@726
    96
		<conditionalStyle>
juanpablo@726
    97
			<conditionExpression><![CDATA[new Boolean($V{TAXNAME_COUNT}.intValue()%2==1)]]></conditionExpression>
juanpablo@726
    98
			<style 
juanpablo@726
    99
				name="Detail_Line"
juanpablo@726
   100
				isDefault="false"
juanpablo@726
   101
				mode="Opaque"
juanpablo@726
   102
				backcolor="#CCCCCC"
juanpablo@726
   103
				vAlign="Middle"
juanpablo@726
   104
				fontName="Bitstream Vera Sans"
juanpablo@726
   105
				fontSize="9"
juanpablo@726
   106
			/>
juanpablo@726
   107
		</conditionalStyle>
juanpablo@726
   108
	</style>
juanpablo@726
   109
	<style 
juanpablo@726
   110
		name="Total_Gray"
juanpablo@726
   111
		isDefault="false"
juanpablo@726
   112
		mode="Opaque"
juanpablo@726
   113
		forecolor="#000000"
juanpablo@726
   114
		backcolor="#CCCCCC"
juanpablo@726
   115
	/>
juanpablo@726
   116
juanpablo@726
   117
	<parameter name="ATTACH" isForPrompting="false" class="java.lang.String"/>
juanpablo@726
   118
	<parameter name="BASE_WEB" isForPrompting="false" class="java.lang.String"/>
juanpablo@726
   119
	<parameter name="BASE_DESIGN" isForPrompting="false" class="java.lang.String"/>
juanpablo@726
   120
	<parameter name="LANGUAGE" isForPrompting="false" class="java.lang.String">
juanpablo@726
   121
		<defaultValueExpression ><![CDATA["en_US"]]></defaultValueExpression>
juanpablo@726
   122
	</parameter>
juanpablo@726
   123
	<parameter name="USER_CLIENT" isForPrompting="false" class="java.lang.String">
juanpablo@726
   124
		<defaultValueExpression ><![CDATA["(1000000)"]]></defaultValueExpression>
juanpablo@726
   125
	</parameter>
juanpablo@726
   126
	<parameter name="USER_ORG" isForPrompting="false" class="java.lang.String">
juanpablo@726
   127
		<defaultValueExpression ><![CDATA["(0, 1000000)"]]></defaultValueExpression>
juanpablo@726
   128
	</parameter>
juanpablo@726
   129
	<parameter name="REPORT_TITLE" isForPrompting="false" class="java.lang.String">
juanpablo@726
   130
		<defaultValueExpression ><![CDATA["REPORT TITLE"]]></defaultValueExpression>
juanpablo@726
   131
	</parameter>
juanpablo@726
   132
	<parameter name="REPORT_SUBTITLE" isForPrompting="false" class="java.lang.String">
juanpablo@726
   133
		<defaultValueExpression ><![CDATA["Purchase"]]></defaultValueExpression>
juanpablo@726
   134
	</parameter>
juanpablo@726
   135
	<parameter name="aux_client" isForPrompting="false" class="java.lang.String">
juanpablo@726
   136
		<defaultValueExpression ><![CDATA[$P{USER_CLIENT}.equals("") ? "" : " AND C_INVOICE.AD_CLIENT_ID IN ("+$P{USER_CLIENT}+") "]]></defaultValueExpression>
juanpablo@726
   137
	</parameter>
juanpablo@726
   138
	<parameter name="aux_org" isForPrompting="false" class="java.lang.String">
juanpablo@726
   139
		<defaultValueExpression ><![CDATA[$P{USER_ORG}.equals("") ? "" : " AND C_INVOICE.AD_ORG_ID IN ("+$P{USER_ORG}+") "]]></defaultValueExpression>
juanpablo@726
   140
	</parameter>
juanpablo@726
   141
	<parameter name="cCountryId" isForPrompting="true" class="java.lang.Integer">
juanpablo@726
   142
		<defaultValueExpression ><![CDATA[new Integer(100)]]></defaultValueExpression>
juanpablo@726
   143
	</parameter>
juanpablo@726
   144
	<parameter name="parDateFrom" isForPrompting="true" class="java.util.Date"/>
juanpablo@726
   145
	<parameter name="parDateTo" isForPrompting="true" class="java.util.Date"/>
juanpablo@726
   146
	<parameter name="PURCHASE" isForPrompting="false" class="java.lang.String"/>
juanpablo@726
   147
	<parameter name="DETAIL" isForPrompting="false" class="java.lang.String"/>
juanpablo@726
   148
	<parameter name="NUMBERFORMAT" isForPrompting="false" class="java.text.DecimalFormat"/>
juanpablo@726
   149
	<parameter name="LOCALE" isForPrompting="false" class="java.util.Locale"/>
eduardo@1271
   150
	<queryString><![CDATA[SELECT C_INVOICE.ISSOTRX AS SALES, 'Y' AS NATIONAL, C_INVOICE.DOCUMENTNO AS DOCUMENTNO, 
eduardo@1271
   151
      C_INVOICE.DATEINVOICED, C_BPARTNER.NAME AS BPARTNER, LTRIM(RTRIM(C_TAX.NAME, ' '), ' ') AS TAXNAME, 
eduardo@1271
   152
      SUM(CASE WHEN DOCBASETYPE IN ('ARC','APC') THEN -1 * C_INVOICETAX.TAXBASEAMT ELSE C_INVOICETAX.TAXBASEAMT END) AS TAXBASEAMT, 
eduardo@1271
   153
      SUM(CASE WHEN DOCBASETYPE IN ('ARC','APC') THEN -1 * C_INVOICETAX.TAXAMT ELSE C_INVOICETAX.TAXAMT END) AS TAXAMT, '' AS ADTREEID
eduardo@1271
   154
      FROM C_TAX, C_INVOICETAX, C_INVOICE, C_BPARTNER_LOCATION, C_LOCATION, C_BPARTNER, C_DOCTYPE
carlos@0
   155
      WHERE C_TAX.C_TAX_ID=C_INVOICETAX.C_TAX_ID
carlos@0
   156
      AND C_INVOICETAX.C_INVOICE_ID=C_INVOICE.C_INVOICE_ID
carlos@0
   157
      AND C_INVOICE.C_BPARTNER_LOCATION_ID = C_BPARTNER_LOCATION.C_BPARTNER_LOCATION_ID
carlos@0
   158
      AND C_BPARTNER_LOCATION.C_LOCATION_ID = C_LOCATION.C_LOCATION_ID
carlos@0
   159
      AND C_INVOICE.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID
eduardo@1271
   160
      AND C_INVOICE.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID
carlos@0
   161
      AND C_INVOICE.PROCESSED = 'Y'
carlos@0
   162
      AND C_INVOICE.ISACTIVE = 'Y'
carlos@0
   163
      AND C_INVOICE.ISSOTRX = 'N'
carlos@0
   164
      AND C_INVOICE.DATEINVOICED >= $P{parDateFrom} 
carlos@0
   165
      AND C_INVOICE.DATEINVOICED < $P{parDateTo} 
carlos@0
   166
      AND C_LOCATION.C_COUNTRY_ID = $P{cCountryId}
carlos@0
   167
      AND 1=1 $P!{aux_client} 
carlos@0
   168
      AND 1=1 $P!{aux_org} 
carlos@0
   169
      AND 1=1 
carlos@0
   170
      GROUP BY C_INVOICE.DOCUMENTNO, C_INVOICE.DATEINVOICED, C_TAX.NAME, C_BPARTNER.NAME, C_INVOICE.ISSOTRX
carlos@0
   171
      HAVING SUM(C_INVOICETAX.TAXBASEAMT) <> 0
juanpablo@726
   172
      ORDER BY C_TAX.NAME, C_INVOICE.DATEINVOICED]]></queryString>
juanpablo@726
   173
juanpablo@726
   174
	<field name="SALES" class="java.lang.String"/>
juanpablo@726
   175
	<field name="NATIONAL" class="java.lang.String"/>
juanpablo@726
   176
	<field name="DOCUMENTNO" class="java.lang.String"/>
juanpablo@726
   177
	<field name="DATEINVOICED" class="java.sql.Timestamp"/>
juanpablo@726
   178
	<field name="BPARTNER" class="java.lang.String"/>
juanpablo@726
   179
	<field name="TAXNAME" class="java.lang.String"/>
juanpablo@726
   180
	<field name="TAXBASEAMT" class="java.math.BigDecimal"/>
juanpablo@726
   181
	<field name="TAXAMT" class="java.math.BigDecimal"/>
juanpablo@726
   182
	<field name="ADTREEID" class="java.lang.String"/>
juanpablo@726
   183
eduardo@1102
   184
	<variable name="sumTaxBaseAmt" class="java.math.BigDecimal" resetType="Group" resetGroup="TAXNAME" calculation="Sum">
eduardo@1102
   185
		<variableExpression><![CDATA[$F{TAXBASEAMT}]]></variableExpression>
juanpablo@726
   186
	</variable>
eduardo@1102
   187
	<variable name="sumImport" class="java.math.BigDecimal" resetType="Group" resetGroup="TAXNAME" calculation="Sum">
eduardo@1102
   188
		<variableExpression><![CDATA[$F{TAXAMT}]]></variableExpression>
juanpablo@726
   189
	</variable>
juanpablo@726
   190
juanpablo@726
   191
		<group  name="TAXNAME" >
juanpablo@726
   192
			<groupExpression><![CDATA[$F{TAXNAME}]]></groupExpression>
juanpablo@726
   193
			<groupHeader>
juanpablo@726
   194
			<band height="43"  isSplitAllowed="true" >
juanpablo@726
   195
				<staticText>
carlos@0
   196
					<reportElement
carlos@0
   197
						style="GroupHeader_DarkGray"
carlos@0
   198
						x="1"
carlos@0
   199
						y="0"
carlos@0
   200
						width="100"
carlos@0
   201
						height="20"
juanpablo@726
   202
						key="staticText"/>
juanpablo@726
   203
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="5" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   204
					<textElement>
juanpablo@726
   205
						<font pdfFontName="Helvetica"/>
juanpablo@726
   206
					</textElement>
juanpablo@726
   207
				<text><![CDATA[Tax Type]]></text>
juanpablo@726
   208
				</staticText>
juanpablo@726
   209
				<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   210
					<reportElement
carlos@0
   211
						style="GroupHeader_DarkGray"
carlos@0
   212
						x="101"
carlos@0
   213
						y="0"
carlos@0
   214
						width="433"
carlos@0
   215
						height="20"
juanpablo@726
   216
						key="textField"/>
juanpablo@726
   217
					<box topBorder="None" topBorderColor="#000000" topPadding="2" leftBorder="None" leftBorderColor="#000000" leftPadding="5" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   218
					<textElement verticalAlignment="Middle">
juanpablo@726
   219
						<font pdfFontName="Helvetica"/>
juanpablo@726
   220
					</textElement>
juanpablo@726
   221
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{TAXNAME}]]></textFieldExpression>
juanpablo@726
   222
				</textField>
juanpablo@726
   223
				<line direction="TopDown">
carlos@0
   224
					<reportElement
carlos@0
   225
						x="0"
carlos@0
   226
						y="1"
carlos@0
   227
						width="0"
carlos@0
   228
						height="42"
carlos@0
   229
						forecolor="#555555"
carlos@0
   230
						key="line-2"
juanpablo@726
   231
						stretchType="RelativeToBandHeight"/>
juanpablo@726
   232
					<graphicElement stretchType="RelativeToBandHeight" pen="2Point"/>
juanpablo@726
   233
				</line>
juanpablo@726
   234
				<line direction="TopDown">
carlos@0
   235
					<reportElement
carlos@0
   236
						x="534"
carlos@0
   237
						y="1"
carlos@0
   238
						width="0"
carlos@0
   239
						height="42"
carlos@0
   240
						forecolor="#555555"
carlos@0
   241
						key="line-3"
juanpablo@726
   242
						stretchType="RelativeToBandHeight"/>
juanpablo@726
   243
					<graphicElement stretchType="RelativeToBandHeight" pen="2Point"/>
juanpablo@726
   244
				</line>
juanpablo@726
   245
				<staticText>
carlos@0
   246
					<reportElement
carlos@0
   247
						style="Detail_Header"
carlos@0
   248
						x="10"
carlos@0
   249
						y="27"
carlos@0
   250
						width="90"
carlos@0
   251
						height="16"
juanpablo@726
   252
						key="element-90">
juanpablo@726
   253
							<printWhenExpression><![CDATA[new Boolean($P{DETAIL}.equals("Y"))]]></printWhenExpression>
juanpablo@726
   254
						</reportElement>
juanpablo@726
   255
					<box topBorder="None" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#FFFFFF" leftPadding="5" rightBorder="None" rightBorderColor="#FFFFFF" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   256
					<textElement>
juanpablo@726
   257
						<font/>
juanpablo@726
   258
					</textElement>
juanpablo@726
   259
				<text><![CDATA[Invoice]]></text>
juanpablo@726
   260
				</staticText>
juanpablo@726
   261
				<staticText>
carlos@0
   262
					<reportElement
carlos@0
   263
						style="Detail_Header"
carlos@0
   264
						x="100"
carlos@0
   265
						y="27"
carlos@0
   266
						width="80"
carlos@0
   267
						height="16"
juanpablo@726
   268
						key="element-90">
juanpablo@726
   269
							<printWhenExpression><![CDATA[new Boolean($P{DETAIL}.equals("Y"))]]></printWhenExpression>
juanpablo@726
   270
						</reportElement>
juanpablo@726
   271
					<box topBorder="None" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#FFFFFF" leftPadding="5" rightBorder="None" rightBorderColor="#FFFFFF" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   272
					<textElement>
juanpablo@726
   273
						<font/>
juanpablo@726
   274
					</textElement>
juanpablo@726
   275
				<text><![CDATA[Date]]></text>
juanpablo@726
   276
				</staticText>
juanpablo@726
   277
				<staticText>
carlos@0
   278
					<reportElement
carlos@0
   279
						style="Detail_Header"
carlos@0
   280
						x="180"
carlos@0
   281
						y="27"
carlos@0
   282
						width="200"
carlos@0
   283
						height="16"
juanpablo@726
   284
						key="element-90">
juanpablo@726
   285
							<printWhenExpression><![CDATA[new Boolean($P{DETAIL}.equals("Y"))]]></printWhenExpression>
juanpablo@726
   286
						</reportElement>
juanpablo@726
   287
					<box topBorder="None" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#FFFFFF" leftPadding="5" rightBorder="None" rightBorderColor="#FFFFFF" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   288
					<textElement>
juanpablo@726
   289
						<font/>
juanpablo@726
   290
					</textElement>
juanpablo@726
   291
				<text><![CDATA[Business Partner]]></text>
juanpablo@726
   292
				</staticText>
juanpablo@726
   293
				<staticText>
carlos@0
   294
					<reportElement
carlos@0
   295
						style="Detail_Header"
carlos@0
   296
						x="380"
carlos@0
   297
						y="27"
carlos@0
   298
						width="60"
carlos@0
   299
						height="16"
juanpablo@726
   300
						key="element-90"/>
juanpablo@726
   301
					<box topBorder="None" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#FFFFFF" leftPadding="5" rightBorder="None" rightBorderColor="#FFFFFF" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   302
					<textElement textAlignment="Right">
juanpablo@726
   303
						<font/>
juanpablo@726
   304
					</textElement>
juanpablo@726
   305
				<text><![CDATA[Taxable Base]]></text>
juanpablo@726
   306
				</staticText>
juanpablo@726
   307
				<staticText>
carlos@0
   308
					<reportElement
carlos@0
   309
						style="Detail_Header"
carlos@0
   310
						x="440"
carlos@0
   311
						y="27"
carlos@0
   312
						width="80"
carlos@0
   313
						height="16"
juanpablo@726
   314
						key="element-90"/>
juanpablo@726
   315
					<box topBorder="None" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#FFFFFF" leftPadding="5" rightBorder="1Point" rightBorderColor="#FFFFFF" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   316
					<textElement textAlignment="Right">
juanpablo@726
   317
						<font/>
juanpablo@726
   318
					</textElement>
juanpablo@726
   319
				<text><![CDATA[Amount]]></text>
juanpablo@726
   320
				</staticText>
juanpablo@726
   321
			</band>
juanpablo@726
   322
			</groupHeader>
juanpablo@726
   323
			<groupFooter>
juanpablo@726
   324
			<band height="25"  isSplitAllowed="true" >
juanpablo@726
   325
				<line direction="TopDown">
carlos@0
   326
					<reportElement
carlos@0
   327
						x="0"
carlos@0
   328
						y="0"
carlos@0
   329
						width="0"
carlos@0
   330
						height="19"
carlos@0
   331
						forecolor="#555555"
carlos@0
   332
						key="line-32"
juanpablo@726
   333
						stretchType="RelativeToBandHeight"/>
juanpablo@726
   334
					<graphicElement stretchType="RelativeToBandHeight" pen="2Point"/>
juanpablo@726
   335
				</line>
juanpablo@726
   336
				<line direction="TopDown">
carlos@0
   337
					<reportElement
carlos@0
   338
						x="534"
carlos@0
   339
						y="0"
carlos@0
   340
						width="0"
carlos@0
   341
						height="19"
carlos@0
   342
						forecolor="#555555"
carlos@0
   343
						key="line-33"
juanpablo@726
   344
						stretchType="RelativeToBandHeight"/>
juanpablo@726
   345
					<graphicElement stretchType="RelativeToBandHeight" pen="2Point"/>
juanpablo@726
   346
				</line>
juanpablo@726
   347
				<line direction="TopDown">
carlos@0
   348
					<reportElement
carlos@0
   349
						x="0"
carlos@0
   350
						y="19"
carlos@0
   351
						width="535"
carlos@0
   352
						height="0"
carlos@0
   353
						forecolor="#555555"
juanpablo@726
   354
						key="line-34"/>
juanpablo@726
   355
					<graphicElement stretchType="NoStretch" pen="2Point"/>
juanpablo@726
   356
				</line>
juanpablo@726
   357
				<staticText>
carlos@0
   358
					<reportElement
carlos@0
   359
						style="default"
carlos@0
   360
						x="10"
carlos@0
   361
						y="1"
carlos@0
   362
						width="90"
carlos@0
   363
						height="16"
juanpablo@726
   364
						key="staticText-4"/>
juanpablo@726
   365
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="5" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   366
					<textElement textAlignment="Right">
juanpablo@726
   367
						<font size="10"/>
juanpablo@726
   368
					</textElement>
juanpablo@726
   369
				<text><![CDATA[Total:]]></text>
juanpablo@726
   370
				</staticText>
juanpablo@726
   371
				<line direction="TopDown">
carlos@0
   372
					<reportElement
carlos@0
   373
						x="10"
carlos@0
   374
						y="0"
carlos@0
   375
						width="510"
carlos@0
   376
						height="0"
carlos@0
   377
						forecolor="#666666"
juanpablo@726
   378
						key="line-37"/>
juanpablo@726
   379
					<graphicElement stretchType="NoStretch" pen="Thin"/>
juanpablo@726
   380
				</line>
juanpablo@726
   381
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   382
					<reportElement
carlos@0
   383
						style="Total_Field"
carlos@0
   384
						x="100"
carlos@0
   385
						y="1"
carlos@0
   386
						width="280"
carlos@0
   387
						height="16"
juanpablo@726
   388
						key="textField-9"/>
juanpablo@726
   389
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="5" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   390
					<textElement verticalAlignment="Middle">
juanpablo@726
   391
						<font/>
juanpablo@726
   392
					</textElement>
juanpablo@726
   393
				<textFieldExpression   class="java.lang.Integer"><![CDATA[$V{TAXNAME_COUNT}]]></textFieldExpression>
juanpablo@726
   394
				</textField>
juanpablo@726
   395
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   396
					<reportElement
carlos@0
   397
						style="Total_Field"
carlos@0
   398
						x="380"
carlos@0
   399
						y="1"
carlos@0
   400
						width="60"
carlos@0
   401
						height="16"
juanpablo@726
   402
						key="textField-10"/>
juanpablo@726
   403
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="5" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   404
					<textElement textAlignment="Right" verticalAlignment="Middle">
juanpablo@726
   405
						<font/>
juanpablo@726
   406
					</textElement>
eduardo@1102
   407
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$V{sumTaxBaseAmt}]]></textFieldExpression>
juanpablo@726
   408
				</textField>
juanpablo@726
   409
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   410
					<reportElement
carlos@0
   411
						style="Total_Field"
carlos@0
   412
						x="440"
carlos@0
   413
						y="1"
carlos@0
   414
						width="80"
carlos@0
   415
						height="16"
juanpablo@726
   416
						key="textField-11"/>
juanpablo@726
   417
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="5" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   418
					<textElement textAlignment="Right" verticalAlignment="Middle">
juanpablo@726
   419
						<font/>
juanpablo@726
   420
					</textElement>
eduardo@1102
   421
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$V{sumImport}]]></textFieldExpression>
juanpablo@726
   422
				</textField>
juanpablo@726
   423
			</band>
juanpablo@726
   424
			</groupFooter>
juanpablo@726
   425
		</group>
juanpablo@726
   426
		<background>
juanpablo@726
   427
			<band height="0"  isSplitAllowed="true" >
juanpablo@726
   428
			</band>
juanpablo@726
   429
		</background>
juanpablo@726
   430
		<title>
juanpablo@726
   431
			<band height="0"  isSplitAllowed="true" >
juanpablo@726
   432
			</band>
juanpablo@726
   433
		</title>
juanpablo@726
   434
		<pageHeader>
juanpablo@726
   435
			<band height="20"  isSplitAllowed="true" >
juanpablo@726
   436
				<textField isStretchWithOverflow="true" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   437
					<reportElement
carlos@0
   438
						style="Report_Subtitle"
carlos@0
   439
						x="0"
carlos@0
   440
						y="0"
carlos@0
   441
						width="535"
carlos@0
   442
						height="20"
juanpablo@726
   443
						key="textField"/>
juanpablo@726
   444
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="5" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   445
					<textElement>
juanpablo@726
   446
						<font/>
juanpablo@726
   447
					</textElement>
juanpablo@726
   448
				<textFieldExpression   class="java.lang.String"><![CDATA[$P{PURCHASE}]]></textFieldExpression>
juanpablo@726
   449
				</textField>
juanpablo@726
   450
			</band>
juanpablo@726
   451
		</pageHeader>
juanpablo@726
   452
		<columnHeader>
juanpablo@726
   453
			<band height="0"  isSplitAllowed="true" >
juanpablo@726
   454
			</band>
juanpablo@726
   455
		</columnHeader>
juanpablo@726
   456
		<detail>
juanpablo@726
   457
			<band height="14"  isSplitAllowed="true" >
juanpablo@726
   458
				<printWhenExpression><![CDATA[new Boolean($P{DETAIL}.equals("Y"))]]></printWhenExpression>
juanpablo@726
   459
				<line direction="TopDown">
carlos@0
   460
					<reportElement
carlos@0
   461
						x="534"
carlos@0
   462
						y="0"
carlos@0
   463
						width="0"
carlos@0
   464
						height="14"
carlos@0
   465
						forecolor="#555555"
carlos@0
   466
						key="line-16"
juanpablo@726
   467
						stretchType="RelativeToBandHeight"/>
juanpablo@726
   468
					<graphicElement stretchType="RelativeToBandHeight" pen="2Point"/>
juanpablo@726
   469
				</line>
juanpablo@726
   470
				<line direction="TopDown">
carlos@0
   471
					<reportElement
carlos@0
   472
						x="0"
carlos@0
   473
						y="0"
carlos@0
   474
						width="0"
carlos@0
   475
						height="14"
carlos@0
   476
						forecolor="#555555"
carlos@0
   477
						key="line-17"
juanpablo@726
   478
						stretchType="RelativeToBandHeight"/>
juanpablo@726
   479
					<graphicElement stretchType="RelativeToBandHeight" pen="2Point"/>
juanpablo@726
   480
				</line>
juanpablo@726
   481
				<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   482
					<reportElement
carlos@0
   483
						style="Detail_Line"
carlos@0
   484
						x="10"
carlos@0
   485
						y="0"
carlos@0
   486
						width="90"
carlos@0
   487
						height="14"
juanpablo@726
   488
						key="textField-4"/>
juanpablo@726
   489
					<box topBorder="None" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#666666" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   490
					<textElement verticalAlignment="Middle">
juanpablo@726
   491
						<font/>
juanpablo@726
   492
					</textElement>
juanpablo@726
   493
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{DOCUMENTNO}]]></textFieldExpression>
juanpablo@726
   494
				</textField>
juanpablo@726
   495
				<textField isStretchWithOverflow="true" pattern="dd-MM-yyyy" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   496
					<reportElement
carlos@0
   497
						style="Detail_Line"
carlos@0
   498
						x="100"
carlos@0
   499
						y="0"
carlos@0
   500
						width="80"
carlos@0
   501
						height="14"
juanpablo@726
   502
						key="textField-5"/>
juanpablo@726
   503
					<box topBorder="None" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#666666" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   504
					<textElement verticalAlignment="Middle">
juanpablo@726
   505
						<font/>
juanpablo@726
   506
					</textElement>
juanpablo@726
   507
				<textFieldExpression   class="java.sql.Timestamp"><![CDATA[$F{DATEINVOICED}]]></textFieldExpression>
juanpablo@726
   508
				</textField>
juanpablo@726
   509
				<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   510
					<reportElement
carlos@0
   511
						style="Detail_Line"
carlos@0
   512
						x="180"
carlos@0
   513
						y="0"
carlos@0
   514
						width="200"
carlos@0
   515
						height="14"
juanpablo@726
   516
						key="textField-6"/>
juanpablo@726
   517
					<box topBorder="None" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#666666" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   518
					<textElement verticalAlignment="Middle">
juanpablo@726
   519
						<font/>
juanpablo@726
   520
					</textElement>
juanpablo@726
   521
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{BPARTNER}]]></textFieldExpression>
juanpablo@726
   522
				</textField>
juanpablo@726
   523
				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   524
					<reportElement
carlos@0
   525
						style="Detail_Line"
carlos@0
   526
						x="380"
carlos@0
   527
						y="0"
carlos@0
   528
						width="60"
carlos@0
   529
						height="14"
juanpablo@726
   530
						key="textField-7"/>
juanpablo@726
   531
					<box topBorder="None" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#666666" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   532
					<textElement textAlignment="Right" verticalAlignment="Middle">
juanpablo@726
   533
						<font/>
juanpablo@726
   534
					</textElement>
eduardo@1102
   535
				<textFieldExpression   class="java.lang.String"><![CDATA[($F{TAXBASEAMT}!=null)?$P{NUMBERFORMAT}.format($F{TAXBASEAMT}):new String(" ")]]></textFieldExpression>
juanpablo@726
   536
				</textField>
juanpablo@726
   537
				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   538
					<reportElement
carlos@0
   539
						style="Detail_Line"
carlos@0
   540
						x="440"
carlos@0
   541
						y="0"
carlos@0
   542
						width="80"
carlos@0
   543
						height="14"
juanpablo@726
   544
						key="textField-8"/>
juanpablo@726
   545
					<box topBorder="None" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#666666" leftPadding="2" rightBorder="Thin" rightBorderColor="#666666" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   546
					<textElement textAlignment="Right" verticalAlignment="Middle">
juanpablo@726
   547
						<font/>
juanpablo@726
   548
					</textElement>
eduardo@1102
   549
				<textFieldExpression   class="java.lang.String"><![CDATA[($F{TAXAMT}!=null)?$P{NUMBERFORMAT}.format($F{TAXAMT}):new String(" ")]]></textFieldExpression>
juanpablo@726
   550
				</textField>
juanpablo@726
   551
			</band>
juanpablo@726
   552
		</detail>
juanpablo@726
   553
		<columnFooter>
juanpablo@726
   554
			<band height="0"  isSplitAllowed="true" >
juanpablo@726
   555
			</band>
juanpablo@726
   556
		</columnFooter>
juanpablo@726
   557
		<pageFooter>
juanpablo@726
   558
			<band height="0"  isSplitAllowed="true" >
juanpablo@726
   559
			</band>
juanpablo@726
   560
		</pageFooter>
juanpablo@726
   561
		<summary>
juanpablo@726
   562
			<band height="0"  isSplitAllowed="true" >
juanpablo@726
   563
			</band>
juanpablo@726
   564
		</summary>
juanpablo@726
   565
</jasperReport>