Commit Graph

13 Commits

Author SHA1 Message Date
Joshua T Flowers 5bab0767b6 Fix item refunds report data (https://github.com/woocommerce/woocommerce-admin/pull/1059)
* Fix product report data issue when issuing item refund

* Modify product order lookup stats when refund is given

* Remove products where orders are refunded

* Remove unused  var and add comment about early return

* Reduce product revenue if quantity still remains after refund

* Fix subtotal array key and abs value for float

* Change product_gross_revenue to product_net_revenue
2018-12-21 02:40:44 +08:00
Peter Fabian dff8b63271 Merge pull request woocommerce/woocommerce-admin#1010 from woocommerce/fix/845
Added /reports/coupons and /reports/coupons/stats endpoints
2018-12-19 13:55:28 +01:00
Joshua T Flowers 08d3e2c38d Change product_gross_revenue to product_net_revenue (https://github.com/woocommerce/woocommerce-admin/pull/1105)
* Change product_gross_revenue to product_net_revenue

* Change product_gross_revenue to product_net_revenue in category data store

* Change to net_revenue in frontend category report
2018-12-19 08:56:27 +08:00
Peter Fabian 6c456657e8 Changed coupon_gross_discount to amount. 2018-12-18 12:01:42 +08:00
Peter Fabian 1acb9827e7 Merge branch 'master' into fix/749
# Conflicts:
#	includes/data-stores/class-wc-admin-reports-products-data-store.php
2018-12-03 16:21:04 +01:00
Paul Sealock 164a67144b try/variations-endpoint 2018-12-03 11:49:37 +13:00
Peter Fabian 8dbcbfc6cb Store coupon id, not coupon item id in the stat table. 2018-11-27 16:18:42 +01:00
Peter Fabian 942db641e8 Added extra trigger for updating stats tables.
If order is updated while save_post action is in progress, then the update does not trigger stats table update, thus stats table gets out of sync with master data.
2018-11-27 16:17:30 +01:00
Jonathan Belcher daa929b887 Add file doc block to fix linting issue (https://github.com/woocommerce/woocommerce-admin/pull/628) 2018-10-23 11:08:49 -04:00
Claudio Sanches 76d5417e2b Use WooCommerce's database prefi
Fixes woocommerce/woocommerce-admin#437
2018-09-18 17:03:42 -03:00
Peter Fabian b8732e157e Added code from feature/couponordertable. 2018-09-18 13:29:58 +02:00
Peter Fabian 6cddb51786 Added code from feature/20770. 2018-09-18 13:24:11 +02:00
Peter Fabian d2ac6cdbe1 Added reporting REST API extensions to wc-admin. 2018-09-17 16:32:03 +02:00