WooCommerce PDF Invoices - Version 2.2.6

Version Description

  • May 14, 2015 =

  • Fixed: Sequential invoice numbering

Download this release

Release Info

Developer baaaaas
Plugin Icon 128x128 WooCommerce PDF Invoices
Version 2.2.6
Comparing to
See all releases

Code changes from version 2.2.5 to 2.2.6

admin/classes/bewpi-general-settings.php CHANGED
@@ -41,7 +41,6 @@ if ( ! class_exists( 'BEWPI_General_Settings' ) ) {
41
  */
42
  public function load_settings() {
43
  $defaults = $this->get_defaults();
44
- $defaults['bewpi_settings_key'] = $this->settings_key;
45
  $options = (array) get_option( $this->settings_key );
46
  $options = array_merge( $defaults, $options );
47
  update_option( $this->settings_key, $options );
41
  */
42
  public function load_settings() {
43
  $defaults = $this->get_defaults();
 
44
  $options = (array) get_option( $this->settings_key );
45
  $options = array_merge( $defaults, $options );
46
  update_option( $this->settings_key, $options );
admin/classes/bewpi-template-settings.php CHANGED
@@ -41,7 +41,6 @@ if ( ! class_exists( 'BEWPI_Template_Settings' ) ) {
41
  */
42
  public function load_settings() {
43
  $defaults = $this->get_defaults();
44
- $defaults['bewpi_settings_key'] = $this->settings_key;
45
  $defaults['bewpi_last_invoice_number'] = 1;
46
  $options = (array) get_option( $this->settings_key );
47
  $options = array_merge( $defaults, $options );
41
  */
42
  public function load_settings() {
43
  $defaults = $this->get_defaults();
 
44
  $defaults['bewpi_last_invoice_number'] = 1;
45
  $options = (array) get_option( $this->settings_key );
46
  $options = array_merge( $defaults, $options );
bootstrap.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  /**
4
- * @version 2.2.5
5
  * @package WooCommerce PDF Invoices
6
  * @author baaaaas
7
  *
@@ -9,7 +9,7 @@
9
  * Plugin Name: WooCommerce PDF Invoices
10
  * Plugin URI:
11
  * Description: Automatically or manually create and send PDF Invoices for WooCommerce orders and connect with Dropbox, Google Drive, OneDrive or Egnyte.
12
- * Version: 2.2.5
13
  * Author: baaaaas
14
  * Author URI:
15
  * License: GPL-2.0+
@@ -22,7 +22,7 @@ if ( ! defined( 'ABSPATH' ) )
22
  die( 'Access denied.' );
23
 
24
  if( !defined( 'BEWPI_VERSION' ) )
25
- define( 'BEWPI_VERSION', '2.2.5' );
26
 
27
  if( !defined( 'BEWPI_URL' ) )
28
  define( 'BEWPI_URL', plugins_url( '', __FILE__ ) . '/' );
1
  <?php
2
 
3
  /**
4
+ * @version 2.2.6
5
  * @package WooCommerce PDF Invoices
6
  * @author baaaaas
7
  *
9
  * Plugin Name: WooCommerce PDF Invoices
10
  * Plugin URI:
11
  * Description: Automatically or manually create and send PDF Invoices for WooCommerce orders and connect with Dropbox, Google Drive, OneDrive or Egnyte.
12
+ * Version: 2.2.6
13
  * Author: baaaaas
14
  * Author URI:
15
  * License: GPL-2.0+
22
  die( 'Access denied.' );
23
 
24
  if( !defined( 'BEWPI_VERSION' ) )
25
+ define( 'BEWPI_VERSION', '2.2.6' );
26
 
27
  if( !defined( 'BEWPI_URL' ) )
28
  define( 'BEWPI_URL', plugins_url( '', __FILE__ ) . '/' );
includes/classes/bewpi-invoice.php CHANGED
@@ -281,7 +281,8 @@ if ( ! class_exists( 'BEWPI_Invoice' ) ) {
281
 
282
  $this->template_options['bewpi_last_invoice_number'] = $this->number;
283
  $this->template_options['bewpi_last_invoiced_year'] = $this->year;
284
- update_option( 'bewpi_template_settings', $this->template_options );
 
285
 
286
  parent::generate( $dest, $this );
287
 
281
 
282
  $this->template_options['bewpi_last_invoice_number'] = $this->number;
283
  $this->template_options['bewpi_last_invoiced_year'] = $this->year;
284
+ delete_option( 'bewpi_template_settings' );
285
+ add_option( 'bewpi_template_settings', $this->template_options );
286
 
287
  parent::generate( $dest, $this );
288
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: woocommerce pdf invoices, invoice, generate, pdf, woocommerce, attachment, email, completed order, customer invoice, processing order, attach, automatic, vat, rate, sequential, number
5
  Requires at least: 3.5
6
  Tested up to: 4.2
7
- Stable tag: 2.2.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -66,6 +66,10 @@ The manual installation method involves downloading our plugin and uploading it
66
 
67
  == Changelog ==
68
 
 
 
 
 
69
  = 2.2.5 - May 13, 2015 =
70
 
71
  - Fixed: Invoice not generated with order
4
  Tags: woocommerce pdf invoices, invoice, generate, pdf, woocommerce, attachment, email, completed order, customer invoice, processing order, attach, automatic, vat, rate, sequential, number
5
  Requires at least: 3.5
6
  Tested up to: 4.2
7
+ Stable tag: 2.2.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
66
 
67
  == Changelog ==
68
 
69
+ = 2.2.6 - May 14, 2015 =
70
+
71
+ - Fixed: Sequential invoice numbering
72
+
73
  = 2.2.5 - May 13, 2015 =
74
 
75
  - Fixed: Invoice not generated with order