src/org/openbravo/erpCommon/ad_reports/ReportTaxInvoiceSale.jrxml
author Pandeeswari Ramakrishnan <pandeeswari.ramakrishnan@openbravo.com>
Tue, 18 Mar 2014 11:04:49 +0530
changeset 22717 8f8910c3f90c
parent 18035 41ed8d602a12
child 22768 1dcbf92e17e9
permissions -rw-r--r--
Fixes Issue 25289: Invoice Taxes Report: Some taxes' width comes out of the pdf
ivan@11848
     1
<?xml version="1.0" encoding="UTF-8"?>
ivan@11848
     2
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="ReportTaxInvoiceSale" pageWidth="605" pageHeight="842" columnWidth="605" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0">
ivan@11848
     3
	<property name="ireport.scriptlethandling" value="0"/>
ivan@11848
     4
	<property name="ireport.encoding" value="UTF-8"/>
ioritz@18035
     5
	<property name="ireport.zoom" value="1.0"/>
ioritz@18035
     6
	<property name="ireport.x" value="0"/>
ioritz@18035
     7
	<property name="ireport.y" value="0"/>
ivan@11848
     8
	<import value="net.sf.jasperreports.engine.*"/>
ivan@11848
     9
	<import value="java.util.*"/>
ivan@11848
    10
	<import value="net.sf.jasperreports.engine.data.*"/>
ivan@11848
    11
	<style name="default" vAlign="Middle" fontName="Bitstream Vera Sans" fontSize="10"/>
ivan@11848
    12
	<style name="Report_Title" fontName="Bitstream Vera Sans" fontSize="18"/>
ivan@11848
    13
	<style name="Report_Subtitle" forecolor="#555555" fontName="Bitstream Vera Sans" fontSize="14"/>
ivan@11848
    14
	<style name="Total_Field" mode="Opaque" forecolor="#000000" backcolor="#CCCCCC" vAlign="Middle"/>
ivan@11848
    15
	<style name="Detail_Header" mode="Opaque" forecolor="#FFFFFF" backcolor="#555555" vAlign="Middle"/>
ivan@11848
    16
	<style name="GroupHeader_DarkGray" mode="Opaque" forecolor="#FFFFFF" backcolor="#555555" vAlign="Middle" fontName="Bitstream Vera Sans" fontSize="14"/>
ivan@11848
    17
	<style name="GroupHeader_Gray" mode="Opaque" backcolor="#999999"/>
ivan@11848
    18
	<style name="Detail_Line" fontName="Bitstream Vera Sans" fontSize="9">
ivan@11848
    19
		<conditionalStyle>
ivan@11848
    20
			<conditionExpression><![CDATA[new Boolean($V{TAXNAME_COUNT}.intValue()%2==1)]]></conditionExpression>
ivan@11848
    21
			<style mode="Opaque" backcolor="#CCCCCC" fontName="Bitstream Vera Sans" fontSize="9"/>
ivan@11848
    22
		</conditionalStyle>
ivan@11848
    23
	</style>
ivan@11848
    24
	<style name="Total_Gray" mode="Opaque" forecolor="#000000" backcolor="#CCCCCC"/>
ivan@11848
    25
	<parameter name="ATTACH" class="java.lang.String" isForPrompting="false"/>
ivan@11848
    26
	<parameter name="BASE_WEB" class="java.lang.String" isForPrompting="false"/>
ivan@11848
    27
	<parameter name="BASE_DESIGN" class="java.lang.String" isForPrompting="false"/>
ivan@11848
    28
	<parameter name="LANGUAGE" class="java.lang.String" isForPrompting="false">
ivan@11848
    29
		<defaultValueExpression><![CDATA["en_US"]]></defaultValueExpression>
ivan@11848
    30
	</parameter>
ivan@11848
    31
	<parameter name="USER_CLIENT" class="java.lang.String" isForPrompting="false">
ivan@11848
    32
		<defaultValueExpression><![CDATA["'1000000'"]]></defaultValueExpression>
ivan@11848
    33
	</parameter>
ivan@11848
    34
	<parameter name="USER_ORG" class="java.lang.String" isForPrompting="false">
ivan@11848
    35
		<defaultValueExpression><![CDATA["'0','1000000'"]]></defaultValueExpression>
ivan@11848
    36
	</parameter>
ivan@11848
    37
	<parameter name="REPORT_TITLE" class="java.lang.String" isForPrompting="false">
ivan@11848
    38
		<defaultValueExpression><![CDATA["REPORT TITLE"]]></defaultValueExpression>
ivan@11848
    39
	</parameter>
ivan@11848
    40
	<parameter name="REPORT_SUBTITLE" class="java.lang.String" isForPrompting="false">
ivan@11848
    41
		<defaultValueExpression><![CDATA["Sale"]]></defaultValueExpression>
ivan@11848
    42
	</parameter>
ivan@11848
    43
	<parameter name="aux_client" class="java.lang.String" isForPrompting="false">
ivan@11848
    44
		<defaultValueExpression><![CDATA[$P{USER_CLIENT}.equals("") ? " " : " AND C_INVOICE.AD_CLIENT_ID IN ("+$P{USER_CLIENT}+") "]]></defaultValueExpression>
ivan@11848
    45
	</parameter>
ivan@11848
    46
	<parameter name="aux_org" class="java.lang.String" isForPrompting="false">
ivan@11848
    47
		<defaultValueExpression><![CDATA[$P{USER_ORG}.equals("") ? " " : " AND C_INVOICE.AD_ORG_ID IN ("+$P{USER_ORG}+") "]]></defaultValueExpression>
ivan@11848
    48
	</parameter>
ivan@11848
    49
	<parameter name="cCountryId" class="java.lang.String">
ivan@11848
    50
		<defaultValueExpression><![CDATA["100"]]></defaultValueExpression>
ivan@11848
    51
	</parameter>
ivan@11848
    52
	<parameter name="parDateFrom" class="java.util.Date"/>
ivan@11848
    53
	<parameter name="parDateTo" class="java.util.Date"/>
ivan@11848
    54
	<parameter name="ReportData" class="java.lang.String" isForPrompting="false">
ivan@11848
    55
		<defaultValueExpression><![CDATA[""]]></defaultValueExpression>
ivan@11848
    56
	</parameter>
ivan@11848
    57
	<parameter name="SALE" class="java.lang.String" isForPrompting="false"/>
ivan@11848
    58
	<parameter name="DETAIL" class="java.lang.String" isForPrompting="false"/>
ivan@11848
    59
	<parameter name="NUMBERFORMAT" class="java.text.DecimalFormat" isForPrompting="false"/>
ivan@11848
    60
	<parameter name="LOCALE" class="java.util.Locale" isForPrompting="false"/>
ivan@11848
    61
	<parameter name="PARAM_CURRENCY" class="java.lang.String" isForPrompting="false">
ivan@11848
    62
		<defaultValueExpression><![CDATA["102"]]></defaultValueExpression>
ivan@11848
    63
	</parameter>
ivan@11848
    64
	<queryString>
ioritz@18035
    65
		<![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,
ioritz@18035
    66
      SUM(CASE WHEN DOCBASETYPE IN ('ARC','APC') THEN -1 * (C_CURRENCY_CONVERT_RATE(C_INVOICETAX.TAXBASEAMT, C_INVOICE.C_CURRENCY_ID,$P{PARAM_CURRENCY}, TO_DATE(COALESCE(C_INVOICE.DATEINVOICED, NOW())), NULL, C_INVOICETAX.AD_CLIENT_ID, C_INVOICETAX.AD_ORG_ID, ICR.RATE))
ioritz@18035
    67
       ELSE (C_CURRENCY_CONVERT_RATE(C_INVOICETAX.TAXBASEAMT, C_INVOICE.C_CURRENCY_ID,$P{PARAM_CURRENCY}, TO_DATE(COALESCE(C_INVOICE.DATEINVOICED, NOW())), NULL, C_INVOICETAX.AD_CLIENT_ID, C_INVOICETAX.AD_ORG_ID, ICR.RATE)) END) AS TAXBASEAMT,
ioritz@18035
    68
      SUM(CASE WHEN DOCBASETYPE IN ('ARC','APC') THEN -1 * (C_CURRENCY_CONVERT_RATE(C_INVOICETAX.TAXAMT, C_INVOICE.C_CURRENCY_ID, $P{PARAM_CURRENCY}, TO_DATE(COALESCE(C_INVOICE.DATEINVOICED, NOW())), NULL, C_INVOICETAX.AD_CLIENT_ID, C_INVOICETAX.AD_ORG_ID, ICR.RATE))
ioritz@18035
    69
       ELSE (C_CURRENCY_CONVERT_RATE(C_INVOICETAX.TAXAMT, C_INVOICE.C_CURRENCY_ID, $P{PARAM_CURRENCY}, TO_DATE(COALESCE(C_INVOICE.DATEINVOICED, NOW())), NULL, C_INVOICETAX.AD_CLIENT_ID, C_INVOICETAX.AD_ORG_ID, ICR.RATE)) END) AS TAXAMT, '' AS ADTREEID,C_CURRENCY_SYMBOL($P{PARAM_CURRENCY}, 0, 'Y') AS CURRENCY,'' AS SUM_AMOUNT,'' AS Tax_BASE
ioritz@18035
    70
      FROM C_TAX, C_INVOICETAX, C_INVOICE
ioritz@18035
    71
        LEFT JOIN C_CONVERSION_RATE_DOCUMENT ICR ON C_INVOICE.C_INVOICE_ID = ICR.C_INVOICE_ID,
ioritz@18035
    72
        C_BPARTNER_LOCATION, C_LOCATION, C_BPARTNER, C_DOCTYPE
carlos@0
    73
      WHERE C_TAX.C_TAX_ID=C_INVOICETAX.C_TAX_ID
carlos@0
    74
      AND C_INVOICETAX.C_INVOICE_ID=C_INVOICE.C_INVOICE_ID
carlos@0
    75
      AND C_INVOICE.C_BPARTNER_LOCATION_ID = C_BPARTNER_LOCATION.C_BPARTNER_LOCATION_ID
carlos@0
    76
      AND C_BPARTNER_LOCATION.C_LOCATION_ID = C_LOCATION.C_LOCATION_ID
carlos@0
    77
      AND C_INVOICE.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID
eduardo@1271
    78
      AND C_INVOICE.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID
carlos@0
    79
      AND C_INVOICE.PROCESSED = 'Y'
carlos@0
    80
      AND C_INVOICE.ISACTIVE = 'Y'
carlos@0
    81
      AND C_INVOICE.ISSOTRX = 'Y'
carlos@0
    82
      AND C_LOCATION.C_COUNTRY_ID = $P{cCountryId}
carlos@0
    83
      AND C_INVOICE.DATEINVOICED >= $P{parDateFrom}
carlos@0
    84
      AND C_INVOICE.DATEINVOICED < $P{parDateTo}
ioritz@18035
    85
    AND 1=1 $P!{aux_client}
harikrishnan@4429
    86
AND 1=1 $P!{aux_org}
ioritz@18035
    87
      AND 1=1
carlos@0
    88
      GROUP BY C_INVOICE.DOCUMENTNO, C_INVOICE.DATEINVOICED, C_TAX.NAME, C_BPARTNER.NAME, C_INVOICE.ISSOTRX
carlos@0
    89
      HAVING SUM(C_INVOICETAX.TAXBASEAMT) <> 0
ivan@11848
    90
      ORDER BY C_TAX.NAME, C_INVOICE.DATEINVOICED]]>
ivan@11848
    91
	</queryString>
ivan@11848
    92
	<field name="SALES" class="java.lang.String"/>
ivan@11848
    93
	<field name="NATIONAL" class="java.lang.String"/>
ivan@11848
    94
	<field name="DOCUMENTNO" class="java.lang.String"/>
ivan@11848
    95
	<field name="DATEINVOICED" class="java.sql.Timestamp"/>
ivan@11848
    96
	<field name="BPARTNER" class="java.lang.String"/>
ivan@11848
    97
	<field name="TAXNAME" class="java.lang.String"/>
ivan@11848
    98
	<field name="TAXBASEAMT" class="java.math.BigDecimal"/>
ivan@11848
    99
	<field name="TAXAMT" class="java.math.BigDecimal"/>
ivan@11848
   100
	<field name="ADTREEID" class="java.lang.String"/>
ivan@11848
   101
	<field name="CURRENCY" class="java.lang.String"/>
ivan@11848
   102
	<field name="SUM_AMOUNT" class="java.lang.String"/>
ivan@11848
   103
	<field name="Tax_BASE" class="java.lang.String"/>
ivan@11848
   104
	<variable name="sumTaxBaseAmt" class="java.math.BigDecimal" resetType="Group" resetGroup="TAXNAME" calculation="Sum">
ivan@11848
   105
		<variableExpression><![CDATA[$F{TAXBASEAMT}]]></variableExpression>
ivan@11848
   106
	</variable>
ivan@11848
   107
	<variable name="sumImport" class="java.math.BigDecimal" resetType="Group" resetGroup="TAXNAME" calculation="Sum">
ivan@11848
   108
		<variableExpression><![CDATA[$F{TAXAMT}]]></variableExpression>
ivan@11848
   109
	</variable>
ivan@11848
   110
	<variable name="sumAmount" class="java.lang.String">
ivan@11848
   111
		<variableExpression><![CDATA[$V{sumImport}.toString()]]></variableExpression>
ivan@11848
   112
	</variable>
ivan@11848
   113
	<group name="TAXNAME">
ivan@11848
   114
		<groupExpression><![CDATA[$F{TAXNAME}]]></groupExpression>
ivan@11848
   115
		<groupHeader>
pandeeswari@22717
   116
			<band height="58" splitType="Stretch">
ivan@11848
   117
				<staticText>
pandeeswari@22717
   118
					<reportElement key="staticText" style="GroupHeader_DarkGray" x="1" y="0" width="100" height="32"/>
ivan@11848
   119
					<box leftPadding="5">
ivan@11848
   120
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   121
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   122
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   123
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   124
					</box>
ivan@11848
   125
					<textElement>
ivan@11848
   126
						<font pdfFontName="Helvetica"/>
ivan@11848
   127
					</textElement>
ivan@11848
   128
					<text><![CDATA[Tax Type]]></text>
ivan@11848
   129
				</staticText>
ivan@11848
   130
				<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
pandeeswari@22717
   131
					<reportElement key="textField" style="GroupHeader_DarkGray" x="101" y="0" width="478" height="32"/>
ivan@11848
   132
					<box leftPadding="5">
ivan@11848
   133
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   134
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   135
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   136
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   137
					</box>
ivan@11848
   138
					<textElement>
ivan@11848
   139
						<font pdfFontName="Helvetica"/>
ivan@11848
   140
					</textElement>
ivan@11848
   141
					<textFieldExpression class="java.lang.String"><![CDATA[$F{TAXNAME}]]></textFieldExpression>
ivan@11848
   142
				</textField>
ivan@11848
   143
				<line>
ivan@11848
   144
					<reportElement key="line-2" stretchType="RelativeToBandHeight" x="0" y="1" width="1" height="43" forecolor="#555555"/>
ivan@11848
   145
				</line>
ivan@11848
   146
				<line>
ivan@11848
   147
					<reportElement key="line-3" stretchType="RelativeToBandHeight" x="604" y="0" width="1" height="43" forecolor="#555555"/>
ivan@11848
   148
				</line>
ivan@11848
   149
				<staticText>
pandeeswari@22717
   150
					<reportElement key="element-90" style="Detail_Header" x="10" y="42" width="90" height="16">
ivan@11848
   151
						<printWhenExpression><![CDATA[new Boolean($P{DETAIL}.equals("Y"))]]></printWhenExpression>
ivan@11848
   152
					</reportElement>
ivan@11848
   153
					<box leftPadding="5">
ivan@11848
   154
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   155
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   156
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   157
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   158
					</box>
ivan@11848
   159
					<textElement/>
ivan@11848
   160
					<text><![CDATA[Invoice]]></text>
ivan@11848
   161
				</staticText>
ivan@11848
   162
				<staticText>
pandeeswari@22717
   163
					<reportElement key="element-90" style="Detail_Header" x="100" y="42" width="70" height="16">
ivan@11848
   164
						<printWhenExpression><![CDATA[new Boolean($P{DETAIL}.equals("Y"))]]></printWhenExpression>
ivan@11848
   165
					</reportElement>
ivan@11848
   166
					<box leftPadding="5">
ivan@11848
   167
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   168
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   169
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   170
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   171
					</box>
ivan@11848
   172
					<textElement/>
ivan@11848
   173
					<text><![CDATA[Date]]></text>
ivan@11848
   174
				</staticText>
ivan@11848
   175
				<staticText>
pandeeswari@22717
   176
					<reportElement key="element-90" style="Detail_Header" x="170" y="42" width="165" height="16">
ivan@11848
   177
						<printWhenExpression><![CDATA[new Boolean($P{DETAIL}.equals("Y"))]]></printWhenExpression>
ivan@11848
   178
					</reportElement>
ivan@11848
   179
					<box leftPadding="5">
ivan@11848
   180
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   181
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   182
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   183
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   184
					</box>
ivan@11848
   185
					<textElement/>
ivan@11848
   186
					<text><![CDATA[Business Partner]]></text>
ivan@11848
   187
				</staticText>
ivan@11848
   188
				<staticText>
pandeeswari@22717
   189
					<reportElement key="element-90" style="Detail_Header" x="335" y="42" width="117" height="16"/>
ivan@11848
   190
					<box leftPadding="5">
ivan@11848
   191
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   192
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   193
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   194
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   195
					</box>
ivan@11848
   196
					<textElement textAlignment="Right"/>
ivan@11848
   197
					<text><![CDATA[Taxable Base]]></text>
ivan@11848
   198
				</staticText>
ivan@11848
   199
				<staticText>
pandeeswari@22717
   200
					<reportElement key="element-90" style="Detail_Header" x="452" y="42" width="82" height="16"/>
ivan@11848
   201
					<box leftPadding="5">
ivan@11848
   202
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   203
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   204
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   205
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   206
					</box>
ivan@11848
   207
					<textElement textAlignment="Right"/>
ivan@11848
   208
					<text><![CDATA[Amount]]></text>
ivan@11848
   209
				</staticText>
ivan@11848
   210
			</band>
ivan@11848
   211
		</groupHeader>
ivan@11848
   212
		<groupFooter>
ivan@11848
   213
			<band height="25" splitType="Stretch">
ivan@11848
   214
				<line>
ivan@11848
   215
					<reportElement key="line-32" stretchType="RelativeToBandHeight" x="0" y="0" width="1" height="20" forecolor="#555555"/>
ivan@11848
   216
				</line>
ivan@11848
   217
				<line>
ivan@11848
   218
					<reportElement key="line-33" stretchType="RelativeToBandHeight" x="604" y="0" width="1" height="20" forecolor="#555555"/>
ivan@11848
   219
				</line>
ivan@11848
   220
				<line>
ivan@11848
   221
					<reportElement key="line-34" x="0" y="20" width="603" height="1" forecolor="#555555"/>
ivan@11848
   222
				</line>
ivan@11848
   223
				<staticText>
ivan@11848
   224
					<reportElement key="staticText-4" style="default" x="199" y="0" width="90" height="16"/>
ivan@11848
   225
					<box>
ivan@11848
   226
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   227
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   228
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   229
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   230
					</box>
ivan@11848
   231
					<textElement textAlignment="Right">
ivan@11848
   232
						<font fontName="Bitstream Vera Sans"/>
ivan@11848
   233
					</textElement>
ivan@11848
   234
					<text><![CDATA[Total:]]></text>
ivan@11848
   235
				</staticText>
ivan@11848
   236
				<textField isBlankWhenNull="false">
ivan@11848
   237
					<reportElement key="textField" style="Total_Field" x="294" y="0" width="33" height="16"/>
ivan@11848
   238
					<box leftPadding="5">
ivan@11848
   239
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   240
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   241
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   242
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   243
					</box>
ivan@11848
   244
					<textElement verticalAlignment="Middle"/>
ivan@11848
   245
					<textFieldExpression class="java.lang.Integer"><![CDATA[$V{TAXNAME_COUNT}]]></textFieldExpression>
ivan@11848
   246
				</textField>
ivan@11848
   247
				<line>
ivan@11848
   248
					<reportElement key="line-37" x="10" y="0" width="510" height="1" forecolor="#666666"/>
ivan@11848
   249
				</line>
ivan@11848
   250
				<textField isBlankWhenNull="false">
pandeeswari@22717
   251
					<reportElement key="textField" style="Total_Field" x="452" y="0" width="82" height="17"/>
ivan@11848
   252
					<box leftPadding="5">
ivan@11848
   253
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   254
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   255
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   256
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   257
					</box>
ivan@11848
   258
					<textElement textAlignment="Right"/>
ivan@11848
   259
					<textFieldExpression class="java.lang.String"><![CDATA[($V{sumImport}!=null)?$P{NUMBERFORMAT}.format($V{sumImport})+$F{CURRENCY}:new String(" ")]]></textFieldExpression>
ivan@11848
   260
				</textField>
ivan@11848
   261
				<textField isBlankWhenNull="false">
ivan@11848
   262
					<reportElement key="textField" style="Total_Field" x="335" y="0" width="117" height="16"/>
ivan@11848
   263
					<box leftPadding="5">
ivan@11848
   264
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   265
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   266
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   267
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   268
					</box>
ivan@11848
   269
					<textElement textAlignment="Right" verticalAlignment="Middle"/>
ivan@11848
   270
					<textFieldExpression class="java.lang.String"><![CDATA[($V{sumTaxBaseAmt}!=null)?$P{NUMBERFORMAT}.format($V{sumTaxBaseAmt})+$F{CURRENCY}:new String(" ")]]></textFieldExpression>
ivan@11848
   271
				</textField>
ivan@11848
   272
			</band>
ivan@11848
   273
		</groupFooter>
ivan@11848
   274
	</group>
ivan@11848
   275
	<background>
ivan@11848
   276
		<band splitType="Stretch"/>
ivan@11848
   277
	</background>
ivan@11848
   278
	<title>
ivan@11848
   279
		<band splitType="Stretch"/>
ivan@11848
   280
	</title>
ivan@11848
   281
	<pageHeader>
ivan@11848
   282
		<band height="20" splitType="Stretch">
ivan@11848
   283
			<textField isStretchWithOverflow="true" isBlankWhenNull="false">
ivan@11848
   284
				<reportElement key="textField" style="Report_Subtitle" x="1" y="0" width="602" height="20"/>
ivan@11848
   285
				<box leftPadding="5">
ivan@11848
   286
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   287
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   288
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   289
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   290
				</box>
ivan@11848
   291
				<textElement/>
ivan@11848
   292
				<textFieldExpression class="java.lang.String"><![CDATA[$P{SALE}]]></textFieldExpression>
ivan@11848
   293
			</textField>
ivan@11848
   294
		</band>
ivan@11848
   295
	</pageHeader>
ivan@11848
   296
	<columnHeader>
ivan@11848
   297
		<band splitType="Stretch"/>
ivan@11848
   298
	</columnHeader>
ivan@11848
   299
	<detail>
ivan@11848
   300
		<band height="14" splitType="Stretch">
ivan@11848
   301
			<printWhenExpression><![CDATA[new Boolean($P{DETAIL}.equals("Y"))]]></printWhenExpression>
ivan@11848
   302
			<line>
ivan@11848
   303
				<reportElement key="line-16" stretchType="RelativeToBandHeight" x="603" y="-6" width="1" height="14" forecolor="#555555"/>
ivan@11848
   304
			</line>
ivan@11848
   305
			<line>
ivan@11848
   306
				<reportElement key="line-17" stretchType="RelativeToBandHeight" x="0" y="0" width="1" height="14" forecolor="#555555"/>
ivan@11848
   307
			</line>
ivan@11848
   308
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
ivan@11848
   309
				<reportElement key="textField" style="Detail_Line" x="10" y="0" width="90" height="14"/>
ivan@11848
   310
				<box leftPadding="2" rightPadding="2">
ivan@11848
   311
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   312
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   313
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   314
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   315
				</box>
ivan@11848
   316
				<textElement verticalAlignment="Middle"/>
ivan@11848
   317
				<textFieldExpression class="java.lang.String"><![CDATA[$F{DOCUMENTNO}]]></textFieldExpression>
ivan@11848
   318
			</textField>
ivan@11848
   319
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
ivan@11848
   320
				<reportElement key="textField" style="Detail_Line" x="100" y="0" width="70" height="14"/>
ivan@11848
   321
				<box leftPadding="2" rightPadding="2">
ivan@11848
   322
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   323
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   324
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   325
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   326
				</box>
ivan@11848
   327
				<textElement verticalAlignment="Middle"/>
ivan@11848
   328
				<textFieldExpression class="java.sql.Timestamp"><![CDATA[$F{DATEINVOICED}]]></textFieldExpression>
ivan@11848
   329
			</textField>
ivan@11848
   330
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
ivan@11848
   331
				<reportElement key="textField" style="Detail_Line" x="170" y="0" width="165" height="14"/>
ivan@11848
   332
				<box leftPadding="2" rightPadding="2">
ivan@11848
   333
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   334
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   335
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   336
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   337
				</box>
ivan@11848
   338
				<textElement verticalAlignment="Middle"/>
ivan@11848
   339
				<textFieldExpression class="java.lang.String"><![CDATA[$F{BPARTNER}]]></textFieldExpression>
ivan@11848
   340
			</textField>
ivan@11848
   341
			<textField pattern="" isBlankWhenNull="false">
ivan@11848
   342
				<reportElement key="textField" style="Detail_Line" x="335" y="0" width="117" height="14"/>
ivan@11848
   343
				<box leftPadding="2" rightPadding="2">
ivan@11848
   344
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   345
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   346
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   347
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   348
				</box>
ivan@11848
   349
				<textElement textAlignment="Right" verticalAlignment="Middle">
ivan@11848
   350
					<font size="9"/>
ivan@11848
   351
				</textElement>
ivan@11848
   352
				<textFieldExpression class="java.lang.String"><![CDATA[($F{TAXBASEAMT}!=null)?$P{NUMBERFORMAT}.format($F{TAXBASEAMT})+$F{CURRENCY}:new String(" ")]]></textFieldExpression>
ivan@11848
   353
			</textField>
ivan@11848
   354
			<textField pattern="" isBlankWhenNull="false">
pandeeswari@22717
   355
				<reportElement key="textField" style="Detail_Line" x="452" y="0" width="82" height="14"/>
ivan@11848
   356
				<box leftPadding="2" rightPadding="2">
ivan@11848
   357
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   358
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   359
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   360
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   361
				</box>
ivan@11848
   362
				<textElement textAlignment="Right" verticalAlignment="Middle"/>
ivan@11848
   363
				<textFieldExpression class="java.lang.String"><![CDATA[($F{TAXAMT}!=null)?$P{NUMBERFORMAT}.format($F{TAXAMT})+$F{CURRENCY}:new String(" ")]]></textFieldExpression>
ivan@11848
   364
			</textField>
ivan@11848
   365
		</band>
ivan@11848
   366
	</detail>
ivan@11848
   367
	<columnFooter>
ivan@11848
   368
		<band splitType="Stretch"/>
ivan@11848
   369
	</columnFooter>
ivan@11848
   370
	<pageFooter>
ivan@11848
   371
		<band splitType="Stretch"/>
ivan@11848
   372
	</pageFooter>
ivan@11848
   373
	<summary>
ivan@11848
   374
		<band splitType="Stretch"/>
ivan@11848
   375
	</summary>
ivan@11848
   376
</jasperReport>