Version Description
- Fix: Prevent errors for subscription tax fallback on refunds
Download this release
Release Info
Developer | pomegranate |
Plugin | WooCommerce PDF Invoices & Packing Slips |
Version | 2.4.5 |
Comparing to | |
See all releases |
Code changes from version 2.4.4 to 2.4.5
includes/documents/abstract-wcpdf-order-document-methods.php
CHANGED
@@ -713,7 +713,7 @@ abstract class Order_Document_Methods extends Order_Document {
|
|
713 |
}
|
714 |
|
715 |
foreach( $tax_items as $tax_item_key => $tax_item ) {
|
716 |
-
if ( $order->get_created_via() == 'subscription' ) {
|
717 |
// subscription renewals didn't properly record the rate_percent property between WC3.7 and WCS3.0.1
|
718 |
// so we use a fallback if the rate_percent = 0 and the amount != 0
|
719 |
$rate_percent = $tax_item->get_rate_percent();
|
713 |
}
|
714 |
|
715 |
foreach( $tax_items as $tax_item_key => $tax_item ) {
|
716 |
+
if ( is_callable( array( $order, 'get_created_via' ) ) && $order->get_created_via() == 'subscription' ) {
|
717 |
// subscription renewals didn't properly record the rate_percent property between WC3.7 and WCS3.0.1
|
718 |
// so we use a fallback if the rate_percent = 0 and the amount != 0
|
719 |
$rate_percent = $tax_item->get_rate_percent();
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: woocommerce, pdf, invoices, packing slips, print, delivery notes, invoice,
|
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 5.3
|
7 |
Requires PHP: 5.3
|
8 |
-
Stable tag: 2.4.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -102,6 +102,9 @@ There's a setting on the Status tab of the settings page that allows you to togg
|
|
102 |
|
103 |
== Changelog ==
|
104 |
|
|
|
|
|
|
|
105 |
= 2.4.4 =
|
106 |
* Fix: German Market thumbnail settings conflict
|
107 |
* Fix: Correctly sanitize wizard text input
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 5.3
|
7 |
Requires PHP: 5.3
|
8 |
+
Stable tag: 2.4.5
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
102 |
|
103 |
== Changelog ==
|
104 |
|
105 |
+
= 2.4.5 =
|
106 |
+
* Fix: Prevent errors for subscription tax fallback on refunds
|
107 |
+
|
108 |
= 2.4.4 =
|
109 |
* Fix: German Market thumbnail settings conflict
|
110 |
* Fix: Correctly sanitize wizard text input
|
woocommerce-pdf-invoices-packingslips.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: WooCommerce PDF Invoices & Packing Slips
|
4 |
* Plugin URI: http://www.wpovernight.com
|
5 |
* Description: Create, print & email PDF invoices & packing slips for WooCommerce orders.
|
6 |
-
* Version: 2.4.
|
7 |
* Author: Ewout Fernhout
|
8 |
* Author URI: http://www.wpovernight.com
|
9 |
* License: GPLv2 or later
|
@@ -21,7 +21,7 @@ if ( !class_exists( 'WPO_WCPDF' ) ) :
|
|
21 |
|
22 |
class WPO_WCPDF {
|
23 |
|
24 |
-
public $version = '2.4.
|
25 |
public $plugin_basename;
|
26 |
public $legacy_mode;
|
27 |
|
3 |
* Plugin Name: WooCommerce PDF Invoices & Packing Slips
|
4 |
* Plugin URI: http://www.wpovernight.com
|
5 |
* Description: Create, print & email PDF invoices & packing slips for WooCommerce orders.
|
6 |
+
* Version: 2.4.5
|
7 |
* Author: Ewout Fernhout
|
8 |
* Author URI: http://www.wpovernight.com
|
9 |
* License: GPLv2 or later
|
21 |
|
22 |
class WPO_WCPDF {
|
23 |
|
24 |
+
public $version = '2.4.5';
|
25 |
public $plugin_basename;
|
26 |
public $legacy_mode;
|
27 |
|