src/org/openbravo/erpCommon/ad_reports/ReportSalesPartnerProduct_srpt.jrxml
author David Baz Fayos <david.baz@openbravo.com>
Tue, 27 May 2008 15:26:10 +0000
changeset 1044 8691bbc94032
parent 343 c82db1b9beb2
child 1723 0d9d04b67207
permissions -rw-r--r--
Removed old frame parameter of windowTableId
carlos@343
     1
<?xml version="1.0" encoding="UTF-8"  ?>
carlos@343
     2
<!-- Created with iReport - A designer for JasperReports -->
carlos@343
     3
<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
carlos@343
     4
<jasperReport
carlos@343
     5
		 name="ReportSalesPartnerProduct_srpt"
carlos@343
     6
		 columnCount="1"
carlos@343
     7
		 printOrder="Vertical"
carlos@343
     8
		 orientation="Portrait"
carlos@343
     9
		 pageWidth="595"
carlos@343
    10
		 pageHeight="842"
carlos@343
    11
		 columnWidth="535"
carlos@343
    12
		 columnSpacing="0"
carlos@343
    13
		 leftMargin="30"
carlos@343
    14
		 rightMargin="30"
carlos@343
    15
		 topMargin="20"
carlos@343
    16
		 bottomMargin="20"
carlos@343
    17
		 whenNoDataType="NoPages"
carlos@343
    18
		 isTitleNewPage="false"
carlos@343
    19
		 isSummaryNewPage="false">
carlos@343
    20
	<property name="ireport.scriptlethandling" value="0" />
carlos@343
    21
	<property name="ireport.encoding" value="UTF-8" />
carlos@343
    22
	<import value="java.util.*" />
carlos@343
    23
	<import value="net.sf.jasperreports.engine.*" />
carlos@343
    24
	<import value="net.sf.jasperreports.engine.data.*" />
carlos@343
    25
carlos@343
    26
	<parameter name="PARTNER" isForPrompting="false" class="java.math.BigDecimal">
carlos@343
    27
		<defaultValueExpression ><![CDATA[new BigDecimal(1000004)]]></defaultValueExpression>
carlos@343
    28
	</parameter>
carlos@343
    29
	<queryString><![CDATA[SELECT C_ORDER.C_BPARTNER_ID, AD_COLUMN_IDENTIFIER(to_char('M_PRODUCT'), to_char(M_PRODUCT_ID), to_char('es_ES')) AS PRODUCT, SUM(C_ORDERLINE.LINENETAMT) as LINENETAMT
carlos@343
    30
FROM C_ORDER, C_ORDERLINE
carlos@343
    31
WHERE C_ORDER.C_ORDER_ID = C_ORDERLINE.C_ORDER_ID
carlos@343
    32
  AND ISSOTRX = 'Y'
carlos@343
    33
  AND C_ORDER.C_BPARTNER_ID = $P{PARTNER}
carlos@343
    34
GROUP BY C_ORDERLINE.M_PRODUCT_ID, C_ORDER.C_BPARTNER_ID
carlos@343
    35
ORDER BY C_ORDER.C_BPARTNER_ID]]></queryString>
carlos@343
    36
carlos@343
    37
	<field name="c_bpartner_id" class="java.math.BigDecimal"/>
carlos@343
    38
	<field name="product" class="java.lang.String"/>
carlos@343
    39
	<field name="linenetamt" class="java.math.BigDecimal"/>
carlos@343
    40
carlos@343
    41
	<variable name="sumlinenetamt" class="java.math.BigDecimal" resetType="Report" calculation="Sum">
carlos@343
    42
		<variableExpression><![CDATA[$F{linenetamt}]]></variableExpression>
carlos@343
    43
	</variable>
carlos@343
    44
carlos@343
    45
		<group  name="C_BPARTNER_ID" >
carlos@343
    46
			<groupExpression><![CDATA[$F{c_bpartner_id}]]></groupExpression>
carlos@343
    47
			<groupHeader>
carlos@343
    48
			<band height="237"  isSplitAllowed="true" >
carlos@343
    49
				<pieChart>
carlos@343
    50
					<chart  hyperlinkTarget="Self" >
carlos@343
    51
					<reportElement
carlos@343
    52
						x="25"
carlos@343
    53
						y="0"
carlos@343
    54
						width="458"
carlos@343
    55
						height="232"
carlos@343
    56
						key="element-2"/>
carlos@343
    57
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
carlos@343
    58
						<chartLegend textColor="#000000" backgroundColor="#FFFFFF" >
carlos@343
    59
					</chartLegend>
carlos@343
    60
					</chart>
carlos@343
    61
					<pieDataset>
carlos@343
    62
						<dataset resetType="Group" resetGroup="C_BPARTNER_ID" >
carlos@343
    63
						</dataset>
carlos@343
    64
						<keyExpression><![CDATA[$F{product}]]></keyExpression>
carlos@343
    65
						<valueExpression><![CDATA[$F{linenetamt}]]></valueExpression>
carlos@343
    66
						<labelExpression><![CDATA[$F{product}]]></labelExpression>
carlos@343
    67
				<sectionHyperlink >
carlos@343
    68
				</sectionHyperlink>
carlos@343
    69
					</pieDataset>
carlos@343
    70
					<piePlot 
carlos@343
    71
isCircular="true" >
carlos@343
    72
						<plot />
carlos@343
    73
					</piePlot>
carlos@343
    74
				</pieChart>
carlos@343
    75
			</band>
carlos@343
    76
			</groupHeader>
carlos@343
    77
			<groupFooter>
carlos@343
    78
			<band height="0"  isSplitAllowed="true" >
carlos@343
    79
			</band>
carlos@343
    80
			</groupFooter>
carlos@343
    81
		</group>
carlos@343
    82
		<background>
carlos@343
    83
			<band height="0"  isSplitAllowed="true" >
carlos@343
    84
			</band>
carlos@343
    85
		</background>
carlos@343
    86
		<title>
carlos@343
    87
			<band height="0"  isSplitAllowed="true" >
carlos@343
    88
			</band>
carlos@343
    89
		</title>
carlos@343
    90
		<pageHeader>
carlos@343
    91
			<band height="0"  isSplitAllowed="true" >
carlos@343
    92
			</band>
carlos@343
    93
		</pageHeader>
carlos@343
    94
		<columnHeader>
carlos@343
    95
			<band height="0"  isSplitAllowed="true" >
carlos@343
    96
			</band>
carlos@343
    97
		</columnHeader>
carlos@343
    98
		<detail>
carlos@343
    99
			<band height="0"  isSplitAllowed="true" >
carlos@343
   100
			</band>
carlos@343
   101
		</detail>
carlos@343
   102
		<columnFooter>
carlos@343
   103
			<band height="0"  isSplitAllowed="true" >
carlos@343
   104
			</band>
carlos@343
   105
		</columnFooter>
carlos@343
   106
		<pageFooter>
carlos@343
   107
			<band height="0"  isSplitAllowed="true" >
carlos@343
   108
			</band>
carlos@343
   109
		</pageFooter>
carlos@343
   110
		<summary>
carlos@343
   111
			<band height="0"  isSplitAllowed="true" >
carlos@343
   112
			</band>
carlos@343
   113
		</summary>
carlos@343
   114
</jasperReport>