function uc_coupon_handler_field_gross::query in Ubercart Discount Coupons 7.3
Same name and namespace in other branches
- 7.2 views/uc_coupon_handler_field_gross.inc \uc_coupon_handler_field_gross::query()
File
- views/
uc_coupon_handler_field_gross.inc, line 9 - Coupon order total field handler
Class
- uc_coupon_handler_field_gross
- @file Coupon order total field handler
Code
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);
}