Making WordPress.org


Ignore:
Timestamp:
07/12/2018 12:22:11 AM (8 years ago)
Author:
coreymckrill
Message:

WordCamp Reports: Update Ticket Revenue report, other minor changes

  • Show ticket revenue results split out by payment method (instead of WPCS vs non-WPCS).
  • Minor HTML markup changes on several reports.
  • Minor code cleanup changes on several reports.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/classes/report/class-payment-activity.php

    r7378 r7434  
    518518     */
    519519    public function render_html() {
    520         $data       = $this->compile_report_data( $this->get_data() );
     520        $now  = new \DateTime();
     521        $data = $this->compile_report_data( $this->get_data() );
     522
    521523        $start_date = $this->start_date;
    522524        $end_date   = $this->end_date;
    523 
     525        $xrt_date      = ( $end_date > $now ) ? $now : $end_date;
    524526        $wordcamp_name = ( $this->wordcamp_site_id ) ? get_wordcamp_name( $this->wordcamp_site_id ) : '';
    525527        $requests      = $data['requests'];
Note: See TracChangeset for help on using the changeset viewer.