WooCommerce PDF Invoices - Version 2.2.5

Version Description

  • May 13, 2015 =

  • Fixed: Invoice not generated with order

Download this release

Release Info

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

Code changes from version 2.2.4 to 2.2.5

admin/classes/be-woocommerce-pdf-invoices.php CHANGED
@@ -307,7 +307,7 @@ if ( ! class_exists( 'BE_WooCommerce_PDF_Invoices' ) ) {
307
 
308
  $invoice = new BEWPI_Invoice( $order->id );
309
 
310
- if ( !$invoice->exists() ) :
311
  $filename = $invoice->save( "F" );
312
  else :
313
  $filename = $invoice->get_filename();
307
 
308
  $invoice = new BEWPI_Invoice( $order->id );
309
 
310
+ if ( ! $invoice->exists() ) :
311
  $filename = $invoice->save( "F" );
312
  else :
313
  $filename = $invoice->get_filename();
bootstrap.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  /**
4
- * @version 2.2.4
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.4
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.4' );
26
 
27
  if( !defined( 'BEWPI_URL' ) )
28
  define( 'BEWPI_URL', plugins_url( '', __FILE__ ) . '/' );
1
  <?php
2
 
3
  /**
4
+ * @version 2.2.5
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.5
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.5' );
26
 
27
  if( !defined( 'BEWPI_URL' ) )
28
  define( 'BEWPI_URL', plugins_url( '', __FILE__ ) . '/' );
includes/classes/bewpi-invoice.php CHANGED
@@ -95,6 +95,7 @@ if ( ! class_exists( 'BEWPI_Invoice' ) ) {
95
  parent::__construct();
96
  $this->order = wc_get_order( $order_id );
97
  $this->formatted_number = get_post_meta( $this->order->id, '_bewpi_formatted_invoice_number', true );
 
98
 
99
  // Check if the invoice already exists.
100
  if( ! empty( $this->formatted_number ) || isset( $_GET['bewpi_action'] ) && $_GET['bewpi_action'] !== 'cancel' )
@@ -110,7 +111,6 @@ if ( ! class_exists( 'BEWPI_Invoice' ) ) {
110
  $this->file = $this->formatted_number . '.pdf';
111
  $this->filename = BEWPI_INVOICES_DIR . (string)$this->year . '/' . $this->file;
112
  $this->date = get_post_meta( $this->order->id, '_bewpi_invoice_date', true );
113
- $this->template_folder = BEWPI_TEMPLATES_DIR . $this->template_options['bewpi_template_name'];
114
  }
115
 
116
  /**
95
  parent::__construct();
96
  $this->order = wc_get_order( $order_id );
97
  $this->formatted_number = get_post_meta( $this->order->id, '_bewpi_formatted_invoice_number', true );
98
+ $this->template_folder = BEWPI_TEMPLATES_DIR . $this->template_options['bewpi_template_name'];
99
 
100
  // Check if the invoice already exists.
101
  if( ! empty( $this->formatted_number ) || isset( $_GET['bewpi_action'] ) && $_GET['bewpi_action'] !== 'cancel' )
111
  $this->file = $this->formatted_number . '.pdf';
112
  $this->filename = BEWPI_INVOICES_DIR . (string)$this->year . '/' . $this->file;
113
  $this->date = get_post_meta( $this->order->id, '_bewpi_invoice_date', true );
 
114
  }
115
 
116
  /**
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.4
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.4 - May 11, 2015 =
70
 
71
  - Fixed: Admin notice
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
 
67
  == Changelog ==
68
 
69
+ = 2.2.5 - May 13, 2015 =
70
+
71
+ - Fixed: Invoice not generated with order
72
+
73
  = 2.2.4 - May 11, 2015 =
74
 
75
  - Fixed: Admin notice