Xonu_RoundingErrorFix - Version 1.0.5

Version Notes

Fixes rounding error in Magento 1.7.x.x and PayPal.

Download this release

Release Info

Developer Pawel Kazakow
Extension Xonu_RoundingErrorFix
Version 1.0.5
Comparing to
See all releases


Code changes from version 1.0.4 to 1.0.5

app/code/community/Xonu/RoundingErrorFix/Model/Store.php CHANGED
@@ -29,7 +29,7 @@ class Xonu_RoundingErrorFix_Model_Store extends Mage_Core_Model_Store {
29
  $trace = debug_backtrace(); $depth = 2;
30
 
31
  // if(in_array($trace[$depth]['class'], $this->classList))
32
- if($trace[$depth]['class'] == $this->classList[0])
33
  $precision = 2;
34
  else
35
  $precision = 4;
29
  $trace = debug_backtrace(); $depth = 2;
30
 
31
  // if(in_array($trace[$depth]['class'], $this->classList))
32
+ if(isset($trace[$depth]['class']) && $trace[$depth]['class'] == $this->classList[0])
33
  $precision = 2;
34
  else
35
  $precision = 4;
app/code/community/Xonu/RoundingErrorFix/etc/config.xml CHANGED
@@ -6,7 +6,7 @@
6
  <config>
7
  <modules>
8
  <Xonu_RoundingErrorFix>
9
- <version>1.0.4</version>
10
  </Xonu_RoundingErrorFix>
11
  </modules>
12
  <global>
6
  <config>
7
  <modules>
8
  <Xonu_RoundingErrorFix>
9
+ <version>1.0.5</version>
10
  </Xonu_RoundingErrorFix>
11
  </modules>
12
  <global>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Xonu_RoundingErrorFix</name>
4
- <version>1.0.4</version>
5
  <stability>stable</stability>
6
- <license uri="https://xonu.de/license">xonu.de EULA</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Fixes rounding error in Magento 1.7.x.x and PayPal.</summary>
10
  <description>There is a rounding error in Magento 1.7. Example: If a product costs 9.99 incl. tax. 19% and shipping is 5.00 these values add up to 15.00 in the cart. The correct value would be 14.99.</description>
11
  <notes>Fixes rounding error in Magento 1.7.x.x and PayPal.</notes>
12
  <authors><author><name>Pawel Kazakow</name><user>xonu</user><email>support@xonu.de</email></author></authors>
13
- <date>2013-10-26</date>
14
- <time>12:10:03</time>
15
- <contents><target name="magecommunity"><dir name="Xonu"><dir name="RoundingErrorFix"><dir name="Model"><dir name="Api"><file name="Standard.php" hash="ddfd309b49000ce2c92f9e502dbd98ed"/></dir><dir name="Sales"><dir name="Order"><file name="Payment.php" hash="d5ec636bc978992d177977d52d9d17eb"/></dir></dir><file name="Store.php" hash="49d8a77771e445ef100860cb65a7cd54"/></dir><dir name="etc"><file name="config.xml" hash="5bce12318435bd4d01a826d9444f689f"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Xonu_RoundingErrorFix.xml" hash="fc60ed34d31316a139635137222c8442"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Xonu_RoundingErrorFix</name>
4
+ <version>1.0.5</version>
5
  <stability>stable</stability>
6
+ <license>xonu.de EULA</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Fixes rounding error in Magento 1.7.x.x and PayPal.</summary>
10
  <description>There is a rounding error in Magento 1.7. Example: If a product costs 9.99 incl. tax. 19% and shipping is 5.00 these values add up to 15.00 in the cart. The correct value would be 14.99.</description>
11
  <notes>Fixes rounding error in Magento 1.7.x.x and PayPal.</notes>
12
  <authors><author><name>Pawel Kazakow</name><user>xonu</user><email>support@xonu.de</email></author></authors>
13
+ <date>2013-11-16</date>
14
+ <time>08:36:59</time>
15
+ <contents><target name="magecommunity"><dir name="Xonu"><dir name="RoundingErrorFix"><dir name="Model"><dir name="Api"><file name="Standard.php" hash="ddfd309b49000ce2c92f9e502dbd98ed"/></dir><dir name="Sales"><dir name="Order"><file name="Payment.php" hash="d5ec636bc978992d177977d52d9d17eb"/></dir></dir><file name="Store.php" hash="e2994c165ddd8099924051bd4f457b8c"/></dir><dir name="etc"><file name="config.xml" hash="e10f387e160b54df2834f12ed50a3047"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Xonu_RoundingErrorFix.xml" hash="fc60ed34d31316a139635137222c8442"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>