You are here

uc_coupon_handler_field_gross.inc in Ubercart Discount Coupons 7.2

Same filename and directory in other branches
  1. 7.3 views/uc_coupon_handler_field_gross.inc

Coupon order total field handler

File

views/uc_coupon_handler_field_gross.inc
View source
<?php

// $Id$

/**
 * @file
 * Coupon order total field handler
 */
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);
  }

}

Classes

Namesort descending Description
uc_coupon_handler_field_gross @file Coupon order total field handler