Version Notes
New Released:
- Enable automatic invoice and shipment generation based on payment methods.
- Automatically create and change order status.
- Send invoice e-mail to customer.
Download this release
Release Info
| Developer | Bss Commerce |
| Extension | auto-invoice-free-extension |
| Version | 1.0.7 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.6 to 1.0.7
app/code/community/Bss/Autoinvoice/Helper/Data.php
CHANGED
|
@@ -1,33 +1,33 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
class Bss_Autoinvoice_Helper_Data extends Mage_Core_Helper_Abstract
|
| 29 |
-
{
|
| 30 |
-
public function data() {
|
| 31 |
-
}
|
| 32 |
-
}
|
| 33 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* BssCommerce Co.
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the EULA
|
| 8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
| 9 |
+
* It is also available through the world-wide-web at this URL:
|
| 10 |
+
* http://bsscommerce.com/Bss-Commerce-License.txt
|
| 11 |
+
*
|
| 12 |
+
* =================================================================
|
| 13 |
+
* MAGENTO EDITION USAGE NOTICE
|
| 14 |
+
* =================================================================
|
| 15 |
+
* This package designed for Magento COMMUNITY edition
|
| 16 |
+
* BssCommerce does not guarantee correct work of this extension
|
| 17 |
+
* on any other Magento edition except Magento COMMUNITY edition.
|
| 18 |
+
* BssCommerce does not provide extension support in case of
|
| 19 |
+
* incorrect edition usage.
|
| 20 |
+
* =================================================================
|
| 21 |
+
*
|
| 22 |
+
* @category BSS
|
| 23 |
+
* @package Bss_Autoinvoice
|
| 24 |
+
* @author Trung <kiutisuperking@gmail.com>
|
| 25 |
+
* @copyright Copyright (c) 2014-2016 BssCommerce Co. (http://bsscommerce.com)
|
| 26 |
+
* @license http://bsscommerce.com/Bss-Commerce-License.txt
|
| 27 |
+
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
?>
|
| 29 |
+
|
| 30 |
+
<?php
|
| 31 |
+
class Bss_Autoinvoice_Helper_Data extends Mage_Core_Helper_Abstract {
|
| 32 |
+
public function data() {}
|
| 33 |
+
}
|
app/code/community/Bss/Autoinvoice/Model/Observer.php
CHANGED
|
@@ -1,33 +1,35 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
|
|
|
|
|
|
| 31 |
/* @var Magento_Sales_Model_Order_Invoice */
|
| 32 |
public $_invoice;
|
| 33 |
|
|
@@ -37,8 +39,7 @@ class Bss_Autoinvoice_Model_Observer
|
|
| 37 |
* protected $_eventObject = 'order';
|
| 38 |
* event: sales_order_save_after
|
| 39 |
*/
|
| 40 |
-
public function autoInvoice($observer)
|
| 41 |
-
{
|
| 42 |
if(Mage::getStoreConfig('autoinvoice/settings/active')) {
|
| 43 |
$order = $observer->getEvent()->getOrder();
|
| 44 |
$orders = Mage::getModel('sales/order_invoice')->getCollection()
|
|
@@ -92,8 +93,7 @@ class Bss_Autoinvoice_Model_Observer
|
|
| 92 |
}
|
| 93 |
}
|
| 94 |
|
| 95 |
-
public function automaticallyInvoiceShipCompleteOrder($observer)
|
| 96 |
-
{
|
| 97 |
try {
|
| 98 |
/* @var $order Magento_Sales_Model_Order_Invoice */
|
| 99 |
$this->_invoice = $observer->getEvent()->getInvoice();
|
|
@@ -106,5 +106,4 @@ class Bss_Autoinvoice_Model_Observer
|
|
| 106 |
|
| 107 |
return $this;
|
| 108 |
}
|
| 109 |
-
}
|
| 110 |
-
?>
|
| 1 |
+
<?php ob_start(); ?>
|
| 2 |
+
<?php
|
| 3 |
+
/**
|
| 4 |
+
* BssCommerce Co.
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the EULA
|
| 9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
| 10 |
+
* It is also available through the world-wide-web at this URL:
|
| 11 |
+
* http://bsscommerce.com/Bss-Commerce-License.txt
|
| 12 |
+
*
|
| 13 |
+
* =================================================================
|
| 14 |
+
* MAGENTO EDITION USAGE NOTICE
|
| 15 |
+
* =================================================================
|
| 16 |
+
* This package designed for Magento COMMUNITY edition
|
| 17 |
+
* BssCommerce does not guarantee correct work of this extension
|
| 18 |
+
* on any other Magento edition except Magento COMMUNITY edition.
|
| 19 |
+
* BssCommerce does not provide extension support in case of
|
| 20 |
+
* incorrect edition usage.
|
| 21 |
+
* =================================================================
|
| 22 |
+
*
|
| 23 |
+
* @category BSS
|
| 24 |
+
* @package Bss_Autoinvoice
|
| 25 |
+
* @author Trung <kiutisuperking@gmail.com>
|
| 26 |
+
* @copyright Copyright (c) 2014-2016 BssCommerce Co. (http://bsscommerce.com)
|
| 27 |
+
* @license http://bsscommerce.com/Bss-Commerce-License.txt
|
| 28 |
+
*/
|
| 29 |
+
?>
|
| 30 |
+
|
| 31 |
+
<?php
|
| 32 |
+
class Bss_Autoinvoice_Model_Observer {
|
| 33 |
/* @var Magento_Sales_Model_Order_Invoice */
|
| 34 |
public $_invoice;
|
| 35 |
|
| 39 |
* protected $_eventObject = 'order';
|
| 40 |
* event: sales_order_save_after
|
| 41 |
*/
|
| 42 |
+
public function autoInvoice($observer) {
|
|
|
|
| 43 |
if(Mage::getStoreConfig('autoinvoice/settings/active')) {
|
| 44 |
$order = $observer->getEvent()->getOrder();
|
| 45 |
$orders = Mage::getModel('sales/order_invoice')->getCollection()
|
| 93 |
}
|
| 94 |
}
|
| 95 |
|
| 96 |
+
public function automaticallyInvoiceShipCompleteOrder($observer) {
|
|
|
|
| 97 |
try {
|
| 98 |
/* @var $order Magento_Sales_Model_Order_Invoice */
|
| 99 |
$this->_invoice = $observer->getEvent()->getInvoice();
|
| 106 |
|
| 107 |
return $this;
|
| 108 |
}
|
| 109 |
+
}
|
|
|
app/code/community/Bss/Autoinvoice/etc/config.xml
CHANGED
|
@@ -1,7 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
<config>
|
| 2 |
<modules>
|
| 3 |
<Bss_Autoinvoice>
|
| 4 |
-
<version>1.0.
|
| 5 |
</Bss_Autoinvoice>
|
| 6 |
</modules>
|
| 7 |
<global>
|
|
@@ -33,7 +62,6 @@
|
|
| 33 |
</bss_autoinvoice>
|
| 34 |
</observers>
|
| 35 |
</sales_order_invoice_save_after>
|
| 36 |
-
|
| 37 |
</events>
|
| 38 |
</global>
|
| 39 |
<adminhtml>
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<!--
|
| 3 |
+
/**
|
| 4 |
+
* BssCommerce Co.
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the EULA
|
| 9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
| 10 |
+
* It is also available through the world-wide-web at this URL:
|
| 11 |
+
* http://bsscommerce.com/Bss-Commerce-License.txt
|
| 12 |
+
*
|
| 13 |
+
* =================================================================
|
| 14 |
+
* MAGENTO EDITION USAGE NOTICE
|
| 15 |
+
* =================================================================
|
| 16 |
+
* This package designed for Magento COMMUNITY edition
|
| 17 |
+
* BssCommerce does not guarantee correct work of this extension
|
| 18 |
+
* on any other Magento edition except Magento COMMUNITY edition.
|
| 19 |
+
* BssCommerce does not provide extension support in case of
|
| 20 |
+
* incorrect edition usage.
|
| 21 |
+
* =================================================================
|
| 22 |
+
*
|
| 23 |
+
* @category BSS
|
| 24 |
+
* @package Bss_Autoinvoice
|
| 25 |
+
* @author Trung <kiutisuperking@gmail.com>
|
| 26 |
+
* @copyright Copyright (c) 2014-2016 BssCommerce Co. (http://bsscommerce.com)
|
| 27 |
+
* @license http://bsscommerce.com/Bss-Commerce-License.txt
|
| 28 |
+
*/
|
| 29 |
+
-->
|
| 30 |
<config>
|
| 31 |
<modules>
|
| 32 |
<Bss_Autoinvoice>
|
| 33 |
+
<version>1.0.7</version>
|
| 34 |
</Bss_Autoinvoice>
|
| 35 |
</modules>
|
| 36 |
<global>
|
| 62 |
</bss_autoinvoice>
|
| 63 |
</observers>
|
| 64 |
</sales_order_invoice_save_after>
|
|
|
|
| 65 |
</events>
|
| 66 |
</global>
|
| 67 |
<adminhtml>
|
app/code/community/Bss/Autoinvoice/etc/system.xml
CHANGED
|
@@ -1,9 +1,37 @@
|
|
| 1 |
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
<config>
|
| 3 |
<tabs>
|
| 4 |
<bss translate="label" module="autoinvoice">
|
| 5 |
<label>BSS COMMERCE</label>
|
| 6 |
-
<sort_order>
|
| 7 |
</bss>
|
| 8 |
</tabs>
|
| 9 |
<sections>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
+
<!--
|
| 3 |
+
/**
|
| 4 |
+
* BssCommerce Co.
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the EULA
|
| 9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
| 10 |
+
* It is also available through the world-wide-web at this URL:
|
| 11 |
+
* http://bsscommerce.com/Bss-Commerce-License.txt
|
| 12 |
+
*
|
| 13 |
+
* =================================================================
|
| 14 |
+
* MAGENTO EDITION USAGE NOTICE
|
| 15 |
+
* =================================================================
|
| 16 |
+
* This package designed for Magento COMMUNITY edition
|
| 17 |
+
* BssCommerce does not guarantee correct work of this extension
|
| 18 |
+
* on any other Magento edition except Magento COMMUNITY edition.
|
| 19 |
+
* BssCommerce does not provide extension support in case of
|
| 20 |
+
* incorrect edition usage.
|
| 21 |
+
* =================================================================
|
| 22 |
+
*
|
| 23 |
+
* @category BSS
|
| 24 |
+
* @package Bss_Autoinvoice
|
| 25 |
+
* @author Trung <kiutisuperking@gmail.com>
|
| 26 |
+
* @copyright Copyright (c) 2014-2016 BssCommerce Co. (http://bsscommerce.com)
|
| 27 |
+
* @license http://bsscommerce.com/Bss-Commerce-License.txt
|
| 28 |
+
*/
|
| 29 |
+
-->
|
| 30 |
<config>
|
| 31 |
<tabs>
|
| 32 |
<bss translate="label" module="autoinvoice">
|
| 33 |
<label>BSS COMMERCE</label>
|
| 34 |
+
<sort_order>200</sort_order>
|
| 35 |
</bss>
|
| 36 |
</tabs>
|
| 37 |
<sections>
|
package.xml
CHANGED
|
@@ -1,27 +1,25 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>auto-invoice-free-extension</name>
|
| 4 |
-
<version>1.0.
|
| 5 |
<stability>stable</stability>
|
| 6 |
-
<license uri="http://
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
-
<summary>Auto Invoice Extension was designed to automatically change order status by sending invoice email to customers
|
| 10 |
-
<description>
|
| 11 |

|
| 12 |
-
|
| 13 |
-
-
|
| 14 |
-
-
|
| 15 |
-
|
| 16 |
-
- Enable
|
| 17 |
-
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
-
|
| 21 |
-
<
|
| 22 |
-
<
|
| 23 |
-
<time>04:15:30</time>
|
| 24 |
-
<contents><target name="mageetc"><dir name="modules"><file name="Bss_Autoinvoice.xml" hash="fea148ebae4c57b86273790f57423702"/></dir></target><target name="magecommunity"><dir name="Bss"><dir name="Autoinvoice"><dir name="Helper"><file name="Data.php" hash="d27d40287907297d31f17c40a5ce2642"/></dir><dir name="Model"><file name="Observer.php" hash="726beafa5f0cbe6b47a46e8a6a7389de"/></dir><dir name="etc"><file name="config.xml" hash="62649d18903b2e78d03b9b67271ea602"/><file name="system.xml" hash="407e0ae898288993ea177f2d2eafafc4"/></dir></dir></dir></target></contents>
|
| 25 |
<compatible/>
|
| 26 |
-
<dependencies
|
| 27 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>auto-invoice-free-extension</name>
|
| 4 |
+
<version>1.0.7</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
+
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
+
<summary>Auto Invoice Extension was designed to automatically change order status by sending invoice email to customers.</summary>
|
| 10 |
+
<description>Auto Invoice Extension features a convenient Magento payment process which was designed to change order status automatically after generating invoice.
|
| 11 |

|
| 12 |
+
- Enable automatic invoice and shipment generation based on payment methods.
|
| 13 |
+
- Automatically create and change order status.
|
| 14 |
+
- Send invoice e-mail to customer.</description>
|
| 15 |
+
<notes>New Released:
|
| 16 |
+
- Enable automatic invoice and shipment generation based on payment methods.
|
| 17 |
+
- Automatically create and change order status.
|
| 18 |
+
- Send invoice e-mail to customer.</notes>
|
| 19 |
+
<authors><author><name>Bss Commerce</name><user>Bsscommerce</user><email>support@bsscommerce.com</email></author></authors>
|
| 20 |
+
<date>2016-03-21</date>
|
| 21 |
+
<time>10:48:09</time>
|
| 22 |
+
<contents><target name="magecommunity"><dir name="Bss"><dir name="Autoinvoice"><dir name="Helper"><file name="Data.php" hash="8ce5939b6474072e209331e0f6977515"/></dir><dir name="Model"><file name="Observer.php" hash="f38e0bad2741e029263953f6fdacad45"/></dir><dir name="etc"><file name="config.xml" hash="0720a93179ea28cd6d0bf89f9c94268f"/><file name="system.xml" hash="019d677c196419846d7b3b95d0e6c5d4"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Bss_Autoinvoice.xml" hash="fea148ebae4c57b86273790f57423702"/></dir></target></contents>
|
|
|
|
|
|
|
| 23 |
<compatible/>
|
| 24 |
+
<dependencies><required><php><min>4.0.0</min><max>7.0.3</max></php></required></dependencies>
|
| 25 |
</package>
|
