You are here

commerce_reports_stock_handler_field_weeklysales.inc in Commerce Reporting 7.4

View handler to display weekly sales.

File

modules/stock/includes/views/handlers/commerce_reports_stock_handler_field_weeklysales.inc
View source
<?php

/**
 * @file
 * View handler to display weekly sales.
 */

/**
 * Class commerce_reports_stock_handler_field_weeklysales.
 */
class commerce_reports_stock_handler_field_weeklysales extends views_handler_field_custom {

  /**
   * @inheritdoc
   */
  function render($values) {
    $sku = $values->commerce_product_sku;
    return _commerce_reports_stock_calculate_dataset($sku, 'weeklysales');
  }

}

Classes

Namesort descending Description
commerce_reports_stock_handler_field_weeklysales Class commerce_reports_stock_handler_field_weeklysales.