Ron Rennick
32d31b6791
compare date to "0000-00-00 00:00:00"
2019-08-08 13:50:22 -03:00
Ron Rennick
833cc7a1c2
convert zero last active date to null in customer query
2019-08-07 16:12:47 -03:00
Jeff Stieler
69149ab83a
Remove default date range for Orders report query.
2019-07-16 15:17:37 -06:00
Jeff Stieler
f3fb79adaf
Add parameters for specifying order IDs for reporting.
2019-07-16 15:17:36 -06:00
Ron Rennick
2260e60453
Merge pull request woocommerce/woocommerce-admin#2484 from woocommerce/fix/2400
...
use summary query to total coupons per order
2019-07-08 13:49:17 -03:00
Timmy Crawford
dde788631c
Notes: Type cast is_snoozeable on insert. ( https://github.com/woocommerce/woocommerce-admin/pull/2573 )
2019-07-08 09:48:38 -07:00
Jeff Stieler
35d763fa8c
Merge pull request woocommerce/woocommerce-admin#2463 from KZeni/patch-2
...
Add State alongside City (and other customer info).
2019-06-28 12:24:25 -06:00
Ron Rennick
207fc6e9e0
simplify interval array entry check
2019-06-26 16:14:25 -03:00
Ron Rennick
259a2616b1
add get_unique_coupon_count() to count unique coupons for a dataset
2019-06-24 16:19:07 -03:00
Ron Rennick
5038c672ee
use summary query to total coupons per order
2019-06-21 12:47:02 -03:00
Jeff Stieler
f75e3c7820
Check for good WC_Orders before using instance methods.
2019-06-20 08:31:10 -06:00
Joshua T Flowers
ee81663f99
Prevent duplicate customer imports ( https://github.com/woocommerce/woocommerce-admin/pull/2428 )
...
* Get customer ID from existing order ID if present
* Use get_report_customer_id method in order for both orders and refunds
2019-06-20 12:03:55 +08:00
Joshua T Flowers
57416a2bdb
Refactor customer name retrieval ( https://github.com/woocommerce/woocommerce-admin/pull/2418 )
...
* Return early from creating customer if order is false
* Refactor customer first and last name methods
* Separate customer name tests to create guest orders
* Check for parent_id before retrieving customer ID in refund
* Use registered customer ID in import report tests
* Compare absolute integer when checking for valid customer ID
* Check for order before getting customer ID when retrieving existing customer ID
2019-06-20 11:22:47 +08:00
Kurt Zenisek
fccbd105f1
Added state alongside city & other info
2019-06-19 17:13:05 -05:00
Paul Sealock
8aaa18c339
Merge pull request woocommerce/woocommerce-admin#2425 from woocommerce/fix/potential-endless-syncs
...
Action Scheduler: fix potential endless sync
2019-06-18 10:50:38 +12:00
Paul Sealock
18d535d65a
Action Scheduler: fix potential endless sync
2019-06-18 10:39:16 +12:00
Ron Rennick
18d3486618
Merge pull request woocommerce/woocommerce-admin#2228 from woocommerce/fix/2188
...
add match=any support for advanced orders table filter
2019-06-17 11:47:58 -03:00
Ron Rennick
cfa913a4b8
update status query to OR when there is a status filter
2019-06-13 13:10:46 -03:00
Jeff Stieler
b83ef86add
Merge pull request woocommerce/woocommerce-admin#2325 from woocommerce/add/admin-note-trigger-action
...
Trigger an action server side when admin note actions are clicked
2019-06-12 17:04:10 +02:00
Albert Juhé Lluveras
8bc2261c8a
Add date_created_gmt property to orders endpoint ( https://github.com/woocommerce/woocommerce-admin/pull/2086 )
...
* Add date_created_gmt property to orders enpoint
* Make date_created properties of type date-time and improve descriptions
2019-06-12 11:21:56 +02:00
Mike Jolley
3bd945511a
Merge pull request woocommerce/woocommerce-admin#2191 from woocommerce/fix/low-stock-handling
...
Low stock handling inconsistencies with WooCommerce 3.6+
2019-06-06 12:15:46 +02:00
Jeff Stieler
8867152d88
Include ID when retrieving note action data.
2019-05-31 09:59:20 -06:00
Jeff Stieler
db5a1b7348
Add support for “primary” admin notice actions.
2019-05-21 13:22:48 -06:00
Joshua T Flowers
c87ab4eed7
Update how refunds are displayed in tables ( https://github.com/woocommerce/woocommerce-admin/pull/2102 )
...
* Add customer functions to order and refund classes
* Use parent order for refund order number
* Add renderCurrency method to format negative currencies
* Allow negative number of items for refund fields in database
2019-05-16 13:04:37 +08:00
Ron Rennick
2aaf7f1d57
Merge pull request woocommerce/woocommerce-admin#2219 from woocommerce/fix/2195
...
Add filters for customer roles
2019-05-15 15:27:50 -03:00
Ron Rennick
e5196c8289
always use AND for status subquery
2019-05-15 10:00:55 -03:00
Ron Rennick
bfd41fb577
add customer role filter to customer data store
2019-05-14 16:04:31 -03:00
Ron Rennick
ba1a262a3c
add match=any support for advanced orders table filter
2019-05-14 14:54:53 -03:00
Jeff Stieler
122620f031
Sanitize customer IDs in “get customers by orders” query.
2019-05-14 08:30:00 -06:00
Jeff Stieler
071dc7debe
Handle “all guests” when getting customers from orders.
2019-05-14 08:25:43 -06:00
Joshua T Flowers
c6a6e737c4
Add refund filtering to order reports ( https://github.com/woocommerce/woocommerce-admin/pull/2179 )
...
* Add customer functions to order and refund classes
* Extract shared order and refund methods to trait
* Add refund filter to advanced filters in orders report
* Filter refund types in orders data store
* Extract refunds subquery to parent report data store method
* Add refund subquery filtering to order stats data store
* Add tests around refund type filtering
* Change the default option for the refunds filter
2019-05-10 14:56:57 +08:00
Joshua T Flowers
3382fb7011
Record refunds separate from order entries ( https://github.com/woocommerce/woocommerce-admin/pull/2083 )
...
* Sync refunds on order sync
* Separate order and refund class extensions
* Add customer functions to order and refund classes
* Change products store to work with refund amounts
* Return early for refunds in coupon data store
* Allow refund processing in tax data store
* Remove unused refund amounts from tables and data stores
* Change order counts to parse out refund entries
* Include refunded orders in default queried statuses
* Only process order number filter on shop order post types
* Extract shared order and refund methods to trait
* Fix renamed schedule_single_order_import method
* Bump PHP and WP version requirements
2019-05-10 14:39:25 +08:00
Mike Jolley
a3b90cdb9e
Update get_count to use lookup table
2019-05-09 10:38:26 +01:00
Mike Jolley
d7b81e40d4
Update count query for low stock
2019-05-09 10:28:28 +01:00
Ron Rennick
0f2788ed1c
fix customer name logic on populating customer lookup data
2019-05-08 10:01:12 -03:00
Jeff Stieler
a36e3cd024
Merge pull request woocommerce/woocommerce-admin#2034 from woocommerce/add/1850-import-endpoint
...
Add import endpoint and controller
2019-05-01 13:29:00 -06:00
Joshua Flowers
a4d1256292
Add customer deletion method to customers data store
2019-04-30 17:37:20 -06:00
Jeff Stieler
e350cfc898
Remove strict comparison from “is valid customer” logic.
...
Needed for the function to work in scheduled actions.
2019-04-30 09:09:35 -06:00
Joshua T Flowers
8bc3d8622e
Add order date filter to customers data store ( https://github.com/woocommerce/woocommerce-admin/pull/2094 )
...
* Add before and after params to customers controller
* Map before and after order params to order creation date filter
* Hook up customer date filter params in leaderboards controller
2019-04-23 10:01:36 +08:00
Albert Juhé Lluveras
dab7cf7dff
Respect manual offsets in default before/after params ( https://github.com/woocommerce/woocommerce-admin/pull/2042 )
2019-04-15 19:28:19 +02:00
Joshua Flowers
f213f5cb66
Make customer name empty string by default instead of null
2019-04-12 16:50:43 +08:00
Joshua T Flowers
e31be343e2
Make customer name extendable ( https://github.com/woocommerce/woocommerce-admin/pull/1976 )
...
* Make customer name extendable
* Update get_customer_name to favor user profile information
* Update customer name on profile update
* Add tests around customer name getting and setting
* Prefix customer name filter with woocommerce_reports_
2019-04-09 11:39:39 +08:00
Joshua T Flowers
753780bf7b
Onboarding: Add levels REST API ( https://github.com/woocommerce/woocommerce-admin/pull/1938 )
...
* Add levels rest controller
* Add default levels
* Add onboarding level API tests
* Drop all since tags
* Make pre-response levels array associative for easier formatting
* Fix level tests for associative array
2019-04-05 10:35:30 +08:00
Ron Rennick
14d0d24762
phpcs lint fixes for /data-stores/ folder
2019-04-03 16:19:43 -03:00
Joshua T Flowers
0c5c1c3db4
Remove coupon_total from order stats table ( https://github.com/woocommerce/woocommerce-admin/pull/1975 )
...
* Remove coupons_total from order stats table
* Replace discount amount with coupon objects in stat tests
2019-04-03 09:37:17 +08:00
Ron Rennick
c061bfd925
Merge pull request woocommerce/woocommerce-admin#1977 from woocommerce/fix/1783
...
lookup product title in order meta if product has been deleted
2019-04-02 16:13:47 -03:00
Ron Rennick
1d0e78e626
code alignment for linter
2019-04-02 15:20:23 -03:00
Ron Rennick
3a8ddbe3aa
lookup product title in order meta if product has been deleted
2019-04-02 09:24:52 -03:00
Joshua T Flowers
b03362da68
Cast order totals as floats when calculating net total ( https://github.com/woocommerce/woocommerce-admin/pull/1945 )
2019-04-02 13:43:12 +08:00
Albert Juhé Lluveras
458f3ed065
Fix SKU sorting in the Variations report when a comparison is active ( https://github.com/woocommerce/woocommerce-admin/pull/1952 )
...
* make is sortable true.
* Variations endpoint: Fix sorting by SKU when there is an active comparison
* Cleanup
* Extract FROM parameter logic to 'get_from_sql_params'
* Remove unnecessary 'get_order_by_sql_params' from Products and Variations data stores
2019-04-01 10:09:45 +02:00