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