Version Notes
Fixed bugs :
- Compilation fixed
- Wording in the configuration panel
Download this release
Release Info
Developer | Magento Core Team |
Extension | Wyomind_RealInventory |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
app/code/community/Wyomind/Realinventory/Block/Renderer/Qty.php
CHANGED
@@ -1,14 +1,18 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class
|
4 |
|
5 |
public function render(Varien_Object $row) {
|
6 |
|
7 |
$stock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($row->getId());
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
|
|
|
|
|
|
|
|
12 |
}
|
13 |
|
14 |
}
|
1 |
<?php
|
2 |
|
3 |
+
class Wyomind_Realinventory_Block_Renderer_Qty extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract {
|
4 |
|
5 |
public function render(Varien_Object $row) {
|
6 |
|
7 |
$stock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($row->getId());
|
8 |
+
$qty= round($stock->getReservedQty());
|
9 |
+
if(!$qty) return "-";
|
10 |
+
if (!$stock->getIsQtyDecimal())
|
11 |
+
return "<b style='color:red;'>".$qty.'</b>';
|
12 |
+
|
13 |
+
return "<b style='color:red;'>". $stock->getReservedQty().'</b>';
|
14 |
+
|
15 |
+
|
16 |
}
|
17 |
|
18 |
}
|
app/code/community/Wyomind/Realinventory/Model/Observer.php
CHANGED
@@ -19,7 +19,7 @@ class Wyomind_Realinventory_Model_Observer {
|
|
19 |
"align" => "center",
|
20 |
"filter" => false,
|
21 |
"sortable" => true,
|
22 |
-
"renderer" => "
|
23 |
), "qty");
|
24 |
}
|
25 |
|
19 |
"align" => "center",
|
20 |
"filter" => false,
|
21 |
"sortable" => true,
|
22 |
+
"renderer" => "Wyomind_Realinventory_Block_Renderer_Qty",
|
23 |
), "qty");
|
24 |
}
|
25 |
|
app/code/community/Wyomind/Realinventory/etc/config.xml
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
<config>
|
5 |
<modules>
|
6 |
<Wyomind_Realinventory>
|
7 |
-
<version>1.0.
|
8 |
</Wyomind_Realinventory>
|
9 |
</modules>
|
10 |
<default>
|
4 |
<config>
|
5 |
<modules>
|
6 |
<Wyomind_Realinventory>
|
7 |
+
<version>1.0.1</version>
|
8 |
</Wyomind_Realinventory>
|
9 |
</modules>
|
10 |
<default>
|
app/code/community/Wyomind/Realinventory/etc/system.xml
CHANGED
@@ -27,7 +27,7 @@
|
|
27 |
<show_in_store>1</show_in_store>
|
28 |
<fields>
|
29 |
<grid translate="label comment">
|
30 |
-
<label>
|
31 |
<comment>
|
32 |
<![CDATA[ <span class="notice"> Default value : `Mage_Adminhtml_Block_Product_Grid`</span>]]>
|
33 |
</comment>
|
27 |
<show_in_store>1</show_in_store>
|
28 |
<fields>
|
29 |
<grid translate="label comment">
|
30 |
+
<label>Product grid to display </label>
|
31 |
<comment>
|
32 |
<![CDATA[ <span class="notice"> Default value : `Mage_Adminhtml_Block_Product_Grid`</span>]]>
|
33 |
</comment>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Wyomind_RealInventory</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license>GPL</license>
|
7 |
<channel>community</channel>
|
@@ -11,11 +11,13 @@
|
|
11 |
+ Keep your Magento inventory synchronized with your real inventory
|
12 |
+ See in one glance which products must be shipped
|
13 |
+ Can be used with any tiers extension already installed that overrides the default products grid such as "Enhanced Admin Product Grid"</description>
|
14 |
-
<notes>
|
|
|
|
|
15 |
<authors><author><name>Wyomind</name><user>auto-converted</user><email>contact@wyomind.com</email></author></authors>
|
16 |
-
<date>2013-03-
|
17 |
-
<time>
|
18 |
-
<contents><target name="magecommunity"><dir name="Wyomind"><dir name="Realinventory"><dir name="Block"><dir name="Renderer"><file name="Qty.php" hash="
|
19 |
<compatible/>
|
20 |
<dependencies/>
|
21 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Wyomind_RealInventory</name>
|
4 |
+
<version>1.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>GPL</license>
|
7 |
<channel>community</channel>
|
11 |
+ Keep your Magento inventory synchronized with your real inventory
|
12 |
+ See in one glance which products must be shipped
|
13 |
+ Can be used with any tiers extension already installed that overrides the default products grid such as "Enhanced Admin Product Grid"</description>
|
14 |
+
<notes>Fixed bugs : 
|
15 |
+
- Compilation fixed 
|
16 |
+
- Wording in the configuration panel</notes>
|
17 |
<authors><author><name>Wyomind</name><user>auto-converted</user><email>contact@wyomind.com</email></author></authors>
|
18 |
+
<date>2013-03-14</date>
|
19 |
+
<time>07:41:01</time>
|
20 |
+
<contents><target name="magecommunity"><dir name="Wyomind"><dir name="Realinventory"><dir name="Block"><dir name="Renderer"><file name="Qty.php" hash="22af248287d79ec365023cd1ca7ab9a8"/></dir></dir><dir name="Helper"><file name="Data.php" hash="ad19841c1add221eed126808a17a080d"/></dir><dir name="Model"><file name="Observer.php" hash="02a969a3abcac088eeb83f6125a004df"/></dir><dir name="controllers"><file name="LicenseController.php" hash="831a4b2ca0d4404f74fdb210eea6fac8"/></dir><dir name="etc"><file name="config.xml" hash="aac5bae6191d247fd64af3adb4d1cf5e"/><file name="system.xml" hash="0508fe955d892fe459b14aa0e278efb8"/></dir><dir name="sql"><dir name="realinventory_setup"><file name="mysql4-install-1.0.0.php" hash="281ce389c4960100c21039539d601c60"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Wyomind_Realinventory.xml" hash="a55d4da5dc0000c556e72e4e648f26b2"/></dir></target></contents>
|
21 |
<compatible/>
|
22 |
<dependencies/>
|
23 |
</package>
|