Bug 180405 The grand total's result is incorrect[1102]
Description: The grand total's result is incorrect[1102] Build number: 2.2.0.v20070402-0630 Steps to reproduce: 1, Using the attached design file 2, Preview the results and check the grand total of QUANTITY_PRODUCT Expected result: 42, 7, 13, 5 Actual result: Only calculate the latest row of QUANTITY Error log:
data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/impl/DataSetIterator.java
return this.metadata.getFieldIndex( name );
	}
	/*
	 * (non-Javadoc)
	 * @see org.eclipse.birt.data.engine.olap.api.cube.IDatasetIterator#getFieldType(java.lang.String)
	 */
	public int getFieldType( String name ) throws BirtException
	{
		return this.metadata.getFieldType( name );
	}
	/*
	 * (non-Javadoc)
	 * @see org.eclipse.birt.data.engine.olap.api.cube.IDatasetIterator#getValue(int)
	 */
	public Object getValue( int fieldIndex ) throws BirtException
	{
		Object value = it.getValue( this.metadata.getFieldName( fieldIndex ) );
		if ( value == null )
		{
			return this.metadata.getNullValueReplacer( fieldIndex );
		}
		if ( value instanceof Date
				&& this.metadata.getTimeValueProcessor( fieldIndex ) != null )
		{
			return new Integer(this.metadata.getTimeValueProcessor( fieldIndex ).process( (Date)value ));
		}
		return value;
	}
	/*
	 * (non-Javadoc)