Plumrocket_Auto_Invoice - Version 1.1.1

Version Notes

- Minor improvements
- Fixed bug with multiple orders blocking automated invoices creation

Download this release

Release Info

Developer Plumrocket Team
Extension Plumrocket_Auto_Invoice
Version 1.1.1
Comparing to
See all releases


Code changes from version 1.1.0 to 1.1.1

app/code/community/Plumrocket/AutoInvoice/Model/Observer.php CHANGED
@@ -66,7 +66,7 @@ class Plumrocket_AutoInvoice_Model_Observer
66
  $invoice = Mage::getModel('sales/service_order', $order)->prepareInvoice();
67
 
68
  if ($invoice) {
69
- Mage::register('current_invoice', $invoice);
70
  $invoice->setRequestedCaptureCase($_helper->getCaptureAmount($order->getStoreId()));
71
  $invoice->register();
72
  $invoice->getOrder()->setCustomerNoteNotify(false);
@@ -157,7 +157,7 @@ class Plumrocket_AutoInvoice_Model_Observer
157
  return $this;
158
  }
159
  $_invoice->sendEmail();
160
- } catch (Mage_Core_Exception $e) {
161
  //echo $e->getMessage();
162
  }
163
 
66
  $invoice = Mage::getModel('sales/service_order', $order)->prepareInvoice();
67
 
68
  if ($invoice) {
69
+ Mage::register('current_invoice', $invoice, true);
70
  $invoice->setRequestedCaptureCase($_helper->getCaptureAmount($order->getStoreId()));
71
  $invoice->register();
72
  $invoice->getOrder()->setCustomerNoteNotify(false);
157
  return $this;
158
  }
159
  $_invoice->sendEmail();
160
+ } catch (Exception $e) {
161
  //echo $e->getMessage();
162
  }
163
 
app/code/community/Plumrocket/AutoInvoice/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Plumrocket_AutoInvoice>
5
- <version>1.1.0</version>
6
  </Plumrocket_AutoInvoice>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <Plumrocket_AutoInvoice>
5
+ <version>1.1.1</version>
6
  </Plumrocket_AutoInvoice>
7
  </modules>
8
  <global>
app/etc/modules/Plumrocket_AutoInvoice.xml CHANGED
@@ -4,7 +4,7 @@
4
  <Plumrocket_AutoInvoice>
5
  <active>true</active>
6
  <codePool>community</codePool>
7
- <version>1.1.0</version>
8
  <wiki>http://wiki.plumrocket.com/wiki/Magento_Auto_Invoice_v1.x_Extension</wiki>
9
  <name>Plumrocket Auto Invoice</name>
10
  <depends>
4
  <Plumrocket_AutoInvoice>
5
  <active>true</active>
6
  <codePool>community</codePool>
7
+ <version>1.1.1</version>
8
  <wiki>http://wiki.plumrocket.com/wiki/Magento_Auto_Invoice_v1.x_Extension</wiki>
9
  <name>Plumrocket Auto Invoice</name>
10
  <depends>
package.xml CHANGED
@@ -1,18 +1,19 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Plumrocket_Auto_Invoice</name>
4
- <version>1.1.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://wiki.plumrocket.net/wiki/EULA">End-user License Agreement</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Plumrocket Auto Invoice is a convenient Magento payment processing module that was designed to generate invoice automatically.</summary>
10
  <description>Plumrocket Auto Invoice is a convenient Magento payment processing module that was designed to generate invoice automatically. After a client confirms his order the system will send the invoice automatically thus allowing website admin to avoid manual processing of payment transactions.</description>
11
- <notes>Added automated email sending while creating separate invoices.</notes>
 
12
  <authors><author><name>Plumrocket Team</name><user>plumrocket</user><email>support@plumrocket.com</email></author></authors>
13
- <date>2016-03-18</date>
14
- <time>10:02:23</time>
15
- <contents><target name="mageetc"><dir name="modules"><file name="Plumrocket_AutoInvoice.xml" hash="19002966d54dd644d1b01d67a9d8d7d3"/></dir></target><target name="magecommunity"><dir name="Plumrocket"><dir name="AutoInvoice"><dir name="Block"><dir name="System"><dir name="Config"><file name="Version.php" hash="1f60ec9ef1680266bd639c41a7802177"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="a95ccea81b14cca001f89e1da4750ace"/><file name="Main.php" hash="283bdec0fceed57707c86908631e9a2d"/></dir><dir name="Model"><file name="Observer.php" hash="21041cfb6c59ca3d75df3218a239c1a5"/><dir name="System"><dir name="Config"><dir name="Source"><file name="CaptureAmount.php" hash="28a27588ddd56fbbab43f09e31a9bac8"/><file name="SendInvoice.php" hash="8d19c278d460f27a0d23e2fa8b9d072f"/></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="e45a29110a7ea4ed9e26535cca2f47a4"/><file name="config.xml" hash="daab0e2ac4f2b6b5482f2d59dcca6949"/><file name="system.xml" hash="fd42373f949ccad34b233f61cf31479b"/></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><package><name>Plumrocket_Base</name><channel>community</channel><min/><max/></package></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Plumrocket_Auto_Invoice</name>
4
+ <version>1.1.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://wiki.plumrocket.net/wiki/EULA">End-user License Agreement</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Plumrocket Auto Invoice is a convenient Magento payment processing module that was designed to generate invoice automatically.</summary>
10
  <description>Plumrocket Auto Invoice is a convenient Magento payment processing module that was designed to generate invoice automatically. After a client confirms his order the system will send the invoice automatically thus allowing website admin to avoid manual processing of payment transactions.</description>
11
+ <notes>- Minor improvements&#xD;
12
+ - Fixed bug with multiple orders blocking automated invoices creation</notes>
13
  <authors><author><name>Plumrocket Team</name><user>plumrocket</user><email>support@plumrocket.com</email></author></authors>
14
+ <date>2016-05-10</date>
15
+ <time>08:25:08</time>
16
+ <contents><target name="mageetc"><dir name="modules"><file name="Plumrocket_AutoInvoice.xml" hash="78ec7e72d9b4a39bdf764c4aa905cc94"/></dir></target><target name="magecommunity"><dir name="Plumrocket"><dir name="AutoInvoice"><dir name="Block"><dir name="System"><dir name="Config"><file name="Version.php" hash="1f60ec9ef1680266bd639c41a7802177"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="a95ccea81b14cca001f89e1da4750ace"/><file name="Main.php" hash="283bdec0fceed57707c86908631e9a2d"/></dir><dir name="Model"><file name="Observer.php" hash="a84985469371ad7cba581e4e7d74f3b3"/><dir name="System"><dir name="Config"><dir name="Source"><file name="CaptureAmount.php" hash="28a27588ddd56fbbab43f09e31a9bac8"/><file name="SendInvoice.php" hash="8d19c278d460f27a0d23e2fa8b9d072f"/></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="e45a29110a7ea4ed9e26535cca2f47a4"/><file name="config.xml" hash="adf26f164957267be803deacb0af5991"/><file name="system.xml" hash="fd42373f949ccad34b233f61cf31479b"/></dir></dir></dir></target></contents>
17
  <compatible/>
18
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><package><name>Plumrocket_Base</name><channel>community</channel><min/><max/></package></required></dependencies>
19
  </package>