Tickets sales (via Woocommerce) math bug?

Home Forums Ticket Products Event Tickets Plus Tickets sales (via Woocommerce) math bug?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1099280
    Figoli Quinn
    Participant

    If you are looking at a list of events in the admin, the ones that have tickets for sale will have an option to click “Attendees.”

    If you go to that page there is an accounting of tickets sold in the top righthand part of the screen:
    – Total sold
    – Finalized
    – Awaiting review
    – Checked in
    – Deleted

    The math here is happening wrong.

    in attendees.php (lines 14-20)

    foreach ( $tickets as $ticket ) {
    $total_sold += $ticket->qty_sold() + $ticket->qty_pending();
    $total_pending += $ticket->qty_pending();
    }
    $total_completed = $total_sold - $total_pending;
    $total_attendees = Tribe__Tickets__Tickets::get_event_attendees_count( $event_id );
    $deleted_attendees = $total_sold - $total_attendees;

    I didn’t trace this all the way back, but I’m wondering if $ticket->qty_sold() actually includes the pending tickets so you shouldn’t be adding the two together to get $total_sold. The other math would be off, as well. Or qty_pending() is simply those sales not “completed,” which is different than payments “pending payment.”

    When you go through the Orders and “complete” them all, the numbers eventually come back to their correct amounts.

    Couple screenshots:
    Before: showing erroneous tallies:
    https://dl.dropboxusercontent.com/u/2505483/Screen%20Shot%202016-04-06%20at%202.48.05%20PM.png

    After orders are marked “completed”:
    https://dl.dropboxusercontent.com/u/2505483/Screen%20Shot%202016-04-06%20at%202.48.53%20PM.png

    #1099488
    Cliff
    Member

    Hi Robert. Thanks for your thorough message.

    I tested and experienced the same bug. Therefore, I reported it to our developers via our internal bug tracking system.

    I’ll mark this ticket as Pending Fix, which means this thread should receive a reply once the applicable fix has been released. I cannot provide an estimate of when it will be fixed, but I know we’ve been working hard on getting all the stock counts correct recently. I apologize for this issue and appreciate your understanding and patience.

    #1100332
    Figoli Quinn
    Participant

    Cool. Thanks — it’s always fun finding a bug 🙂

    #1100358
    Cliff
    Member

    Yeah, great job! 🙂

    #1106308
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

    #1117003
    Brook
    Participant

    I just wanted to thank you once again for reaching out to us about this. We just released a new version of The Events Calendar and all of its addons that contains a fix for this.

    Our blog post with the full details: The Events Calendar 4.1.4 and premium add-ons

    We recommend updating as soon as you can to get the latest patches. Please let us know if this fixes the bug you have been experiencing or if you have any follow up questions. Thank you again!

    – Brook

    #1122521
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Tickets sales (via Woocommerce) math bug?’ is closed to new replies.