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