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