Wyomind_RealInventory - Version 1.0.1

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 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
- if (!$stock->getIsQtyDecimal())
9
- return round($stock->getReservedQty());
10
-
11
- return $stock->getReservedQty();
 
 
 
 
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" => "Wyomind_Realinventory_Block_Renderer_qty",
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.0</version>
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>Orders grid to display </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.0</version>
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&#xD;
12
  + See in one glance which products must be shipped&#xD;
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>First Release</notes>
 
 
15
  <authors><author><name>Wyomind</name><user>auto-converted</user><email>contact@wyomind.com</email></author></authors>
16
- <date>2013-03-13</date>
17
- <time>09:04:28</time>
18
- <contents><target name="magecommunity"><dir name="Wyomind"><dir name="Realinventory"><dir name="Block"><dir name="Renderer"><file name="Qty.php" hash="718c4f1ff654d06e820a1b27d3f041a5"/></dir></dir><dir name="Helper"><file name="Data.php" hash="ad19841c1add221eed126808a17a080d"/></dir><dir name="Model"><file name="Observer.php" hash="8811ee2ec4c4bfb300e9a63942fb9b3e"/></dir><dir name="controllers"><file name="LicenseController.php" hash="831a4b2ca0d4404f74fdb210eea6fac8"/></dir><dir name="etc"><file name="config.xml" hash="b516c4b95f67f7a713aedb7f76d3898e"/><file name="system.xml" hash="27d09f2467c37901a96a29de8dce5d06"/></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>
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&#xD;
12
  + See in one glance which products must be shipped&#xD;
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 : &#xD;
15
+ - Compilation fixed &#xD;
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>