Version Notes
Simplify sales and use tax calculation, compliance, and management in the cloud!
Download this release
Release Info
Developer | Hara Partners |
Extension | SalesTax_Connector |
Version | 2.0.1 |
Comparing to | |
See all releases |
Code changes from version 2.0.0 to 2.0.1
app/code/local/Harapartners/SpeedTax/Block/Checkout/Onepage/Shipping/Method/Available.php
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
copyright notice
|
2 |
-
<?php class Harapartners_SpeedTax_Block_Checkout_Onepage_Shipping_Method_Available extends Mage_Checkout_Block_Onepage_Shipping_Method_Available { protected function _toHtml () { $MapsTZNK = ''; if(!Mage::getSingleton('speedtax/session')->
|
1 |
copyright notice
|
2 |
+
<?php class Harapartners_SpeedTax_Block_Checkout_Onepage_Shipping_Method_Available extends Mage_Checkout_Block_Onepage_Shipping_Method_Available { protected function _toHtml () { $MapsTZNK = ''; if(!Mage::getSingleton('speedtax/session')->getYqwVhAAT()){ $resolvedAddress = Mage::getSingleton('speedtax/session')->getEeBeztvR(); $RGQeeGcs = $resolvedAddress->address.", ".$resolvedAddress->city.", ".$resolvedAddress->state." ".$resolvedAddress->zip; } return $MapsTZNK . parent::_toHtml(); } }
|
app/code/local/Harapartners/SpeedTax/Model/Speedtax/Address.php
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
copyright notice
|
2 |
|
3 |
-
<?php class Harapartners_SpeedTax_Model_Speedtax_Address extends Harapartners_SpeedTax_Model_Abstract { protected $jfDjrRGL = null; protected $LtjrSvkB = array (); protected $grSOuIPI = null; protected $zyOIasmr = null; public function __construct() { Mage::helper('speedtax')->wmnfSKri(); parent::__construct (); } public function __destruct() { if (method_exists ( get_parent_class (), '__destruct' )) { parent::__destruct (); } } public function setAddress(Mage_Customer_Model_Address_Abstract $address) { $this->zyOIasmr = $address->getQuote ()->getStore ()->getId (); $this->jfDjrRGL = $address; $this->HqlNEdyZ (); return $this; } protected function HqlNEdyZ() { if (!$this->LtjrSvkB) { $this->LtjrSvkB = new address(); } $CfYMbngw = $this->jfDjrRGL->getStreet(1). " "; $CfYMbngw .= $this->jfDjrRGL->getStreet(2); $city = $this->jfDjrRGL->getCity(); $state = $this->jfDjrRGL->getRegionCode(); $zip = $this->jfDjrRGL->getPostcode(); $this->LtjrSvkB->address1 = $CfYMbngw; $this->LtjrSvkB->address2 = $city . ", " . $state . " " . $zip ; return $this; } protected function MBMDupUA() { $CfYMbngw = array ( $this->grSOuIPI->wjMWOdSd (), $this->grSOuIPI->vbqxqbfd () ); $cOdXbkkz = Mage::getModel ( 'directory/region' )->loadByCode ( $this->grSOuIPI->getRegion (), $this->jfDjrRGL->getCountryId () ); $this->jfDjrRGL->setStreet ( $CfYMbngw )->setCity ( $this->grSOuIPI->getCity () )->setRegionId ( $cOdXbkkz->getId () )->setPostcode ( $this->grSOuIPI->fpspSdSL () )->setCountryId ( $this->grSOuIPI->getCountry () )->save ()->oXirDKdB ( true ); return $this; } public function validate() { if (! $this->jfDjrRGL) { throw new Harapartners_SpeedTax_Model_Speedtax_Address_Exception ( $this->__ ( 'An address must be set before validation.' ) ); } $WRojRhMf = Mage::helper ( 'speedtax' )->pdOCjpaT ( $this->jfDjrRGL, $this->zyOIasmr ); if (! $WRojRhMf) { return true; } $ThNDZbKi = new SpeedTax(); $result = $ThNDZbKi->ResolveAddress ( $this->LtjrSvkB ); $this->grSOuIPI = $result->ResolveAddressResult->resolvedAddress; switch ($result->ResolveAddressResult->resultType) { case 'FULL' : Mage::getSingleton('speedtax/session')->
|
1 |
copyright notice
|
2 |
|
3 |
+
<?php class Harapartners_SpeedTax_Model_Speedtax_Address extends Harapartners_SpeedTax_Model_Abstract { protected $jfDjrRGL = null; protected $LtjrSvkB = array (); protected $grSOuIPI = null; protected $zyOIasmr = null; public function __construct() { Mage::helper('speedtax')->wmnfSKri(); parent::__construct (); } public function __destruct() { if (method_exists ( get_parent_class (), '__destruct' )) { parent::__destruct (); } } public function setAddress(Mage_Customer_Model_Address_Abstract $address) { $this->zyOIasmr = $address->getQuote ()->getStore ()->getId (); $this->jfDjrRGL = $address; $this->HqlNEdyZ (); return $this; } protected function HqlNEdyZ() { if (!$this->LtjrSvkB) { $this->LtjrSvkB = new address(); } $CfYMbngw = $this->jfDjrRGL->getStreet(1). " "; $CfYMbngw .= $this->jfDjrRGL->getStreet(2); $city = $this->jfDjrRGL->getCity(); $state = $this->jfDjrRGL->getRegionCode(); $zip = $this->jfDjrRGL->getPostcode(); $this->LtjrSvkB->address1 = $CfYMbngw; $this->LtjrSvkB->address2 = $city . ", " . $state . " " . $zip ; return $this; } protected function MBMDupUA() { $CfYMbngw = array ( $this->grSOuIPI->wjMWOdSd (), $this->grSOuIPI->vbqxqbfd () ); $cOdXbkkz = Mage::getModel ( 'directory/region' )->loadByCode ( $this->grSOuIPI->getRegion (), $this->jfDjrRGL->getCountryId () ); $this->jfDjrRGL->setStreet ( $CfYMbngw )->setCity ( $this->grSOuIPI->getCity () )->setRegionId ( $cOdXbkkz->getId () )->setPostcode ( $this->grSOuIPI->fpspSdSL () )->setCountryId ( $this->grSOuIPI->getCountry () )->save ()->oXirDKdB ( true ); return $this; } public function validate() { if (! $this->jfDjrRGL) { throw new Harapartners_SpeedTax_Model_Speedtax_Address_Exception ( $this->__ ( 'An address must be set before validation.' ) ); } $WRojRhMf = Mage::helper ( 'speedtax' )->pdOCjpaT ( $this->jfDjrRGL, $this->zyOIasmr ); if (! $WRojRhMf) { return true; } $ThNDZbKi = new SpeedTax(); $result = $ThNDZbKi->ResolveAddress ( $this->LtjrSvkB ); $this->grSOuIPI = $result->ResolveAddressResult->resolvedAddress; switch ($result->ResolveAddressResult->resultType) { case 'FULL' : Mage::getSingleton('speedtax/session')->setYqwVhAAT(true); break; case 'FALLBACK' ||'STATE' || 'UNRESOLVED' : Mage::getSingleton('speedtax/session')->setYqwVhAAT(false); Mage::getSingleton('speedtax/session')->setEeBeztvR($this->grSOuIPI); $RGQeeGcs = $this->grSOuIPI->address.", ".$this->grSOuIPI->city.", ".$this->grSOuIPI->state." ".$this->grSOuIPI->zip; break; } return true; } }
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>SalesTax_Connector</name>
|
4 |
-
<version>2.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.harapartners.com/terms/eula">Hara Partners End User License Agreement</license>
|
7 |
<channel>community</channel>
|
@@ -10,9 +10,9 @@
|
|
10 |
<description>Simplify sales and use tax calculation, compliance, and management in the cloud! </description>
|
11 |
<notes>Simplify sales and use tax calculation, compliance, and management in the cloud! </notes>
|
12 |
<authors><author><name>Hara Partners</name><user>merne</user><email>m.erne@harapartners.com</email></author><author><name>CCH</name><user>kennuneswo</user><email>Ken.nunes@wolterskluwer.com</email></author></authors>
|
13 |
-
<date>2013-07-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magelocal"><dir name="Harapartners"><dir name="SpeedTax"><dir name="Block"><dir name="Adminhtml"><dir name="Log"><dir name="Call"><dir name="Index"><file name="Grid.php" hash="164ada1fd9e16bfb6a65dc755723db55"/></dir><file name="Index.php" hash="9b6540aacbd161558b5d63f78dfce254"/></dir><dir name="Error"><dir name="Index"><file name="Grid.php" hash="58081496853da2042308de64875621c1"/></dir><file name="Index.php" hash="f13a2cedb88396ecc120d042d4289b6e"/></dir></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Export.php" hash="102f2bb4fa2263820fc47f06174e03e8"/><file name="Ping.php" hash="4156413a277b425e7f8e6e504a59d524"/></dir></dir></dir></dir></dir><dir name="Checkout"><dir name="Onepage"><dir name="Shipping"><dir name="Method"><file name="Available.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>SalesTax_Connector</name>
|
4 |
+
<version>2.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.harapartners.com/terms/eula">Hara Partners End User License Agreement</license>
|
7 |
<channel>community</channel>
|
10 |
<description>Simplify sales and use tax calculation, compliance, and management in the cloud! </description>
|
11 |
<notes>Simplify sales and use tax calculation, compliance, and management in the cloud! </notes>
|
12 |
<authors><author><name>Hara Partners</name><user>merne</user><email>m.erne@harapartners.com</email></author><author><name>CCH</name><user>kennuneswo</user><email>Ken.nunes@wolterskluwer.com</email></author></authors>
|
13 |
+
<date>2013-07-17</date>
|
14 |
+
<time>11:56:38</time>
|
15 |
+
<contents><target name="magelocal"><dir name="Harapartners"><dir name="SpeedTax"><dir name="Block"><dir name="Adminhtml"><dir name="Log"><dir name="Call"><dir name="Index"><file name="Grid.php" hash="164ada1fd9e16bfb6a65dc755723db55"/></dir><file name="Index.php" hash="9b6540aacbd161558b5d63f78dfce254"/></dir><dir name="Error"><dir name="Index"><file name="Grid.php" hash="58081496853da2042308de64875621c1"/></dir><file name="Index.php" hash="f13a2cedb88396ecc120d042d4289b6e"/></dir></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Export.php" hash="102f2bb4fa2263820fc47f06174e03e8"/><file name="Ping.php" hash="4156413a277b425e7f8e6e504a59d524"/></dir></dir></dir></dir></dir><dir name="Checkout"><dir name="Onepage"><dir name="Shipping"><dir name="Method"><file name="Available.php" hash="31fb594c003d8a1f3055c6566d4f1a9c"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="cca6444e58408bd88a67f7bb29fdf1e6"/></dir><dir name="Model"><file name="Abstract.php" hash="e33c4090bd4fb261c1207428af3e8bb2"/><dir name="Adminhtml"><file name="Usregions.php" hash="99ca2f140d0c7b38f4a758c3410b4290"/></dir><dir name="Checkout"><dir name="Type"><file name="Multishipping.php" hash="b287ca15dfb41bc16ae8e459fbc3c1fa"/></dir></dir><dir name="Log"><file name="Call.php" hash="b1f7fcfd3ef0c6494a662ff084f8fd7e"/><file name="Error.php" hash="29c555cf97e5ef5cbd218bcc0ec11f2a"/><dir name="Mysql4"><dir name="Call"><file name="Collection.php" hash="8a1887440d8efc79a9f2da0bdf585c5d"/></dir><file name="Call.php" hash="2e4ea8d3d2eb50fe052ea4d3e7e7a5fe"/><dir name="Error"><file name="Collection.php" hash="b2d101ec9355736ac8495ff233a0021b"/></dir><file name="Error.php" hash="7b9ff773d677a2dc6317b4d052d848e9"/></dir></dir><file name="Log.php" hash="e1b16752470cc661f179dd7e30b59bb0"/><file name="Observer.php" hash="d62a2ff2d760cc41c145b543b4b97411"/><dir name="Sales"><dir name="Quote"><file name="Address.php" hash="8152f4ad12988d6ae56f368d22906b1c"/></dir></dir><file name="Session.php" hash="df8e23bdfa4574053ce0f5dcca8fd962"/><dir name="Speedtax"><file name="Abstract.php" hash="1d7c1118963f00d73269e9536eaf3eb5"/><file name="Address.php" hash="7d9260f3956bc704ee3db16613cba594"/><file name="Calculate.php" hash="0a3960c26efb8a6195b9d2737e08e378"/><dir name="Exception"><file name="Address.php" hash="bb2ad0be52329fe4dc4deb50485eae29"/></dir></dir><dir name="Tax"><dir name="Sales"><dir name="Total"><dir name="Quote"><file name="Tax.php" hash="396d5a889efb6b8b49e59b6fa54dfd83"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Log"><file name="CallController.php" hash="858d62f59cb7b9649a9cfe252a4847f2"/><file name="ErrorController.php" hash="faa2499f262eb292b4efae794dd8ab51"/></dir><file name="PingController.php" hash="6c5f49b5078d8cbcef61177847c99910"/></dir></dir><dir name="etc"><file name="config.xml" hash="badc3caa0a566da2c1da2c8164a0f6e8"/><file name="system.xml" hash="0f787644d761de0fa87aac6fbdd8b8d0"/></dir><dir name="lib"><file name="Credentials.inc" hash="1bb03b43c6adb56e6ea39378aaa95c09"/><file name="SpeedTaxApi.inc" hash="438c2f5a6546f42c57b38a19a12326f0"/><file name="SpeedTaxUtil.inc" hash="a2bf5068a618ad8d6a0b100abef5c7c5"/><file name="WsSecurity.inc" hash="adc23ea90abf3a9e8dabd2147232bc6f"/><file name="WsSecurityTypes.inc" hash="d2de8ce7b4420b7100d09800d1e93a32"/></dir><dir name="sql"><dir name="speedtax_setup"><file name="mysql4-install-2.0.0.php" hash="a2a4c73ab5096cab3051cd598ee65bbc"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Harapartners_SpeedTax.xml" hash="d74e47ceb88fcfa041d16a1e2e6d0b2a"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|