{"id":1359836,"date":"2017-10-05T11:37:22","date_gmt":"2017-10-05T18:37:22","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/completed-total-doesnt-account-for-refunds\/"},"modified":"2017-10-05T11:37:22","modified_gmt":"2017-10-05T18:37:22","slug":"completed-total-doesnt-account-for-refunds","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/completed-total-doesnt-account-for-refunds\/","title":{"rendered":"&quot;Completed&quot; total doesn&#039;t account for refunds"},"content":{"rendered":"<p>Hi! Hope this is in the correct forum.<br \/>\nMaybe this is the intended behavior, but the total shown for &#8220;Completed&#8221; orders on an event&#8217;s &#8220;Orders&#8221; page (domain.com\/wp-admin\/edit.php?post_type=tribe_events&amp;page=tickets-orders&amp;event_id=XXXXX) doesn&#8217;t appear to be accounting for refunds. This is happening on multiple events for us where the &#8220;Completed&#8221; total on this page doesn&#8217;t actually line up with the amount of money taken in less all refunds. To be clear, when I say &#8220;refunds&#8221; I mean my client goes in and refunds a customer $100 off of their order &#8211; not refunding the entire order.<\/p>\n<p>The template is outputting the value of <code>$tickets_breakdown['wc-completed']['_line_total']<\/code> in \/src\/admin-views\/woocommerce-orders.php And that <code>$tickets_breakdown<\/code> is setup in \/src\/Tribe\/Commerce\/WooCommerce\/Orders\/Report.php by a query located in the get_total_sales_per_productby_status() function within that same file.<\/p>\n<p>Please let me know if this is intended behavior or if it sounds like there&#8217;s something amiss on our site.<\/p>\n<p>Thank you!<\/p>\n","protected":false},"template":"","class_list":["post-1359836","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>&quot;Completed&quot; total doesn&#039;t account for refunds -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/completed-total-doesnt-account-for-refunds\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"&quot;Completed&quot; total doesn&#039;t account for refunds -\" \/>\n<meta property=\"og:description\" content=\"Hi! Hope this is in the correct forum. Maybe this is the intended behavior, but the total shown for &#8220;Completed&#8221; orders on an event&#8217;s &#8220;Orders&#8221; page (domain.com\/wp-admin\/edit.php?post_type=tribe_events&amp;page=tickets-orders&amp;event_id=XXXXX) doesn&#8217;t appear to be accounting for refunds. This is happening on multiple events for us where the &#8220;Completed&#8221; total on this page doesn&#8217;t actually line up with the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/completed-total-doesnt-account-for-refunds\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/completed-total-doesnt-account-for-refunds\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/completed-total-doesnt-account-for-refunds\/\",\"name\":\"&quot;Completed&quot; total doesn&#039;t account for refunds -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-10-05T18:37:22+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/completed-total-doesnt-account-for-refunds\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/completed-total-doesnt-account-for-refunds\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/completed-total-doesnt-account-for-refunds\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Ticket Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Event Tickets Plus\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"&quot;Completed&quot; total doesn&#039;t account for refunds\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"&quot;Completed&quot; total doesn&#039;t account for refunds -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/completed-total-doesnt-account-for-refunds\/","og_locale":"en_US","og_type":"article","og_title":"&quot;Completed&quot; total doesn&#039;t account for refunds -","og_description":"Hi! Hope this is in the correct forum. Maybe this is the intended behavior, but the total shown for &#8220;Completed&#8221; orders on an event&#8217;s &#8220;Orders&#8221; page (domain.com\/wp-admin\/edit.php?post_type=tribe_events&amp;page=tickets-orders&amp;event_id=XXXXX) doesn&#8217;t appear to be accounting for refunds. This is happening on multiple events for us where the &#8220;Completed&#8221; total on this page doesn&#8217;t actually line up with the [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/completed-total-doesnt-account-for-refunds\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/completed-total-doesnt-account-for-refunds\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/completed-total-doesnt-account-for-refunds\/","name":"&quot;Completed&quot; total doesn&#039;t account for refunds -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-10-05T18:37:22+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/completed-total-doesnt-account-for-refunds\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/completed-total-doesnt-account-for-refunds\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/completed-total-doesnt-account-for-refunds\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Ticket Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/"},{"@type":"ListItem","position":4,"name":"Event Tickets Plus","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/"},{"@type":"ListItem","position":5,"name":"&quot;Completed&quot; total doesn&#039;t account for refunds"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1359836","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1359836\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1359836"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}