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-sponsor-invoices.php

    r7378 r7434  
    474474     */
    475475    public function render_html() {
    476         $data       = $this->compile_report_data( $this->get_data() );
    477         $start_date = $this->start_date;
    478         $end_date   = $this->end_date;
    479 
     476        $now  = new \DateTime();
     477        $data = $this->compile_report_data( $this->get_data() );
     478
     479        $start_date    = $this->start_date;
     480        $end_date      = $this->end_date;
     481        $xrt_date      = ( $end_date > $now ) ? $now : $end_date;
    480482        $wordcamp_name = ( $this->wordcamp_site_id ) ? get_wordcamp_name( $this->wordcamp_site_id ) : '';
    481483        $invoices      = $data['invoices'];
Note: See TracChangeset for help on using the changeset viewer.