uc_coupon_handler_filter_gross.inc in Ubercart Discount Coupons 7.2
Same filename and directory in other branches
Filter based on coupon order gross (total+value)
File
views/uc_coupon_handler_filter_gross.incView source
<?php
// $Id$
/**
* @file
* Filter based on coupon order gross (total+value)
*/
class uc_coupon_handler_filter_gross extends views_handler_filter_numeric {
function query() {
$this
->ensure_my_table();
$uco = $this->query
->ensure_table('uc_orders');
$uc = $this->table_alias;
$field = "({$uco}.order_total + {$uc}.value)";
$info = $this
->operators();
if (!empty($info[$this->operator]['method'])) {
$this
->{$info[$this->operator]['method']}($field);
}
}
}
Classes
Name![]() |
Description |
---|---|
uc_coupon_handler_filter_gross | @file Filter based on coupon order gross (total+value) |