woocommerce/includes/data-stores
Patrick Garman fd3a39345f
Return amount refunded as a float
An amount refunded should be numeric, I was receiving pHP notices that a non numeric value was encountered. Seems this is something potentially new as of PHP 7.1? Is there any reason we should **not** return a float here? Any null or empty response from the SQL query would be 0, which would still be accurate for the total that was refunded for that order.

```2018/01/27 16:50:50 [error] 46797#0: *2930 FastCGI sent in stderr: "PHP message: PHP Warning:  A non-numeric value encountered in /wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-items.php on line 212
PHP message: PHP Stack trace:
PHP message: PHP   1. include() /cms/wp-admin/post.php:174
PHP message: PHP   2. do_meta_boxes() /cms/wp-admin/edit-form-advanced.php:714
PHP message: PHP   3. WC_Meta_Box_Order_Items::output() /cms/wp-admin/includes/template.php:1063
PHP message: PHP   4. include() /wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-items.php:41```
2018-01-27 17:07:20 -06:00
..
abstract-wc-order-data-store-cpt.php Fix some PHPCS violations in includes/data-stores/abstract-wc-order-data-store-cpt.php 2017-11-24 17:25:31 -02:00
abstract-wc-order-item-type-data-store.php Missing cache clear on delete 2017-11-08 12:21:03 +00:00
class-wc-coupon-data-store-cpt.php Bugfix: coupon object cache not being cleared upon deletion 2017-09-09 22:47:25 -04:00
class-wc-customer-data-store-session.php Fix tests 2017-12-21 19:00:55 +00:00
class-wc-customer-data-store.php Unit test fix: Exclude syntax_highlighting 2017-11-16 18:58:09 +00:00
class-wc-customer-download-data-store.php [#12517] In deprecated function call for update_download_id, use __METHOD__ instead of hard coded function name 2017-08-23 03:21:35 +00:00
class-wc-customer-download-log-data-store.php [#12517] Move download log table to const and helper, output download log report titles in standalone function, reorganize download log data store read for code readability 2017-08-23 03:10:14 +00:00
class-wc-data-store-wp.php Make parse_date_for_wp_query public 2017-09-26 12:03:11 -07:00
class-wc-order-data-store-cpt.php Return amount refunded as a float 2018-01-27 17:07:20 -06:00
class-wc-order-item-coupon-data-store.php Miscellaneous cleanup of typos + change some return types for IDE helpers 2017-03-20 11:03:14 +01:00
class-wc-order-item-data-store.php leave objects alone rather than slashing in the meta api 2017-07-04 16:09:21 +01:00
class-wc-order-item-fee-data-store.php Store fee amount and prevent totals going negative 2017-08-23 12:15:06 +01:00
class-wc-order-item-product-store.php Miscellaneous cleanup of typos + change some return types for IDE helpers 2017-03-20 11:03:14 +01:00
class-wc-order-item-shipping-data-store.php Miscellaneous cleanup of typos + change some return types for IDE helpers 2017-03-20 11:03:14 +01:00
class-wc-order-item-tax-data-store.php Miscellaneous cleanup of typos + change some return types for IDE helpers 2017-03-20 11:03:14 +01:00
class-wc-order-refund-data-store-cpt.php Only delete if the object has an ID 2017-05-30 14:44:28 +01:00
class-wc-payment-token-data-store.php Fixed typos. 2017-07-10 12:56:28 +07:00
class-wc-product-data-store-cpt.php Remove unused variables 2018-01-03 16:00:28 -02:00
class-wc-product-grouped-data-store-cpt.php Added an update_prices_from_children routine and fixed sync_prices 2017-10-17 10:06:49 -07:00
class-wc-product-variable-data-store-cpt.php Update docblock for $include_taxes 2017-12-07 11:46:35 +00:00
class-wc-product-variation-data-store-cpt.php Variation data store should remove product_type term on save 2017-08-11 12:32:12 +01:00
class-wc-shipping-zone-data-store.php Sort by order + zone ID as a fallback in shipping zones 2017-07-19 10:16:50 +01:00
class-wc-webhook-data-store.php Merge pull request #17986 from woocommerce/fix/12439-pending-delivery 2017-12-01 10:31:46 -08:00