Version Notes
If you have ideas for improvements or find bugs, please send them to Jean-Sébastien Hederer at contact@asperience.fr, with ASPerience_DeleteAllOrders as part of the subject line.
Download this release
Release Info
Developer | Magento Core Team |
Extension | Asperience_DeleteAllOrders |
Version | 0.2.8 |
Comparing to | |
See all releases |
Code changes from version 0.2.7 to 0.2.8
app/code/community/Asperience/DeleteAllOrders/controllers/IndexController.php
CHANGED
@@ -100,7 +100,9 @@ class Asperience_DeleteAllOrders_IndexController extends Mage_Adminhtml_Sales_Or
|
|
100 |
//Additionnal code if lack of integrity constraints
|
101 |
if ($orderToDelete || !$orderLoaded) {
|
102 |
// Delete grid linked invoices if not deleted by constraints
|
103 |
-
|
|
|
|
|
104 |
->addFieldToFilter('order_id', $orderId);
|
105 |
foreach ($invoices as $invoice) {
|
106 |
$invoicesGridDelete[] = $invoice->getIncrementId();
|
@@ -110,7 +112,7 @@ class Asperience_DeleteAllOrders_IndexController extends Mage_Adminhtml_Sales_Or
|
|
110 |
}
|
111 |
|
112 |
// Delete grid linked shipments if not deleted by constraints
|
113 |
-
$shipments = Mage::getModel('sales/
|
114 |
->addFieldToFilter('order_id', $orderId);
|
115 |
foreach ($shipments as $shipment) {
|
116 |
$shipmentsGridDelete[] = $shipment->getIncrementId();
|
100 |
//Additionnal code if lack of integrity constraints
|
101 |
if ($orderToDelete || !$orderLoaded) {
|
102 |
// Delete grid linked invoices if not deleted by constraints
|
103 |
+
Mage::log("TEST");
|
104 |
+
Mage::log(Mage::getModel('sales/order_invoice_grid_collection'));
|
105 |
+
$invoices = Mage::getModel('sales/order_invoice_grid_collection')
|
106 |
->addFieldToFilter('order_id', $orderId);
|
107 |
foreach ($invoices as $invoice) {
|
108 |
$invoicesGridDelete[] = $invoice->getIncrementId();
|
112 |
}
|
113 |
|
114 |
// Delete grid linked shipments if not deleted by constraints
|
115 |
+
$shipments = Mage::getModel('sales/order_shipment_grid_collection')
|
116 |
->addFieldToFilter('order_id', $orderId);
|
117 |
foreach ($shipments as $shipment) {
|
118 |
$shipmentsGridDelete[] = $shipment->getIncrementId();
|
app/code/community/Asperience/DeleteAllOrders/etc/config.xml
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
<config>
|
11 |
<modules>
|
12 |
<Asperience_DeleteAllOrders>
|
13 |
-
<version>0.2.
|
14 |
</Asperience_DeleteAllOrders>
|
15 |
</modules>
|
16 |
|
10 |
<config>
|
11 |
<modules>
|
12 |
<Asperience_DeleteAllOrders>
|
13 |
+
<version>0.2.8</version>
|
14 |
</Asperience_DeleteAllOrders>
|
15 |
</modules>
|
16 |
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Asperience_DeleteAllOrders</name>
|
4 |
-
<version>0.2.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
|
7 |
<channel>community</channel>
|
@@ -16,8 +16,8 @@ This module is developed by ASPerience, french company. 
|
|
16 |
<notes>If you have ideas for improvements or find bugs, please send them to Jean-Sébastien Hederer at contact@asperience.fr, with ASPerience_DeleteAllOrders as part of the subject line.</notes>
|
17 |
<authors><author><name>Jean-Sébastien Hederer</name><user>auto-converted</user><email>hedererjs@asperience.fr</email></author></authors>
|
18 |
<date>2014-12-04</date>
|
19 |
-
<time>
|
20 |
-
<contents><target name="magecommunity"><dir name="Asperience"><dir name="DeleteAllOrders"><dir name="Helper"><file name="Data.php" hash="99d64355c5282368f45f4066fd9d6f36"/></dir><dir name="Model"><dir name="Resource"><file name="Setup.php" hash="003c4441446ceee8fc7211efa0f8d0d0"/></dir><file name="Observer.php" hash="4fef7d309009f4376d4dffe0daf43f6a"/><file name="Order.php" hash="e3b0f70842ae828a8e5d3ee9949a5517"/><file name="Status.php" hash="fbd9c124ffaf85765e4fa9a96fe0e3bc"/></dir><dir name="controllers"><file name="IndexController.php" hash="
|
21 |
<compatible/>
|
22 |
-
<dependencies><required><package><name>Asperience_Notificationmanager</name><channel>community</channel><min>0.1.
|
23 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Asperience_DeleteAllOrders</name>
|
4 |
+
<version>0.2.8</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
|
7 |
<channel>community</channel>
|
16 |
<notes>If you have ideas for improvements or find bugs, please send them to Jean-Sébastien Hederer at contact@asperience.fr, with ASPerience_DeleteAllOrders as part of the subject line.</notes>
|
17 |
<authors><author><name>Jean-Sébastien Hederer</name><user>auto-converted</user><email>hedererjs@asperience.fr</email></author></authors>
|
18 |
<date>2014-12-04</date>
|
19 |
+
<time>19:42:25</time>
|
20 |
+
<contents><target name="magecommunity"><dir name="Asperience"><dir name="DeleteAllOrders"><dir name="Helper"><file name="Data.php" hash="99d64355c5282368f45f4066fd9d6f36"/></dir><dir name="Model"><dir name="Resource"><file name="Setup.php" hash="003c4441446ceee8fc7211efa0f8d0d0"/></dir><file name="Observer.php" hash="4fef7d309009f4376d4dffe0daf43f6a"/><file name="Order.php" hash="e3b0f70842ae828a8e5d3ee9949a5517"/><file name="Status.php" hash="fbd9c124ffaf85765e4fa9a96fe0e3bc"/></dir><dir name="controllers"><file name="IndexController.php" hash="80699f8526b886d6a46219d316358592"/></dir><dir name="etc"><file name="config.xml" hash="31051566d5d4fe2072965391d0b61de8"/><file name="system.xml" hash="a6ffdfefc94437bd6bf45453549aa389"/></dir><dir name="sql"><dir name="asperience_deleteallorders_setup"><file name="mysql4-install-0.2.4.php" hash="18d2c7b4e5f37be0654b3eae5756647a"/><file name="mysql4-upgrade-0.2.3-0.2.4.php" hash="4749e0b8c0f0d5d0ebb59421c31483c9"/></dir></dir></dir></dir></target><target name="magelocale"><dir name="de_DE"><file name="Asperience_DeleteAllOrders.csv" hash="3b17c8b23f90a9ade272559da0bc3ce0"/></dir><dir name="en_US"><file name="Asperience_DeleteAllOrders.csv" hash="9529fa6e4e87db30bca48ce104cb0d05"/></dir><dir name="fr_FR"><file name="Asperience_DeleteAllOrders.csv" hash="25f0bf507116918d1862ce5a18035a15"/></dir></target><target name="mageetc"><dir name="modules"><file name="Asperience_DeleteAllOrders.xml" hash="564d484d06362fee6d4f0b42660bfa85"/></dir></target></contents>
|
21 |
<compatible/>
|
22 |
+
<dependencies><required><package><name>Asperience_Notificationmanager</name><channel>community</channel><min>0.1.0</min><max></max></package></required></dependencies>
|
23 |
</package>
|