src/org/openbravo/erpCommon/ad_reports/ReportTaxInvoiceSaleForeign.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="ReportTaxInvoiceSaleForeign"
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="10"
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
		fontName="Bitstream Vera Sans"
carlos@0
    57
	/>
carlos@0
    58
	<style 
carlos@0
    59
		name="Detail_Header"
carlos@0
    60
		isDefault="false"
carlos@0
    61
		mode="Opaque"
carlos@0
    62
		forecolor="#FFFFFF"
carlos@0
    63
		backcolor="#555555"
carlos@0
    64
		vAlign="Middle"
carlos@0
    65
		leftBorder="1Point"
carlos@0
    66
		leftBorderColor="#FFFFFF"
carlos@0
    67
		leftPadding="5"
carlos@0
    68
		rightBorder="1Point"
carlos@0
    69
		rightBorderColor="#FFFFFF"
carlos@0
    70
	/>
carlos@0
    71
	<style 
carlos@0
    72
		name="GroupHeader_DarkGray"
carlos@0
    73
		isDefault="false"
carlos@0
    74
		mode="Opaque"
carlos@0
    75
		forecolor="#FFFFFF"
carlos@0
    76
		backcolor="#555555"
carlos@0
    77
		vAlign="Middle"
carlos@0
    78
		leftPadding="5"
carlos@0
    79
		fontName="Bitstream Vera Sans"
carlos@0
    80
		fontSize="14"
carlos@0
    81
	/>
carlos@0
    82
	<style 
carlos@0
    83
		name="GroupHeader_Gray"
carlos@0
    84
		isDefault="false"
carlos@0
    85
		mode="Opaque"
carlos@0
    86
		backcolor="#999999"
carlos@0
    87
	/>
carlos@0
    88
	<style 
carlos@0
    89
		name="Detail_Line"
carlos@0
    90
		isDefault="false"
carlos@0
    91
		vAlign="Middle"
carlos@0
    92
		fontName="Bitstream Vera Sans"
carlos@0
    93
		fontSize="9"
carlos@0
    94
	>
carlos@0
    95
carlos@0
    96
		<conditionalStyle>
carlos@0
    97
			<conditionExpression><![CDATA[new Boolean($V{TAXNAME_COUNT}.intValue()%2==1)]]></conditionExpression>
carlos@0
    98
			<style 
carlos@0
    99
				name="Detail_Line"
carlos@0
   100
				isDefault="false"
carlos@0
   101
				mode="Opaque"
carlos@0
   102
				backcolor="#CCCCCC"
carlos@0
   103
				vAlign="Middle"
carlos@0
   104
				fontName="Bitstream Vera Sans"
carlos@0
   105
				fontSize="9"
carlos@0
   106
			/>
carlos@0
   107
		</conditionalStyle>
carlos@0
   108
	</style>
carlos@0
   109
	<style 
carlos@0
   110
		name="Total_Gray"
carlos@0
   111
		isDefault="false"
carlos@0
   112
		mode="Opaque"
carlos@0
   113
		forecolor="#000000"
carlos@0
   114
		backcolor="#CCCCCC"
carlos@0
   115
	/>
carlos@0
   116
carlos@0
   117
	<parameter name="ATTACH" isForPrompting="false" class="java.lang.String"/>
carlos@0
   118
	<parameter name="BASE_WEB" isForPrompting="false" class="java.lang.String"/>
carlos@0
   119
	<parameter name="BASE_DESIGN" isForPrompting="false" class="java.lang.String"/>
carlos@0
   120
	<parameter name="LANGUAGE" isForPrompting="false" class="java.lang.String">
carlos@0
   121
		<defaultValueExpression ><![CDATA["en_US"]]></defaultValueExpression>
carlos@0
   122
	</parameter>
carlos@0
   123
	<parameter name="USER_CLIENT" isForPrompting="false" class="java.lang.String">
carlos@0
   124
		<defaultValueExpression ><![CDATA["(1000000)"]]></defaultValueExpression>
carlos@0
   125
	</parameter>
carlos@0
   126
	<parameter name="USER_ORG" isForPrompting="false" class="java.lang.String">
carlos@0
   127
		<defaultValueExpression ><![CDATA["(0, 1000000)"]]></defaultValueExpression>
carlos@0
   128
	</parameter>
carlos@0
   129
	<parameter name="REPORT_TITLE" isForPrompting="false" class="java.lang.String">
carlos@0
   130
		<defaultValueExpression ><![CDATA["REPORT TITLE"]]></defaultValueExpression>
carlos@0
   131
	</parameter>
carlos@0
   132
	<parameter name="REPORT_SUBTITLE" isForPrompting="false" class="java.lang.String">
carlos@0
   133
		<defaultValueExpression ><![CDATA["Sale Foreign"]]></defaultValueExpression>
carlos@0
   134
	</parameter>
carlos@0
   135
	<parameter name="aux_client" isForPrompting="false" class="java.lang.String">
carlos@0
   136
		<defaultValueExpression ><![CDATA[$P{USER_CLIENT}.equals("") ? "" : " AND C_INVOICE.AD_CLIENT_ID IN ("+$P{USER_CLIENT}+") "]]></defaultValueExpression>
carlos@0
   137
	</parameter>
carlos@0
   138
	<parameter name="aux_org" isForPrompting="false" class="java.lang.String">
carlos@0
   139
		<defaultValueExpression ><![CDATA[$P{USER_ORG}.equals("") ? "" : " AND C_INVOICE.AD_ORG_ID IN ("+$P{USER_ORG}+") "]]></defaultValueExpression>
carlos@0
   140
	</parameter>
carlos@0
   141
	<parameter name="cCountryId" isForPrompting="true" class="java.lang.Integer">
carlos@0
   142
		<defaultValueExpression ><![CDATA[new Integer(100)]]></defaultValueExpression>
carlos@0
   143
	</parameter>
carlos@0
   144
	<parameter name="parDateFrom" isForPrompting="true" class="java.util.Date"/>
carlos@0
   145
	<parameter name="parDateTo" isForPrompting="true" class="java.util.Date"/>
carlos@0
   146
	<parameter name="ReportData" isForPrompting="false" class="java.lang.String">
carlos@0
   147
		<defaultValueExpression ><![CDATA[""]]></defaultValueExpression>
carlos@0
   148
	</parameter>
carlos@0
   149
	<parameter name="SALE" isForPrompting="false" class="java.lang.String"/>
carlos@0
   150
	<parameter name="DETAIL" isForPrompting="false" class="java.lang.String"/>
carlos@0
   151
	<parameter name="NUMBERFORMAT" isForPrompting="false" class="java.text.DecimalFormat"/>
carlos@0
   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
carlos@0
   173
      ORDER BY C_TAX.NAME, C_INVOICE.DATEINVOICED]]></queryString>
carlos@0
   174
carlos@0
   175
	<field name="SALES" class="java.lang.String"/>
carlos@0
   176
	<field name="NATIONAL" class="java.lang.String"/>
carlos@0
   177
	<field name="DOCUMENTNO" class="java.lang.String"/>
carlos@0
   178
	<field name="DATEINVOICED" class="java.sql.Timestamp"/>
carlos@0
   179
	<field name="BPARTNER" class="java.lang.String"/>
carlos@0
   180
	<field name="TAXNAME" class="java.lang.String"/>
carlos@0
   181
	<field name="TAXBASEAMT" class="java.math.BigDecimal"/>
carlos@0
   182
	<field name="TAXAMT" class="java.math.BigDecimal"/>
carlos@0
   183
	<field name="ADTREEID" class="java.lang.String"/>
carlos@0
   184
carlos@0
   185
	<variable name="sumTaxBaseAmt" class="java.lang.Float" resetType="Group" resetGroup="TAXNAME" calculation="Sum">
carlos@0
   186
		<variableExpression><![CDATA[new Float($F{TAXBASEAMT}.floatValue())]]></variableExpression>
carlos@0
   187
	</variable>
carlos@0
   188
	<variable name="sumImport" class="java.lang.Float" resetType="Group" resetGroup="TAXNAME" calculation="Sum">
carlos@0
   189
		<variableExpression><![CDATA[new Float($F{TAXAMT}.floatValue())]]></variableExpression>
carlos@0
   190
	</variable>
carlos@0
   191
carlos@0
   192
		<group  name="TAXNAME" >
carlos@0
   193
			<groupExpression><![CDATA[$F{TAXNAME}]]></groupExpression>
carlos@0
   194
			<groupHeader>
carlos@0
   195
			<band height="44"  isSplitAllowed="true" >
carlos@0
   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"
carlos@0
   203
						key="staticText"/>
carlos@0
   204
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="5" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
carlos@0
   205
					<textElement>
carlos@0
   206
						<font pdfFontName="Helvetica"/>
carlos@0
   207
					</textElement>
carlos@0
   208
				<text><![CDATA[Tax type]]></text>
carlos@0
   209
				</staticText>
carlos@0
   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"
carlos@0
   217
						key="textField"/>
carlos@0
   218
					<box topBorder="None" topBorderColor="#000000" topPadding="2" leftBorder="None" leftBorderColor="#000000" leftPadding="5" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
carlos@0
   219
					<textElement>
carlos@0
   220
						<font pdfFontName="Helvetica"/>
carlos@0
   221
					</textElement>
carlos@0
   222
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{TAXNAME}]]></textFieldExpression>
carlos@0
   223
				</textField>
carlos@0
   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"
carlos@0
   232
						stretchType="RelativeToBandHeight"/>
carlos@0
   233
					<graphicElement stretchType="RelativeToBandHeight" pen="2Point"/>
carlos@0
   234
				</line>
carlos@0
   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"
carlos@0
   243
						stretchType="RelativeToBandHeight"/>
carlos@0
   244
					<graphicElement stretchType="RelativeToBandHeight" pen="2Point"/>
carlos@0
   245
				</line>
carlos@0
   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"
carlos@0
   253
						key="element-90">
carlos@0
   254
							<printWhenExpression><![CDATA[new Boolean($P{DETAIL}.equals("Y"))]]></printWhenExpression>
carlos@0
   255
						</reportElement>
carlos@0
   256
					<box topBorder="None" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#FFFFFF" leftPadding="5" rightBorder="None" rightBorderColor="#FFFFFF" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
carlos@0
   257
					<textElement>
carlos@0
   258
						<font/>
carlos@0
   259
					</textElement>
carlos@0
   260
				<text><![CDATA[Invoice]]></text>
carlos@0
   261
				</staticText>
carlos@0
   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"
carlos@0
   269
						key="element-90">
carlos@0
   270
							<printWhenExpression><![CDATA[new Boolean($P{DETAIL}.equals("Y"))]]></printWhenExpression>
carlos@0
   271
						</reportElement>
carlos@0
   272
					<box topBorder="None" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#FFFFFF" leftPadding="5" rightBorder="None" rightBorderColor="#FFFFFF" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
carlos@0
   273
					<textElement>
carlos@0
   274
						<font/>
carlos@0
   275
					</textElement>
carlos@0
   276
				<text><![CDATA[Date]]></text>
carlos@0
   277
				</staticText>
carlos@0
   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"
carlos@0
   285
						key="element-90">
carlos@0
   286
							<printWhenExpression><![CDATA[new Boolean($P{DETAIL}.equals("Y"))]]></printWhenExpression>
carlos@0
   287
						</reportElement>
carlos@0
   288
					<box topBorder="None" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#FFFFFF" leftPadding="5" rightBorder="None" rightBorderColor="#FFFFFF" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
carlos@0
   289
					<textElement>
carlos@0
   290
						<font/>
carlos@0
   291
					</textElement>
carlos@0
   292
				<text><![CDATA[Business Partner]]></text>
carlos@0
   293
				</staticText>
carlos@0
   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"
carlos@0
   301
						key="element-90"/>
carlos@0
   302
					<box topBorder="None" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#FFFFFF" leftPadding="5" rightBorder="None" rightBorderColor="#FFFFFF" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
carlos@0
   303
					<textElement textAlignment="Right">
carlos@0
   304
						<font/>
carlos@0
   305
					</textElement>
carlos@0
   306
				<text><![CDATA[Taxable Base]]></text>
carlos@0
   307
				</staticText>
carlos@0
   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"
carlos@0
   315
						key="element-90"/>
carlos@0
   316
					<box topBorder="None" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#FFFFFF" leftPadding="5" rightBorder="1Point" rightBorderColor="#FFFFFF" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
carlos@0
   317
					<textElement textAlignment="Right">
carlos@0
   318
						<font/>
carlos@0
   319
					</textElement>
carlos@0
   320
				<text><![CDATA[Amount]]></text>
carlos@0
   321
				</staticText>
carlos@0
   322
			</band>
carlos@0
   323
			</groupHeader>
carlos@0
   324
			<groupFooter>
carlos@0
   325
			<band height="28"  isSplitAllowed="true" >
carlos@0
   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"
carlos@0
   334
						stretchType="RelativeToBandHeight"/>
carlos@0
   335
					<graphicElement stretchType="RelativeToBandHeight" pen="2Point"/>
carlos@0
   336
				</line>
carlos@0
   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"
carlos@0
   345
						stretchType="RelativeToBandHeight"/>
carlos@0
   346
					<graphicElement stretchType="RelativeToBandHeight" pen="2Point"/>
carlos@0
   347
				</line>
carlos@0
   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"
carlos@0
   355
						key="line-34"/>
carlos@0
   356
					<graphicElement stretchType="NoStretch" pen="2Point"/>
carlos@0
   357
				</line>
carlos@0
   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"
carlos@0
   365
						key="staticText-4"/>
carlos@0
   366
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
carlos@0
   367
					<textElement textAlignment="Right">
carlos@0
   368
						<font fontName="Bitstream Vera Sans"/>
carlos@0
   369
					</textElement>
carlos@0
   370
				<text><![CDATA[Total:]]></text>
carlos@0
   371
				</staticText>
carlos@0
   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"
carlos@0
   379
						key="textField"/>
carlos@0
   380
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="5" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
carlos@0
   381
					<textElement>
carlos@0
   382
						<font/>
carlos@0
   383
					</textElement>
carlos@0
   384
				<textFieldExpression   class="java.lang.Integer"><![CDATA[$V{TAXNAME_COUNT}]]></textFieldExpression>
carlos@0
   385
				</textField>
carlos@0
   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"
carlos@0
   393
						key="textField"/>
carlos@0
   394
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="5" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
carlos@0
   395
					<textElement textAlignment="Right">
carlos@0
   396
						<font/>
carlos@0
   397
					</textElement>
carlos@0
   398
				<textFieldExpression   class="java.lang.Float"><![CDATA[$V{sumTaxBaseAmt}]]></textFieldExpression>
carlos@0
   399
				</textField>
carlos@0
   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"
carlos@0
   407
						key="textField"/>
carlos@0
   408
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="5" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
carlos@0
   409
					<textElement textAlignment="Right">
carlos@0
   410
						<font/>
carlos@0
   411
					</textElement>
carlos@0
   412
				<textFieldExpression   class="java.lang.Float"><![CDATA[$V{sumImport}]]></textFieldExpression>
carlos@0
   413
				</textField>
carlos@0
   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"
carlos@0
   421
						key="line-37"/>
carlos@0
   422
					<graphicElement stretchType="NoStretch" pen="Thin"/>
carlos@0
   423
				</line>
carlos@0
   424
			</band>
carlos@0
   425
			</groupFooter>
carlos@0
   426
		</group>
carlos@0
   427
		<background>
carlos@0
   428
			<band height="0"  isSplitAllowed="true" >
carlos@0
   429
			</band>
carlos@0
   430
		</background>
carlos@0
   431
		<title>
carlos@0
   432
			<band height="0"  isSplitAllowed="true" >
carlos@0
   433
			</band>
carlos@0
   434
		</title>
carlos@0
   435
		<pageHeader>
carlos@0
   436
			<band height="20"  isSplitAllowed="true" >
carlos@0
   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"
carlos@0
   444
						key="textField"/>
carlos@0
   445
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="5" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
carlos@0
   446
					<textElement>
carlos@0
   447
						<font/>
carlos@0
   448
					</textElement>
carlos@0
   449
				<textFieldExpression   class="java.lang.String"><![CDATA[$P{SALE}]]></textFieldExpression>
carlos@0
   450
				</textField>
carlos@0
   451
			</band>
carlos@0
   452
		</pageHeader>
carlos@0
   453
		<columnHeader>
carlos@0
   454
			<band height="0"  isSplitAllowed="true" >
carlos@0
   455
			</band>
carlos@0
   456
		</columnHeader>
carlos@0
   457
		<detail>
carlos@0
   458
			<band height="14"  isSplitAllowed="true" >
carlos@0
   459
				<printWhenExpression><![CDATA[new Boolean($P{DETAIL}.equals("Y"))]]></printWhenExpression>
carlos@0
   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"
carlos@0
   468
						stretchType="RelativeToBandHeight"/>
carlos@0
   469
					<graphicElement stretchType="RelativeToBandHeight" pen="2Point"/>
carlos@0
   470
				</line>
carlos@0
   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"
carlos@0
   479
						stretchType="RelativeToBandHeight"/>
carlos@0
   480
					<graphicElement stretchType="RelativeToBandHeight" pen="2Point"/>
carlos@0
   481
				</line>
carlos@0
   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"
carlos@0
   489
						key="textField"/>
carlos@0
   490
					<box topBorder="None" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#666666" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
carlos@0
   491
					<textElement verticalAlignment="Middle">
carlos@0
   492
						<font fontName="Bitstream Vera Sans" size="10"/>
carlos@0
   493
					</textElement>
carlos@0
   494
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{DOCUMENTNO}]]></textFieldExpression>
carlos@0
   495
				</textField>
carlos@0
   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"
carlos@0
   503
						key="textField"/>
carlos@0
   504
					<box topBorder="None" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#666666" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
carlos@0
   505
					<textElement verticalAlignment="Middle">
carlos@0
   506
						<font fontName="Times-Roman" size="10"/>
carlos@0
   507
					</textElement>
carlos@0
   508
				<textFieldExpression   class="java.sql.Timestamp"><![CDATA[$F{DATEINVOICED}]]></textFieldExpression>
carlos@0
   509
				</textField>
carlos@0
   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"
carlos@0
   517
						key="textField"/>
carlos@0
   518
					<box topBorder="None" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#666666" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
carlos@0
   519
					<textElement verticalAlignment="Middle">
carlos@0
   520
						<font fontName="Times-Roman" size="10"/>
carlos@0
   521
					</textElement>
carlos@0
   522
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{BPARTNER}]]></textFieldExpression>
carlos@0
   523
				</textField>
carlos@0
   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"
carlos@0
   531
						key="textField"/>
carlos@0
   532
					<box topBorder="None" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#666666" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
carlos@0
   533
					<textElement textAlignment="Right" verticalAlignment="Middle">
carlos@0
   534
						<font fontName="Times-Roman" size="10"/>
carlos@0
   535
					</textElement>
carlos@0
   536
				<textFieldExpression   class="java.lang.String"><![CDATA[($F{TAXBASEAMT}!=null)?$P{NUMBERFORMAT}.format($F{TAXBASEAMT}):new String(" ")
carlos@0
   537
]]></textFieldExpression>
carlos@0
   538
				</textField>
carlos@0
   539
				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   540
					<reportElement
carlos@0
   541
						style="Detail_Line"
carlos@0
   542
						x="440"
carlos@0
   543
						y="0"
carlos@0
   544
						width="80"
carlos@0
   545
						height="14"
carlos@0
   546
						key="textField"/>
carlos@0
   547
					<box topBorder="None" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#666666" leftPadding="2" rightBorder="Thin" rightBorderColor="#666666" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
carlos@0
   548
					<textElement textAlignment="Right" verticalAlignment="Middle">
carlos@0
   549
						<font fontName="Bitstream Vera Sans" size="10"/>
carlos@0
   550
					</textElement>
carlos@0
   551
				<textFieldExpression   class="java.lang.String"><![CDATA[($F{TAXAMT}!=null)?$P{NUMBERFORMAT}.format($F{TAXAMT}):new String(" ")
carlos@0
   552
]]></textFieldExpression>
carlos@0
   553
				</textField>
carlos@0
   554
			</band>
carlos@0
   555
		</detail>
carlos@0
   556
		<columnFooter>
carlos@0
   557
			<band height="0"  isSplitAllowed="true" >
carlos@0
   558
			</band>
carlos@0
   559
		</columnFooter>
carlos@0
   560
		<pageFooter>
carlos@0
   561
			<band height="0"  isSplitAllowed="true" >
carlos@0
   562
			</band>
carlos@0
   563
		</pageFooter>
carlos@0
   564
		<summary>
carlos@0
   565
			<band height="0"  isSplitAllowed="true" >
carlos@0
   566
			</band>
carlos@0
   567
		</summary>
carlos@0
   568
</jasperReport>