Gustavo Bordoni
d6d68ed9cd
Remove white space.
2020-12-01 13:16:53 -05:00
Gustavo Bordoni
2909be0777
Prevent non-numeric values from throwing a Warning on PHP 7.4+
...
Resolves #28291
2020-11-25 00:10:04 -05:00
Claudio Sanches
d48f1d4e2e
Fixed package tag usage
2020-08-05 13:36:24 -03:00
Rodrigo Primo
f06ad5d78a
Replace removed WordPress.Security.NonceVerification.NoNonceVerification
...
WordPress Coding Standard 2.0 removed the sniff
WordPress.Security.NonceVerification.NoNonceVerification:
```
The WordPress.Security.NonceVerification sniff used the same error code for both an error as well as a warning.
The old error code NoNonceVerification is no longer used.
The error now uses the Missing error code, while the warning now uses the Recommended error code.
```
(from
d45f5e5cf3/CHANGELOG.md (200-rc1---2018-12-31)
)
This commit updates WooCommerce code and replaces all instances where WordPress.Security.NonceVerification.NoNonceVerification verification was used with either WordPress.Security.NonceVerification.Missing or
WordPress.Security.NonceVerification.Recommended. In a few cases WordPress.Security.NonceVerification.NoNonceVerification was used but was not needed, so instead of replacing the sniff, the line was removed. In two other cases, I removed other unrelated sniffs that were not needed.
2019-12-13 17:45:32 -03:00
Mike Jolley
7def966e4f
Impoved JSON handling
2019-02-20 12:00:47 +00:00
Ron Rennick
c3879f0d63
only deduct refunded shipping, taxes once from gross to get net sales by date CSV
2019-01-21 15:44:53 -04:00
Ron Rennick
aa9961695f
phpcs sniff fixes for class-wc-report-orders-by-date.php
2019-01-21 15:36:29 -04:00
Rodrigo Primo
23b69eba53
Use phpcbf to fix coding standard violations in includes/admin
...
After using phpcbf to fix the coding standard violations, I did some manual adjustments to the changes, especially in poorly indented files.
2018-03-05 16:21:35 -03:00
Mike Jolley
5b4e5482dd
Don't subtract negative taxes in net sales report
...
Fixes #16306
2017-08-11 12:38:09 +01:00
Jaydeep Rami
46d3638089
Fix missing return statement ( #16148 )
...
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
2017-07-20 18:01:14 +01:00
Mike Jolley
44ef034a94
Cast report data to floats
...
#16118
2017-07-14 10:26:07 +01:00
Mike Jolley
3367047c8e
Update total orders and items
2017-06-09 15:07:31 +01:00
Rasmus Bengtsson
185934fad9
Fix phpdoc to include params and correct types
2017-05-15 13:50:52 +02:00
Claudio Sanches
2da71bd7fb
Prevent nonce check outside admin when calculating for reports
...
Fix all REST API reports endpoints.
Fixes #14496
2017-04-18 20:33:25 -03:00
Mike Jolley
cd7d6cf73d
Add refund_lines
2017-04-18 20:29:10 +01:00
Mike Jolley
7202ebdb4a
Remove shipping from net sales
...
Fixes #13777
2017-03-27 12:18:09 +01:00
Mike Jolley
bc24a2e854
BW compat for variable naming
...
@webaware
2016-12-20 11:07:31 +00:00
Mike Jolley
2e77e38d33
colour -> color
...
#12627
2016-12-19 11:41:48 +00:00
Mike Jolley
f2ea71ea6f
Reports fixes
2016-11-23 15:36:52 +00:00
Rami Yushuvaev
4e36ce7425
add translators comments
2016-10-29 15:57:09 +03:00
Rami Yushuvaev
4375618438
i18n context functions ( #12156 )
...
* Replace some context function with translation comments
* Remove two more context function
* Replace another context function with translation comments
2016-10-24 08:31:07 +01:00
Claudio Sanches
657c312cae
Fix strings case ( #12069 )
...
* Fixed case for all _e, esc_attr_e and esc_html_e strings
* Fixed case for all _n_noop strings
* Fixed case for all _x strings
* Fixed case for all __, esc_html__ and esc_attr__ strings
* Fixed a few more strings
* Fixed strings in unit tests
* Fix PayPal Standard case.
* Save Order text
2016-10-12 11:16:30 +01:00
Aristeides Stathopoulos
9668247b95
WordPress.PHP.YodaConditions.NotYoda
2016-09-09 03:14:28 +03:00
Mike Jolley
311c540662
Merge pull request #11833 from aristath/master
...
Coding Standards (2nd pass)
2016-09-07 10:14:17 +01:00
Mike Jolley
e4c91aef62
[2.6] Don't SUM meta
...
#11838
2016-09-07 10:05:17 +01:00
Mike Jolley
ed2b7a9f57
[2.6] refunded_order_items should be reset per loop
...
#11838
2016-09-07 09:31:17 +01:00
Aristeides Stathopoulos
6ac7f03241
Generic.Formatting.DisallowMultipleStatements.SameLine
2016-09-02 06:40:52 +03:00
Aristeides Stathopoulos
2346c3b735
Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace
2016-09-02 06:15:49 +03:00
Aristeides Stathopoulos
d4e3faf014
PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket
2016-09-02 04:51:31 +03:00
Aristeides Stathopoulos
0516e96843
PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket
2016-09-02 04:33:57 +03:00
Aristeides Stathopoulos
fde1037757
fix failing tests.
2016-09-01 23:50:14 +03:00
Aristeides Stathopoulos
82f3cc221e
WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis
2016-08-27 07:23:02 +03:00
Aristeides Stathopoulos
741f2b954a
Squiz.WhiteSpace.SuperfluousWhitespace.EndLine
2016-08-27 07:01:22 +03:00
Aristeides Stathopoulos
ec8a0b288b
PHPCS: WordPress.Arrays.ArrayDeclaration.NoCommaAfterLast
2016-08-27 05:08:49 +03:00
Aristeides Stathopoulos
b063bcfe4c
last item in a multiline-array should end in a comma
2016-08-27 04:46:45 +03:00
Justin Silver
4dec4832e1
Fix highlight series ID for coupons line from legend
2016-03-15 13:50:01 -07:00
Justin Silver
ffdfe816ec
Add ‘woocommerce_admin_report_data’ to filter chart data by 3rd parties
...
Refactor get_main_chart() to use an array of data so that it to can be
filtered
Add ‘woocommerce_admin_report_chart_data’ to filter chart data by
period (for display)
2016-03-14 19:30:49 -07:00
Mike Jolley
77e1aa8263
Make qty for refunds negative
...
Fixes order counts reported in #10135
May however require an upgrade routine and needs more testing. Not for
2.5.
Fixes #10135
2016-01-22 16:28:29 +00:00
Mike Jolley
6cc700a497
[2.5] Report on partial refunds/refunds items rather than full refunds to ensure they are reported when refunded
...
@claudiosmweb your testing + approval welcome.
Closes #10138
2016-01-22 15:50:23 +00:00
Fredrik Forsmo
0b62c624fa
Improve docblock comments in WC_Report_Sales_By_Date class
...
* Added comments to properties that don’t have any.
* Fixed return tag value for `get_report_data`
2016-01-05 12:28:49 +01:00
Claudio Sanches
5893875b0c
Removed period for file headers
2015-11-03 11:53:50 -02:00
Claudio Sanches
efa19f799d
Fixed some coding standards for docblocks
2015-11-03 10:28:01 -02:00
Mike Jolley
4fd987c165
Merge pull request #9266 from woothemes/issues/9125-report-does-not-match-with-chart
...
[2.4] Fixed wrong gross sales calculation on sales by date report.
2015-10-05 09:17:59 +01:00
Akeda Bagus
dc0d5362cd
Fixed wrong gross sales calculation on sales by date report.
...
The order amounts should exclude refunds.
Fixes #9125 .
2015-10-02 11:08:41 +02:00
Mike Jolley
96103724dc
Display 2 averages on report
...
Closes #9144
2015-10-02 10:42:48 +02:00
Florian Ludwig
7d2d102dc4
Fixed wrong highlighting of reports chart
...
The highlight data attributes were totally messed up - Fixed them
according to the current sorting of the graph series
2015-09-20 18:12:31 +02:00
Nicola Mustone
6f7b534493
missing comma
2015-08-24 17:27:23 +02:00
Nicola Mustone
beb97b279e
_x for refund reports
2015-08-24 17:13:04 +02:00
George Stephanis
95e6b84fbb
Make sure we esc_attr translation results
...
Part 2 of … 2, I think.
2015-08-05 14:15:00 -04:00
Mike Jolley
622dc777f0
Correct number format in coupon total
2015-07-30 12:52:52 +01:00