--- a/busui/owa/modules/base/metrics/revenuePerVisit.php +++ b/busui/owa/modules/base/metrics/revenuePerVisit.php @@ -1,1 +1,49 @@ - + + * @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_revenuePerVisit extends owa_calculatedMetric { + + function __construct() { + + $this->setName('revenuePerVisit'); + $this->setLabel('Revenue Per Visit'); + $this->setChildMetric('transactionRevenue'); + $this->setChildMetric('visits'); + $this->setFormula('transactionRevenue / visits'); + $this->setDataType('currency'); + return parent::__construct(); + } +} + +?>