uc_coupon_handler_field_gross.inc 412 B

1234567891011121314151617
  1. <?php
  2. // $Id$
  3. /**
  4. * @file
  5. * Coupon order total field handler
  6. */
  7. class uc_coupon_handler_field_gross extends uc_views_handler_field_money_amount {
  8. function query() {
  9. $this->ensure_my_table();
  10. $this->query->ensure_table('uc_orders');
  11. $this->field_alias = $this->query->add_field(NULL, '(uc_orders.order_total + uc_coupons_orders.value)',
  12. $this->table_alias .'_'. $this->field
  13. );
  14. }
  15. }