You are here

class uc_coupon_handler_field_gross in Ubercart Discount Coupons 7.3

Same name and namespace in other branches
  1. 7.2 views/uc_coupon_handler_field_gross.inc \uc_coupon_handler_field_gross

@file Coupon order total field handler

Hierarchy

Expanded class hierarchy of uc_coupon_handler_field_gross

1 string reference to 'uc_coupon_handler_field_gross'
uc_coupon_views_data in views/uc_coupon.views.inc
Implements hook_views_data().

File

views/uc_coupon_handler_field_gross.inc, line 8
Coupon order total field handler

View source
class uc_coupon_handler_field_gross extends uc_views_handler_field_money_amount {
  function query() {
    $this
      ->ensure_my_table();
    $this->query
      ->ensure_table('uc_orders');
    $this->field_alias = $this->query
      ->add_field(NULL, '(uc_orders.order_total + uc_coupons_orders.value)', $this->table_alias . '_' . $this->field);
  }

}

Members