--- a/busui/owa/modules/base/reportProductCategories.php +++ b/busui/owa/modules/base/reportProductCategories.php @@ -1,1 +1,54 @@ - + + * @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_reportProductCategoriesController extends owa_reportController { + + function action() { + + $dim_name = 'productCategory'; + $this->setSubview('base.reportSimpleDimensional'); + $this->setTitle('Product SKUs'); + $this->set('metrics', 'lineItemQuantity,lineItemRevenue'); + $this->set('dimensions', $dim_name); + $this->set('sort', 'lineItemQuantity-'); + $this->set('resultsPerPage', 30); + $this->set('dimensionLink', array('linkColumn' => $dim_name, + 'template' => array('do' => 'base.reportProductCategoryDetail', $dim_name => '%s'), + 'valueColumns' => $dim_name)); + $this->set('trendChartMetric', 'lineItemQuantity'); + $this->set('trendTitle', 'There were <*= this.d.resultSet.aggregates.lineItemQuantity.formatted_value *> products sold across all Categories.'); + + } +} + +?>