# Comparing Order data to Sales Summary Report

**URL:** <https://developer.squareup.com/forums/t/comparing-order-data-to-sales-summary-report/1894>\
**Category:** Questions\
**Created:** [February 18, 2021, 10:22pm UTC](https://developer.squareup.com/forums/t/comparing-order-data-to-sales-summary-report/1894 "2021-02-18T22:22:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sjosey](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/sjosey/32/40_2.png) [@sjosey](https://developer.squareup.com/forums/u/sjosey)\
**Post date:** [February 22, 2021, 4:58pm UTC](https://developer.squareup.com/forums/t/comparing-order-data-to-sales-summary-report/1894/2 "2021-02-22T16:58:56Z")

</div>

Just for net amounts, you can go through all Orders and:

1. Check if the order has any tenders or refunds:
2. If it’s not a refund: Add the order-\>total\_money-\>amount to the total.
3. If it’s a refund: Subtract the order-\>refunds-\>refund-\>amount\_money-\>amount from the total

That’s it, that should get you your “net sales”. If you want gross sales, then you need to it slightly different:

1. If the order has tenders, refunds, or is in a `COMPLETED` state (100% discounted order) then…
2. Add the following to the total: total money, tip money, and discount money

Let me know if that helps at all.

---

_[View the full topic](https://developer.squareup.com/forums/t/comparing-order-data-to-sales-summary-report/1894)._
