src/org/openbravo/erpCommon/ad_reports/ReportTaxInvoiceSaleForeign.jrxml
author Eduardo Argal <eduardo.argal@openbravo.com>
Tue, 03 Jun 2008 09:20:02 +0000
changeset 1102 d24a59b98fbb
parent 726 dac2a1486bd3
child 1271 762533f2593a
permissions -rw-r--r--
Fixed bug [ 1965345 ] The sumatory on in th Invoice Taxes Report is wrong
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="ReportTaxInvoiceSaleForeign"
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="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
		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["Sale Foreign"]]></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="ReportData" isForPrompting="false" class="java.lang.String">
juanpablo@726
   147
		<defaultValueExpression ><![CDATA[""]]></defaultValueExpression>
juanpablo@726
   148
	</parameter>
juanpablo@726
   149
	<parameter name="SALE" isForPrompting="false" class="java.lang.String"/>
juanpablo@726
   150
	<parameter name="DETAIL" isForPrompting="false" class="java.lang.String"/>
juanpablo@726
   151
	<parameter name="NUMBERFORMAT" isForPrompting="false" class="java.text.DecimalFormat"/>
juanpablo@726
   152
	<parameter name="LOCALE" isForPrompting="false" class="java.util.Locale"/>
carlos@0
   153
	<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
   154
      SUM(C_INVOICETAX.TAXBASEAMT) AS TAXBASEAMT, SUM(C_INVOICETAX.TAXAMT) AS TAXAMT, '' AS ADTREEID
carlos@0
   155
      FROM C_TAX, C_INVOICETAX, C_INVOICE, C_BPARTNER_LOCATION, C_LOCATION, C_BPARTNER
carlos@0
   156
      WHERE C_TAX.C_TAX_ID=C_INVOICETAX.C_TAX_ID
carlos@0
   157
      AND C_INVOICETAX.C_INVOICE_ID=C_INVOICE.C_INVOICE_ID
carlos@0
   158
      AND C_INVOICE.C_BPARTNER_LOCATION_ID = C_BPARTNER_LOCATION.C_BPARTNER_LOCATION_ID
carlos@0
   159
      AND C_BPARTNER_LOCATION.C_LOCATION_ID = C_LOCATION.C_LOCATION_ID
carlos@0
   160
      AND C_INVOICE.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_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.ISSOTRX = 'Y'
carlos@0
   165
      AND C_INVOICE.DATEINVOICED >= $P{parDateFrom}
carlos@0
   166
      AND C_INVOICE.DATEINVOICED < $P{parDateTo}
carlos@0
   167
      AND C_LOCATION.C_COUNTRY_ID <> $P{cCountryId}
carlos@0
   168
      AND 1=1 $P!{aux_client} 
carlos@0
   169
      AND 1=1 $P!{aux_org}
carlos@0
   170
      AND 1=1
carlos@0
   171
      GROUP BY C_INVOICE.DOCUMENTNO, C_TAX.NAME, C_INVOICE.DATEINVOICED, C_BPARTNER.NAME, C_INVOICE.ISSOTRX
carlos@0
   172
      HAVING SUM(C_INVOICETAX.TAXBASEAMT) <> 0
juanpablo@726
   173
      ORDER BY C_TAX.NAME, C_INVOICE.DATEINVOICED]]></queryString>
juanpablo@726
   174
juanpablo@726
   175
	<field name="SALES" class="java.lang.String"/>
juanpablo@726
   176
	<field name="NATIONAL" class="java.lang.String"/>
juanpablo@726
   177
	<field name="DOCUMENTNO" class="java.lang.String"/>
juanpablo@726
   178
	<field name="DATEINVOICED" class="java.sql.Timestamp"/>
juanpablo@726
   179
	<field name="BPARTNER" class="java.lang.String"/>
juanpablo@726
   180
	<field name="TAXNAME" class="java.lang.String"/>
juanpablo@726
   181
	<field name="TAXBASEAMT" class="java.math.BigDecimal"/>
juanpablo@726
   182
	<field name="TAXAMT" class="java.math.BigDecimal"/>
juanpablo@726
   183
	<field name="ADTREEID" class="java.lang.String"/>
juanpablo@726
   184
eduardo@1102
   185
	<variable name="sumTaxBaseAmt" class="java.math.BigDecimal" resetType="Group" resetGroup="TAXNAME" calculation="Sum">
eduardo@1102
   186
		<variableExpression><![CDATA[$F{TAXBASEAMT}]]></variableExpression>
juanpablo@726
   187
	</variable>
eduardo@1102
   188
	<variable name="sumImport" class="java.math.BigDecimal" resetType="Group" resetGroup="TAXNAME" calculation="Sum">
eduardo@1102
   189
		<variableExpression><![CDATA[$F{TAXAMT}]]></variableExpression>
juanpablo@726
   190
	</variable>
juanpablo@726
   191
juanpablo@726
   192
		<group  name="TAXNAME" >
juanpablo@726
   193
			<groupExpression><![CDATA[$F{TAXNAME}]]></groupExpression>
juanpablo@726
   194
			<groupHeader>
juanpablo@726
   195
			<band height="44"  isSplitAllowed="true" >
juanpablo@726
   196
				<staticText>
carlos@0
   197
					<reportElement
carlos@0
   198
						style="GroupHeader_DarkGray"
carlos@0
   199
						x="1"
carlos@0
   200
						y="0"
carlos@0
   201
						width="100"
carlos@0
   202
						height="20"
juanpablo@726
   203
						key="staticText"/>
juanpablo@726
   204
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="5" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   205
					<textElement>
juanpablo@726
   206
						<font pdfFontName="Helvetica"/>
juanpablo@726
   207
					</textElement>
juanpablo@726
   208
				<text><![CDATA[Tax type]]></text>
juanpablo@726
   209
				</staticText>
juanpablo@726
   210
				<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   211
					<reportElement
carlos@0
   212
						style="GroupHeader_DarkGray"
carlos@0
   213
						x="101"
carlos@0
   214
						y="0"
carlos@0
   215
						width="433"
carlos@0
   216
						height="20"
juanpablo@726
   217
						key="textField"/>
juanpablo@726
   218
					<box topBorder="None" topBorderColor="#000000" topPadding="2" leftBorder="None" leftBorderColor="#000000" leftPadding="5" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   219
					<textElement>
juanpablo@726
   220
						<font pdfFontName="Helvetica"/>
juanpablo@726
   221
					</textElement>
juanpablo@726
   222
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{TAXNAME}]]></textFieldExpression>
juanpablo@726
   223
				</textField>
juanpablo@726
   224
				<line direction="TopDown">
carlos@0
   225
					<reportElement
carlos@0
   226
						x="0"
carlos@0
   227
						y="1"
carlos@0
   228
						width="0"
carlos@0
   229
						height="43"
carlos@0
   230
						forecolor="#555555"
carlos@0
   231
						key="line-2"
juanpablo@726
   232
						stretchType="RelativeToBandHeight"/>
juanpablo@726
   233
					<graphicElement stretchType="RelativeToBandHeight" pen="2Point"/>
juanpablo@726
   234
				</line>
juanpablo@726
   235
				<line direction="TopDown">
carlos@0
   236
					<reportElement
carlos@0
   237
						x="534"
carlos@0
   238
						y="1"
carlos@0
   239
						width="0"
carlos@0
   240
						height="43"
carlos@0
   241
						forecolor="#555555"
carlos@0
   242
						key="line-3"
juanpablo@726
   243
						stretchType="RelativeToBandHeight"/>
juanpablo@726
   244
					<graphicElement stretchType="RelativeToBandHeight" pen="2Point"/>
juanpablo@726
   245
				</line>
juanpablo@726
   246
				<staticText>
carlos@0
   247
					<reportElement
carlos@0
   248
						style="Detail_Header"
carlos@0
   249
						x="10"
carlos@0
   250
						y="28"
carlos@0
   251
						width="90"
carlos@0
   252
						height="16"
juanpablo@726
   253
						key="element-90">
juanpablo@726
   254
							<printWhenExpression><![CDATA[new Boolean($P{DETAIL}.equals("Y"))]]></printWhenExpression>
juanpablo@726
   255
						</reportElement>
juanpablo@726
   256
					<box topBorder="None" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#FFFFFF" leftPadding="5" rightBorder="None" rightBorderColor="#FFFFFF" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   257
					<textElement>
juanpablo@726
   258
						<font/>
juanpablo@726
   259
					</textElement>
juanpablo@726
   260
				<text><![CDATA[Invoice]]></text>
juanpablo@726
   261
				</staticText>
juanpablo@726
   262
				<staticText>
carlos@0
   263
					<reportElement
carlos@0
   264
						style="Detail_Header"
carlos@0
   265
						x="100"
carlos@0
   266
						y="28"
carlos@0
   267
						width="80"
carlos@0
   268
						height="16"
juanpablo@726
   269
						key="element-90">
juanpablo@726
   270
							<printWhenExpression><![CDATA[new Boolean($P{DETAIL}.equals("Y"))]]></printWhenExpression>
juanpablo@726
   271
						</reportElement>
juanpablo@726
   272
					<box topBorder="None" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#FFFFFF" leftPadding="5" rightBorder="None" rightBorderColor="#FFFFFF" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   273
					<textElement>
juanpablo@726
   274
						<font/>
juanpablo@726
   275
					</textElement>
juanpablo@726
   276
				<text><![CDATA[Date]]></text>
juanpablo@726
   277
				</staticText>
juanpablo@726
   278
				<staticText>
carlos@0
   279
					<reportElement
carlos@0
   280
						style="Detail_Header"
carlos@0
   281
						x="180"
carlos@0
   282
						y="28"
carlos@0
   283
						width="200"
carlos@0
   284
						height="16"
juanpablo@726
   285
						key="element-90">
juanpablo@726
   286
							<printWhenExpression><![CDATA[new Boolean($P{DETAIL}.equals("Y"))]]></printWhenExpression>
juanpablo@726
   287
						</reportElement>
juanpablo@726
   288
					<box topBorder="None" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#FFFFFF" leftPadding="5" rightBorder="None" rightBorderColor="#FFFFFF" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   289
					<textElement>
juanpablo@726
   290
						<font/>
juanpablo@726
   291
					</textElement>
juanpablo@726
   292
				<text><![CDATA[Business Partner]]></text>
juanpablo@726
   293
				</staticText>
juanpablo@726
   294
				<staticText>
carlos@0
   295
					<reportElement
carlos@0
   296
						style="Detail_Header"
carlos@0
   297
						x="380"
carlos@0
   298
						y="28"
carlos@0
   299
						width="60"
carlos@0
   300
						height="16"
juanpablo@726
   301
						key="element-90"/>
juanpablo@726
   302
					<box topBorder="None" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#FFFFFF" leftPadding="5" rightBorder="None" rightBorderColor="#FFFFFF" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   303
					<textElement textAlignment="Right">
juanpablo@726
   304
						<font/>
juanpablo@726
   305
					</textElement>
juanpablo@726
   306
				<text><![CDATA[Taxable Base]]></text>
juanpablo@726
   307
				</staticText>
juanpablo@726
   308
				<staticText>
carlos@0
   309
					<reportElement
carlos@0
   310
						style="Detail_Header"
carlos@0
   311
						x="440"
carlos@0
   312
						y="28"
carlos@0
   313
						width="80"
carlos@0
   314
						height="16"
juanpablo@726
   315
						key="element-90"/>
juanpablo@726
   316
					<box topBorder="None" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#FFFFFF" leftPadding="5" rightBorder="1Point" rightBorderColor="#FFFFFF" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   317
					<textElement textAlignment="Right">
juanpablo@726
   318
						<font/>
juanpablo@726
   319
					</textElement>
juanpablo@726
   320
				<text><![CDATA[Amount]]></text>
juanpablo@726
   321
				</staticText>
juanpablo@726
   322
			</band>
juanpablo@726
   323
			</groupHeader>
juanpablo@726
   324
			<groupFooter>
juanpablo@726
   325
			<band height="28"  isSplitAllowed="true" >
juanpablo@726
   326
				<line direction="TopDown">
carlos@0
   327
					<reportElement
carlos@0
   328
						x="0"
carlos@0
   329
						y="0"
carlos@0
   330
						width="0"
carlos@0
   331
						height="20"
carlos@0
   332
						forecolor="#555555"
carlos@0
   333
						key="line-32"
juanpablo@726
   334
						stretchType="RelativeToBandHeight"/>
juanpablo@726
   335
					<graphicElement stretchType="RelativeToBandHeight" pen="2Point"/>
juanpablo@726
   336
				</line>
juanpablo@726
   337
				<line direction="TopDown">
carlos@0
   338
					<reportElement
carlos@0
   339
						x="534"
carlos@0
   340
						y="0"
carlos@0
   341
						width="0"
carlos@0
   342
						height="20"
carlos@0
   343
						forecolor="#555555"
carlos@0
   344
						key="line-33"
juanpablo@726
   345
						stretchType="RelativeToBandHeight"/>
juanpablo@726
   346
					<graphicElement stretchType="RelativeToBandHeight" pen="2Point"/>
juanpablo@726
   347
				</line>
juanpablo@726
   348
				<line direction="TopDown">
carlos@0
   349
					<reportElement
carlos@0
   350
						x="0"
carlos@0
   351
						y="20"
carlos@0
   352
						width="535"
carlos@0
   353
						height="0"
carlos@0
   354
						forecolor="#555555"
juanpablo@726
   355
						key="line-34"/>
juanpablo@726
   356
					<graphicElement stretchType="NoStretch" pen="2Point"/>
juanpablo@726
   357
				</line>
juanpablo@726
   358
				<staticText>
carlos@0
   359
					<reportElement
carlos@0
   360
						style="default"
carlos@0
   361
						x="10"
carlos@0
   362
						y="1"
carlos@0
   363
						width="90"
carlos@0
   364
						height="16"
juanpablo@726
   365
						key="staticText-4"/>
juanpablo@726
   366
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   367
					<textElement textAlignment="Right">
juanpablo@726
   368
						<font fontName="Bitstream Vera Sans"/>
juanpablo@726
   369
					</textElement>
juanpablo@726
   370
				<text><![CDATA[Total:]]></text>
juanpablo@726
   371
				</staticText>
juanpablo@726
   372
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   373
					<reportElement
carlos@0
   374
						style="Total_Field"
carlos@0
   375
						x="100"
carlos@0
   376
						y="1"
carlos@0
   377
						width="280"
carlos@0
   378
						height="16"
juanpablo@726
   379
						key="textField"/>
juanpablo@726
   380
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="5" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   381
					<textElement>
juanpablo@726
   382
						<font/>
juanpablo@726
   383
					</textElement>
juanpablo@726
   384
				<textFieldExpression   class="java.lang.Integer"><![CDATA[$V{TAXNAME_COUNT}]]></textFieldExpression>
juanpablo@726
   385
				</textField>
juanpablo@726
   386
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   387
					<reportElement
carlos@0
   388
						style="Total_Field"
carlos@0
   389
						x="380"
carlos@0
   390
						y="1"
carlos@0
   391
						width="60"
carlos@0
   392
						height="16"
juanpablo@726
   393
						key="textField"/>
juanpablo@726
   394
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="5" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   395
					<textElement textAlignment="Right">
juanpablo@726
   396
						<font/>
juanpablo@726
   397
					</textElement>
eduardo@1102
   398
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$V{sumTaxBaseAmt}]]></textFieldExpression>
juanpablo@726
   399
				</textField>
juanpablo@726
   400
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   401
					<reportElement
carlos@0
   402
						style="Total_Field"
carlos@0
   403
						x="440"
carlos@0
   404
						y="1"
carlos@0
   405
						width="80"
carlos@0
   406
						height="16"
juanpablo@726
   407
						key="textField"/>
juanpablo@726
   408
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="5" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   409
					<textElement textAlignment="Right">
juanpablo@726
   410
						<font/>
juanpablo@726
   411
					</textElement>
eduardo@1102
   412
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$V{sumImport}]]></textFieldExpression>
juanpablo@726
   413
				</textField>
juanpablo@726
   414
				<line direction="TopDown">
carlos@0
   415
					<reportElement
carlos@0
   416
						x="10"
carlos@0
   417
						y="0"
carlos@0
   418
						width="510"
carlos@0
   419
						height="0"
carlos@0
   420
						forecolor="#666666"
juanpablo@726
   421
						key="line-37"/>
juanpablo@726
   422
					<graphicElement stretchType="NoStretch" pen="Thin"/>
juanpablo@726
   423
				</line>
juanpablo@726
   424
			</band>
juanpablo@726
   425
			</groupFooter>
juanpablo@726
   426
		</group>
juanpablo@726
   427
		<background>
juanpablo@726
   428
			<band height="0"  isSplitAllowed="true" >
juanpablo@726
   429
			</band>
juanpablo@726
   430
		</background>
juanpablo@726
   431
		<title>
juanpablo@726
   432
			<band height="0"  isSplitAllowed="true" >
juanpablo@726
   433
			</band>
juanpablo@726
   434
		</title>
juanpablo@726
   435
		<pageHeader>
juanpablo@726
   436
			<band height="20"  isSplitAllowed="true" >
juanpablo@726
   437
				<textField isStretchWithOverflow="true" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   438
					<reportElement
carlos@0
   439
						style="Report_Subtitle"
carlos@0
   440
						x="0"
carlos@0
   441
						y="0"
carlos@0
   442
						width="535"
carlos@0
   443
						height="20"
juanpablo@726
   444
						key="textField"/>
juanpablo@726
   445
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="5" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   446
					<textElement>
juanpablo@726
   447
						<font/>
juanpablo@726
   448
					</textElement>
juanpablo@726
   449
				<textFieldExpression   class="java.lang.String"><![CDATA[$P{SALE}]]></textFieldExpression>
juanpablo@726
   450
				</textField>
juanpablo@726
   451
			</band>
juanpablo@726
   452
		</pageHeader>
juanpablo@726
   453
		<columnHeader>
juanpablo@726
   454
			<band height="0"  isSplitAllowed="true" >
juanpablo@726
   455
			</band>
juanpablo@726
   456
		</columnHeader>
juanpablo@726
   457
		<detail>
juanpablo@726
   458
			<band height="14"  isSplitAllowed="true" >
juanpablo@726
   459
				<printWhenExpression><![CDATA[new Boolean($P{DETAIL}.equals("Y"))]]></printWhenExpression>
juanpablo@726
   460
				<line direction="TopDown">
carlos@0
   461
					<reportElement
carlos@0
   462
						x="534"
carlos@0
   463
						y="0"
carlos@0
   464
						width="0"
carlos@0
   465
						height="14"
carlos@0
   466
						forecolor="#555555"
carlos@0
   467
						key="line-16"
juanpablo@726
   468
						stretchType="RelativeToBandHeight"/>
juanpablo@726
   469
					<graphicElement stretchType="RelativeToBandHeight" pen="2Point"/>
juanpablo@726
   470
				</line>
juanpablo@726
   471
				<line direction="TopDown">
carlos@0
   472
					<reportElement
carlos@0
   473
						x="0"
carlos@0
   474
						y="0"
carlos@0
   475
						width="0"
carlos@0
   476
						height="14"
carlos@0
   477
						forecolor="#555555"
carlos@0
   478
						key="line-17"
juanpablo@726
   479
						stretchType="RelativeToBandHeight"/>
juanpablo@726
   480
					<graphicElement stretchType="RelativeToBandHeight" pen="2Point"/>
juanpablo@726
   481
				</line>
juanpablo@726
   482
				<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   483
					<reportElement
carlos@0
   484
						style="Detail_Line"
carlos@0
   485
						x="10"
carlos@0
   486
						y="0"
carlos@0
   487
						width="90"
carlos@0
   488
						height="14"
juanpablo@726
   489
						key="textField"/>
juanpablo@726
   490
					<box topBorder="None" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#666666" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   491
					<textElement verticalAlignment="Middle">
juanpablo@726
   492
						<font fontName="Bitstream Vera Sans" size="10"/>
juanpablo@726
   493
					</textElement>
juanpablo@726
   494
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{DOCUMENTNO}]]></textFieldExpression>
juanpablo@726
   495
				</textField>
juanpablo@726
   496
				<textField isStretchWithOverflow="true" pattern="dd-MM-yyyy" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   497
					<reportElement
carlos@0
   498
						style="Detail_Line"
carlos@0
   499
						x="100"
carlos@0
   500
						y="0"
carlos@0
   501
						width="80"
carlos@0
   502
						height="14"
juanpablo@726
   503
						key="textField"/>
juanpablo@726
   504
					<box topBorder="None" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#666666" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   505
					<textElement verticalAlignment="Middle">
juanpablo@726
   506
						<font fontName="Times-Roman" size="10"/>
juanpablo@726
   507
					</textElement>
juanpablo@726
   508
				<textFieldExpression   class="java.sql.Timestamp"><![CDATA[$F{DATEINVOICED}]]></textFieldExpression>
juanpablo@726
   509
				</textField>
juanpablo@726
   510
				<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   511
					<reportElement
carlos@0
   512
						style="Detail_Line"
carlos@0
   513
						x="180"
carlos@0
   514
						y="0"
carlos@0
   515
						width="200"
carlos@0
   516
						height="14"
juanpablo@726
   517
						key="textField"/>
juanpablo@726
   518
					<box topBorder="None" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#666666" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   519
					<textElement verticalAlignment="Middle">
juanpablo@726
   520
						<font fontName="Times-Roman" size="10"/>
juanpablo@726
   521
					</textElement>
juanpablo@726
   522
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{BPARTNER}]]></textFieldExpression>
juanpablo@726
   523
				</textField>
juanpablo@726
   524
				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   525
					<reportElement
carlos@0
   526
						style="Detail_Line"
carlos@0
   527
						x="380"
carlos@0
   528
						y="0"
carlos@0
   529
						width="60"
carlos@0
   530
						height="14"
juanpablo@726
   531
						key="textField"/>
juanpablo@726
   532
					<box topBorder="None" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#666666" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   533
					<textElement textAlignment="Right" verticalAlignment="Middle">
juanpablo@726
   534
						<font fontName="Times-Roman" size="10"/>
juanpablo@726
   535
					</textElement>
eduardo@1102
   536
				<textFieldExpression   class="java.lang.String"><![CDATA[($F{TAXBASEAMT}!=null)?$P{NUMBERFORMAT}.format($F{TAXBASEAMT}):new String(" ")]]></textFieldExpression>
juanpablo@726
   537
				</textField>
juanpablo@726
   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"
juanpablo@726
   545
						key="textField"/>
juanpablo@726
   546
					<box topBorder="None" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#666666" leftPadding="2" rightBorder="Thin" rightBorderColor="#666666" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   547
					<textElement textAlignment="Right" verticalAlignment="Middle">
juanpablo@726
   548
						<font fontName="Bitstream Vera Sans" size="10"/>
juanpablo@726
   549
					</textElement>
eduardo@1102
   550
				<textFieldExpression   class="java.lang.String"><![CDATA[($F{TAXAMT}!=null)?$P{NUMBERFORMAT}.format($F{TAXAMT}):new String(" ")]]></textFieldExpression>
juanpablo@726
   551
				</textField>
juanpablo@726
   552
			</band>
juanpablo@726
   553
		</detail>
juanpablo@726
   554
		<columnFooter>
juanpablo@726
   555
			<band height="0"  isSplitAllowed="true" >
juanpablo@726
   556
			</band>
juanpablo@726
   557
		</columnFooter>
juanpablo@726
   558
		<pageFooter>
juanpablo@726
   559
			<band height="0"  isSplitAllowed="true" >
juanpablo@726
   560
			</band>
juanpablo@726
   561
		</pageFooter>
juanpablo@726
   562
		<summary>
juanpablo@726
   563
			<band height="0"  isSplitAllowed="true" >
juanpablo@726
   564
			</band>
juanpablo@726
   565
		</summary>
juanpablo@726
   566
</jasperReport>