Multibyte_VATFix - Version 1.0.1

Version Notes

nothing

Download this release

Release Info

Developer Roman Hutterer
Extension Multibyte_VATFix
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

app/code/local/Multibyte/VATFix/Helper/Data.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package Multibyte_VatFix
6
  * @author Roman Hutterer <info@multibyte.at>
7
  */
8
- class Multiybte_VATFix_Helper_Data extends Mage_Customer_Helper_Data {
9
 
10
  const VAT_VALIDATION_WSDL_URL = 'http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl';
11
 
@@ -20,7 +20,18 @@ class Multiybte_VATFix_Helper_Data extends Mage_Customer_Helper_Data {
20
  public function checkVatNumber($countryCode, $vatNumber, $requesterCountryCode = '', $requesterVatNumber = '') {
21
  //@RHU take the VAT without the first two signs (which are the countrycode
22
  $vatNumber = substr(str_replace(' ', '', trim($vatNumber)), 2);
 
23
  return parent::checkVatNumber($countryCode, $vatNumber, $requesterCountryCode, $requesterVatNumber);
24
  }
25
 
 
 
 
 
 
 
 
 
 
 
26
  }
5
  * @package Multibyte_VatFix
6
  * @author Roman Hutterer <info@multibyte.at>
7
  */
8
+ class Multibyte_VATFix_Helper_Data extends Mage_Customer_Helper_Data {
9
 
10
  const VAT_VALIDATION_WSDL_URL = 'http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl';
11
 
20
  public function checkVatNumber($countryCode, $vatNumber, $requesterCountryCode = '', $requesterVatNumber = '') {
21
  //@RHU take the VAT without the first two signs (which are the countrycode
22
  $vatNumber = substr(str_replace(' ', '', trim($vatNumber)), 2);
23
+ Mage::log($vatNumber);
24
  return parent::checkVatNumber($countryCode, $vatNumber, $requesterCountryCode, $requesterVatNumber);
25
  }
26
 
27
+ /**
28
+ * Create SOAP client based on VAT validation service WSDL
29
+ *
30
+ * @param boolean $trace
31
+ * @return SoapClient
32
+ */
33
+ protected function _createVatNumberValidationSoapClient($trace = false) {
34
+ return new SoapClient(self::VAT_VALIDATION_WSDL_URL, array('trace' => $trace));
35
+ }
36
+
37
  }
app/code/local/Multibyte/VATFix/etc/config.xml CHANGED
@@ -1,17 +1,15 @@
1
  <?xml version="1.0"?>
2
-
3
  <config>
4
-
5
  <modules>
6
- <Multiybte_VATFix>
7
- <version>0.4.1</version>
8
- </Multiybte_VATFix>
9
  </modules>
10
  <global>
11
  <helpers>
12
  <customer>
13
  <rewrite>
14
- <data>Multiybte_VATFix_Helper_Data</data>
15
  </rewrite>
16
  </customer>
17
  </helpers>
1
  <?xml version="1.0"?>
 
2
  <config>
 
3
  <modules>
4
+ <Multibyte_VATFix>
5
+ <version>1.0.1</version>
6
+ </Multibyte_VATFix>
7
  </modules>
8
  <global>
9
  <helpers>
10
  <customer>
11
  <rewrite>
12
+ <data>Multibyte_VATFix_Helper_Data</data>
13
  </rewrite>
14
  </customer>
15
  </helpers>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Multibyte_VATFix</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
@@ -11,11 +11,11 @@
11
  <description>The VatFix extension for magento fixes the broken VAT check in Magento for European Companies which want to use the built-in feature of Customergroups based on valid VAT-number in Magento.&#xD;
12
  &#xD;
13
  With this extension the ability to change a Customers Usergroup bases on a valid VAT number is possible.</description>
14
- <notes>nothing special</notes>
15
  <authors><author><name>Roman Hutterer</name><user>roman204</user><email>info@multibyte.at</email></author></authors>
16
  <date>2013-07-13</date>
17
- <time>12:16:15</time>
18
- <contents><target name="magelocal"><dir name="Multibyte"><dir name="VATFix"><dir name="Helper"><file name="Data.php" hash="f4345e4bafd2ceda1a64576561eb84b2"/></dir><dir name="etc"><file name="config.xml" hash="44f5bf8ad74914d95266b00410c639b4"/></dir></dir></dir></target></contents>
19
  <compatible/>
20
  <dependencies><required><php><min>5.1.0</min><max>5.4.0</max></php></required></dependencies>
21
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Multibyte_VATFix</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
11
  <description>The VatFix extension for magento fixes the broken VAT check in Magento for European Companies which want to use the built-in feature of Customergroups based on valid VAT-number in Magento.&#xD;
12
  &#xD;
13
  With this extension the ability to change a Customers Usergroup bases on a valid VAT number is possible.</description>
14
+ <notes>nothing </notes>
15
  <authors><author><name>Roman Hutterer</name><user>roman204</user><email>info@multibyte.at</email></author></authors>
16
  <date>2013-07-13</date>
17
+ <time>12:45:55</time>
18
+ <contents><target name="magelocal"><dir name="Multibyte"><dir name="VATFix"><dir name="Helper"><file name="Data.php" hash="519b1b4b89d27601ece5c627e26d0298"/></dir><dir name="etc"><file name="config.xml" hash="51491786debcc981fcc6a88009beb840"/></dir></dir></dir></target></contents>
19
  <compatible/>
20
  <dependencies><required><php><min>5.1.0</min><max>5.4.0</max></php></required></dependencies>
21
  </package>