* @copyright Copyright © 2006 Peter Adams * @license http://www.gnu.org/copyleft/gpl.html GPL v2.0 * @category owa * @package owa * @version $Revision$ * @since owa 1.4.0 */ class owa_reportAvgOrderValueController extends owa_reportController { function action() { $this->setSubview('base.reportSimpleDimensional'); $this->setTitle('Average Order Value'); $this->set('metrics', 'revenuePerTransaction'); $this->set('dimensions', 'date'); $this->set('sort', 'date-'); $this->set('resultsPerPage', 30); $this->set('trendChartMetric', 'revenuePerTransaction'); $this->set('trendTitle', 'Average order Value was <*= this.d.resultSet.aggregates.revenuePerTransaction.formatted_value *> across all transactions.'); } } ?>