Skip to content
This repository was archived by the owner on Nov 17, 2021. It is now read-only.

Commit a7b7e5b

Browse files
committed
Merge branch 'release/1.1.2'
2 parents e3670ed + 6699d46 commit a7b7e5b

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## [1.1.2](https://github.com/rvola/woo-stripe-fee-in-report/tree/1.1.2) - 2018-06-04
4+
[Full Changelog](https://github.com/rvola/woo-stripe-fee-in-report/compare/1.1.1...1.1.2)
5+
6+
* Fix - Error in calculating net total #2
7+
38
## [1.1.1](https://github.com/rvola/woo-stripe-fee-in-report/tree/1.1.1) - 2018-05-23
49
[Full Changelog](https://github.com/rvola/woo-stripe-fee-in-report/compare/1.1.0...1.1.1)
510

includes/class-report.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public function add_report_data( $report_data ) {
137137
$this->report_data->total_stripe_fees = wc_format_decimal( array_sum( wp_list_pluck( $this->report_data->stripe_fees, 'total' ) ), 2 );
138138

139139
// Update Net Sale - Stripe fees.
140-
$this->report_data->net_sales = wc_format_decimal( $this->report_data->total_sales - $this->report_data->total_shipping - $this->report_data->total_stripe_fees - max( 0, $this->report_data->total_tax ) - max( 0, $this->report_data->total_shipping_tax ) - max( 0, $this->report_data->total_stripe_fees ), 2 );
140+
$this->report_data->net_sales = wc_format_decimal( $this->report_data->total_sales - $this->report_data->total_shipping - max( 0, $this->report_data->total_tax ) - max( 0, $this->report_data->total_shipping_tax ) - max( 0, $this->report_data->total_stripe_fees ), 2 );
141141

142142
return $this->report_data;
143143
}

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tags: stripe, woocommerce, woocommerce-plugin, woocommerce-extension, wordpress-
55
Requires PHP: 5.3
66
Requires at least: 4.4
77
Tested up to: 4.9
8-
Stable tag: 1.1.1
8+
Stable tag: 1.1.2
99
License: GPLv3
1010
License URI: https://www.gnu.org/licenses/gpl-3.0.html
1111

@@ -41,6 +41,9 @@ The GIT repository is available here [https://github.com/rvola/woo-stripe-fee-in
4141

4242
== Changelog ==
4343

44+
= 1.1.2 / 2018-06-04 =
45+
* Fix - Error in calculating net total #2
46+
4447
= 1.1.1 / 2018-05-23 =
4548
* ✔︎ Compatibility WooCommerce 3.4.0
4649

woo-stripe-fee-in-report.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
*
66
* Description: Shows Stripe fees in WooCommerce charts. Calculates a correct net total.
77
*
8-
* Version: 1.1.1
9-
* Revision: 2018-05-23
8+
* Version: 1.1.2
9+
* Revision: 2018-06-04
1010
* Creation: 2018-02-24
1111
*
1212
* Author: studio RVOLA

0 commit comments

Comments
 (0)