MSP_CashOnDelivery - Version 1.2.3

Version Notes

Enjoy it ;)

Download this release

Release Info

Developer Riccardo Tempesta
Extension MSP_CashOnDelivery
Version 1.2.3
Comparing to
See all releases


Code changes from version 1.2.2 to 1.2.3

Files changed (33) hide show
  1. app/code/community/MSP/CashOnDelivery/Block/Admin/Rule.php +1 -1
  2. app/code/community/MSP/CashOnDelivery/Block/Admin/Rule/Edit.php +1 -1
  3. app/code/community/MSP/CashOnDelivery/Block/Admin/Rule/Edit/Form.php +1 -1
  4. app/code/community/MSP/CashOnDelivery/Block/Admin/Rule/Grid.php +1 -1
  5. app/code/community/MSP/CashOnDelivery/Block/Form.php +1 -1
  6. app/code/community/MSP/CashOnDelivery/Block/Sales/Order/Total.php +1 -1
  7. app/code/community/MSP/CashOnDelivery/CHANGELOG.txt +4 -1
  8. app/code/community/MSP/CashOnDelivery/Helper/Data.php +195 -192
  9. app/code/community/MSP/CashOnDelivery/Model/Adminhtml/System/Config/Source/Taxclass.php +1 -1
  10. app/code/community/MSP/CashOnDelivery/Model/Cashondelivery.php +1 -1
  11. app/code/community/MSP/CashOnDelivery/Model/Creditmemo/Tax.php +1 -1
  12. app/code/community/MSP/CashOnDelivery/Model/Creditmemo/Total.php +1 -1
  13. app/code/community/MSP/CashOnDelivery/Model/Foreign.php +1 -1
  14. app/code/community/MSP/CashOnDelivery/Model/Invoice/Total.php +1 -1
  15. app/code/community/MSP/CashOnDelivery/Model/Local.php +1 -1
  16. app/code/community/MSP/CashOnDelivery/Model/Mysql4/Foreign.php +1 -1
  17. app/code/community/MSP/CashOnDelivery/Model/Mysql4/Foreign/Collection.php +1 -1
  18. app/code/community/MSP/CashOnDelivery/Model/Mysql4/Local.php +1 -1
  19. app/code/community/MSP/CashOnDelivery/Model/Mysql4/Local/Collection.php +1 -1
  20. app/code/community/MSP/CashOnDelivery/Model/Order/Pdf/Total/Default.php +1 -1
  21. app/code/community/MSP/CashOnDelivery/Model/Order/Tax.php +1 -1
  22. app/code/community/MSP/CashOnDelivery/Model/Order/Total.php +1 -1
  23. app/code/community/MSP/CashOnDelivery/Model/Quote/Tax.php +1 -1
  24. app/code/community/MSP/CashOnDelivery/Model/Quote/Total.php +1 -1
  25. app/code/community/MSP/CashOnDelivery/controllers/Adminhtml/Cashondelivery/ForeignController.php +1 -1
  26. app/code/community/MSP/CashOnDelivery/controllers/Adminhtml/Cashondelivery/LocalController.php +1 -1
  27. app/code/community/MSP/CashOnDelivery/controllers/Adminhtml/CashondeliveryController.php +1 -1
  28. app/code/community/MSP/CashOnDelivery/etc/config.xml +2 -2
  29. app/code/community/MSP/CashOnDelivery/etc/system.xml +1 -1
  30. app/code/community/MSP/CashOnDelivery/sql/msp_cashondelivery_setup/mysql4-install-1.0.0.php +1 -1
  31. app/code/community/MSP/CashOnDelivery/sql/msp_cashondelivery_setup/mysql4-install-1.1.0.php +1 -1
  32. app/code/community/MSP/CashOnDelivery/sql/msp_cashondelivery_setup/mysql4-upgrade-1.0.0-1.1.0.php +1 -1
  33. package.xml +4 -4
app/code/community/MSP/CashOnDelivery/Block/Admin/Rule.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/community/MSP/CashOnDelivery/Block/Admin/Rule/Edit.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/community/MSP/CashOnDelivery/Block/Admin/Rule/Edit/Form.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/community/MSP/CashOnDelivery/Block/Admin/Rule/Grid.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/community/MSP/CashOnDelivery/Block/Form.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/community/MSP/CashOnDelivery/Block/Sales/Order/Total.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/community/MSP/CashOnDelivery/CHANGELOG.txt CHANGED
@@ -17,4 +17,7 @@ New features:
17
  Corrected recursion bug
18
 
19
  1.2.2
20
- Corrected backend COD display
 
 
 
17
  Corrected recursion bug
18
 
19
  1.2.2
20
+ Corrected backend COD display
21
+
22
+ 1.2.3
23
+ Corrected tax calculation error when are present multiple tax rates
app/code/community/MSP/CashOnDelivery/Helper/Data.php CHANGED
@@ -1,192 +1,195 @@
1
- <?php
2
- /**
3
- * IDEALIAGroup srl
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to info@idealiagroup.com so we can send you a copy immediately.
14
- *
15
- * @category MSP
16
- * @package MSP_CashOnDelivery
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- */
20
-
21
- class MSP_CashOnDelivery_Helper_Data extends Mage_Core_Helper_Abstract
22
- {
23
- const XML_PATH_GENERAL_ENABLED = 'msp_cashondelivery/general/enabled';
24
- const XML_PATH_GENERAL_CALC_INC_SHIP = 'payment/msp_cashondelivery/calc_including_shipping';
25
- const XML_PATH_STANDARD_FEE_LOCAL = 'payment/msp_cashondelivery/standard_fixed_fee_local';
26
- const XML_PATH_STANDARD_FEE_FOREIGN = 'payment/msp_cashondelivery/standard_fixed_fee_foreign';
27
- const XML_PATH_PRICE_INCLUDING_TAXES = 'payment/msp_cashondelivery/price_including_taxes';
28
- const XML_PATH_SHIPPING_COUNTRY_ID = 'shipping/origin/country_id';
29
- const XML_PATH_DESCRIPTION = 'payment/msp_cashondelivery/cod_description';
30
-
31
- const MSP_COD_LOCAL = 'local';
32
- const MSP_COD_FOREIGN = 'foreign';
33
-
34
- const XML_PATH_COD_TAX_CLASS = 'tax/classes/msp_cashondelivery_taxclass';
35
- const XML_PATH_COD_INCL_TAX = 'tax/calculation/msp_cashondelivery_includes_tax';
36
- const XML_PATH_COD_DISPLAY_MODE = 'tax/display/msp_cashondelivery';
37
- const XML_PATH_COD_TOTALROW_DISPLAY_MODE = 'tax/display/msp_cashondelivery_total';
38
-
39
- protected $_rate = null;
40
-
41
- protected function getCodPriceDisplayType($store = null)
42
- {
43
- return (int)Mage::getStoreConfig(self::XML_PATH_COD_DISPLAY_MODE, $store);
44
- }
45
- protected function getCodTotalrowDisplayType($store = null)
46
- {
47
- return (int)Mage::getStoreConfig(self::XML_PATH_COD_TOTALROW_DISPLAY_MODE, $store);
48
- }
49
-
50
- public function getCodPriceInclTax($store = null)
51
- {
52
- return (int)Mage::getStoreConfig(self::XML_PATH_COD_INCL_TAX, $store);
53
- }
54
-
55
- public function getCodTaxClassId($store = null)
56
- {
57
- return (int)Mage::getStoreConfig(self::XML_PATH_COD_TAX_CLASS, $store);
58
- }
59
-
60
- public function displayCodBothPrices($store = null)
61
- {
62
- return $this->getCodPriceDisplayType($store) == Mage_Tax_Model_Config::DISPLAY_TYPE_BOTH;
63
- }
64
-
65
- public function displayCodIncludingTax()
66
- {
67
- return $this->getCodPriceDisplayType() == Mage_Tax_Model_Config::DISPLAY_TYPE_INCLUDING_TAX;
68
- }
69
-
70
- public function displayCodTotalRowIncludingTax()
71
- {
72
- return (bool)$this->getCodTotalrowDisplayType();
73
- }
74
-
75
-
76
- /**
77
- * Check if personal catalog is enabled
78
- * @return boolean
79
- */
80
- public function getIsEnabled()
81
- {
82
- return (bool) Mage::getStoreConfig(self::XML_PATH_GENERAL_ENABLED);
83
- }
84
- public function isEnabled()
85
- {
86
- return $this->getIsEnabled();
87
- }
88
-
89
- /**
90
- * Check if must include shipping in subtotal calculation
91
- * @return boolean
92
- */
93
- public function getCalculateIncludingShipping()
94
- {
95
- return (bool) Mage::getStoreConfig(self::XML_PATH_GENERAL_CALC_INC_SHIP);
96
- }
97
-
98
- /**
99
- * Get currenct checkout/admin session
100
- *
101
- * @return Varien_Object
102
- */
103
- public function getSession()
104
- {
105
- if (Mage::app()->getStore()->isAdmin() || !Mage::app()->getStore()->getId() )
106
- return Mage::getSingleton('adminhtml/session_quote');
107
-
108
- return Mage::getSingleton('checkout/session');
109
- }
110
-
111
- /**
112
- * Get current quote
113
- *
114
- * @return Mage_Sales_Model_Quote
115
- */
116
- public function getQuote()
117
- {
118
- return $this->getSession()->getQuote();
119
- }
120
-
121
- public function getCodDescription($storeId = null) {
122
- return Mage::getStoreConfig(self::XML_PATH_DESCRIPTION, $storeId);
123
- }
124
-
125
- public function getZoneType() {
126
- $_quote = $this->getQuote();
127
- $_shippingAddress = $_quote->getShippingAddress();
128
- $_storeId = $_quote->getStoreId();
129
- return $_shippingAddress->getCountryId() == $this->getShippingCountryId($_storeId) ? self::MSP_COD_LOCAL : self::MSP_COD_FOREIGN;
130
- }
131
-
132
- public function getStandardFixedFee($storeId = null)
133
- {
134
- if ($this->getZoneType() == self::MSP_COD_LOCAL)
135
- return (float)Mage::getStoreConfig(self::XML_PATH_STANDARD_FEE_LOCAL, $storeId);
136
- else
137
- return (float)Mage::getStoreConfig(self::XML_PATH_STANDARD_FEE_FOREIGN, $storeId);
138
- }
139
-
140
- public function getShippingCountryId($storeId = null) {
141
- return Mage::getStoreConfig(self::XML_PATH_SHIPPING_COUNTRY_ID, $storeId);
142
- }
143
-
144
- public function currencyConvert($amount) {
145
- $baseCurrencyCode = Mage::app()->getStore()->getBaseCurrencyCode();
146
- $currentCurrencyCode = Mage::app()->getStore()->getCurrentCurrencyCode();
147
-
148
- return Mage::helper('directory')->currencyConvert($amount, $baseCurrencyCode, $currentCurrencyCode);
149
- }
150
-
151
- public function getRate() {
152
- if (true||!$this->_rate) {
153
- $address = $this->getQuote()->getShippingAddress();
154
-
155
- $store = $address->getQuote()->getStore();
156
- $custTaxClassId = $address->getQuote()->getCustomerTaxClassId();
157
- $taxCalculationModel = Mage::getSingleton('tax/calculation');
158
- /* @var $taxCalculationModel Mage_Tax_Model_Calculation */
159
- $request = $taxCalculationModel->getRateRequest($address, $address->getQuote()->getBillingAddress(), $custTaxClassId, $store);
160
- $codTaxClass = $this->getCodTaxClassId();
161
-
162
- $this->_rate = $taxCalculationModel->getRate($request->setProductClassId($codTaxClass));
163
- }
164
- return $this->_rate;
165
- }
166
-
167
- public function getAppliedRates() {
168
- $address = $this->getQuote()->getShippingAddress();
169
- $store = $address->getQuote()->getStore();
170
- $custTaxClassId = $address->getQuote()->getCustomerTaxClassId();
171
- $taxCalculationModel = Mage::getSingleton('tax/calculation');
172
- /* @var $taxCalculationModel Mage_Tax_Model_Calculation */
173
- $request = $taxCalculationModel->getRateRequest($address, $address->getQuote()->getBillingAddress(), $custTaxClassId, $store);
174
- return $taxCalculationModel->getAppliedRates($request);
175
- }
176
-
177
- public function excludeTax($amount) {
178
- $rate = $this->getRate();
179
- return $amount / (1+$rate/100);
180
- }
181
-
182
- public function includeTax($amount) {
183
- $rate = $this->getRate();
184
- return $amount * (1+$rate/100);
185
- }
186
-
187
- public function getTaxAmount($amountExclTax) {
188
- $rate = $this->getRate();
189
-
190
- return $amountExclTax * ($rate/100);
191
- }
192
- }
 
 
 
1
+ <?php
2
+ /**
3
+ * IDEALIAGroup srl
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to info@idealiagroup.com so we can send you a copy immediately.
14
+ *
15
+ * @category MSP
16
+ * @package MSP_CashOnDelivery
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+
21
+ class MSP_CashOnDelivery_Helper_Data extends Mage_Core_Helper_Abstract
22
+ {
23
+ const XML_PATH_GENERAL_ENABLED = 'msp_cashondelivery/general/enabled';
24
+ const XML_PATH_GENERAL_CALC_INC_SHIP = 'payment/msp_cashondelivery/calc_including_shipping';
25
+ const XML_PATH_STANDARD_FEE_LOCAL = 'payment/msp_cashondelivery/standard_fixed_fee_local';
26
+ const XML_PATH_STANDARD_FEE_FOREIGN = 'payment/msp_cashondelivery/standard_fixed_fee_foreign';
27
+ const XML_PATH_PRICE_INCLUDING_TAXES = 'payment/msp_cashondelivery/price_including_taxes';
28
+ const XML_PATH_SHIPPING_COUNTRY_ID = 'shipping/origin/country_id';
29
+ const XML_PATH_DESCRIPTION = 'payment/msp_cashondelivery/cod_description';
30
+
31
+ const MSP_COD_LOCAL = 'local';
32
+ const MSP_COD_FOREIGN = 'foreign';
33
+
34
+ const XML_PATH_COD_TAX_CLASS = 'tax/classes/msp_cashondelivery_taxclass';
35
+ const XML_PATH_COD_INCL_TAX = 'tax/calculation/msp_cashondelivery_includes_tax';
36
+ const XML_PATH_COD_DISPLAY_MODE = 'tax/display/msp_cashondelivery';
37
+ const XML_PATH_COD_TOTALROW_DISPLAY_MODE = 'tax/display/msp_cashondelivery_total';
38
+
39
+ protected $_rate = null;
40
+
41
+ protected function getCodPriceDisplayType($store = null)
42
+ {
43
+ return (int)Mage::getStoreConfig(self::XML_PATH_COD_DISPLAY_MODE, $store);
44
+ }
45
+ protected function getCodTotalrowDisplayType($store = null)
46
+ {
47
+ return (int)Mage::getStoreConfig(self::XML_PATH_COD_TOTALROW_DISPLAY_MODE, $store);
48
+ }
49
+
50
+ public function getCodPriceInclTax($store = null)
51
+ {
52
+ return (int)Mage::getStoreConfig(self::XML_PATH_COD_INCL_TAX, $store);
53
+ }
54
+
55
+ public function getCodTaxClassId($store = null)
56
+ {
57
+ return (int)Mage::getStoreConfig(self::XML_PATH_COD_TAX_CLASS, $store);
58
+ }
59
+
60
+ public function displayCodBothPrices($store = null)
61
+ {
62
+ return $this->getCodPriceDisplayType($store) == Mage_Tax_Model_Config::DISPLAY_TYPE_BOTH;
63
+ }
64
+
65
+ public function displayCodIncludingTax()
66
+ {
67
+ return $this->getCodPriceDisplayType() == Mage_Tax_Model_Config::DISPLAY_TYPE_INCLUDING_TAX;
68
+ }
69
+
70
+ public function displayCodTotalRowIncludingTax()
71
+ {
72
+ return (bool)$this->getCodTotalrowDisplayType();
73
+ }
74
+
75
+
76
+ /**
77
+ * Check if personal catalog is enabled
78
+ * @return boolean
79
+ */
80
+ public function getIsEnabled()
81
+ {
82
+ return (bool) Mage::getStoreConfig(self::XML_PATH_GENERAL_ENABLED);
83
+ }
84
+ public function isEnabled()
85
+ {
86
+ return $this->getIsEnabled();
87
+ }
88
+
89
+ /**
90
+ * Check if must include shipping in subtotal calculation
91
+ * @return boolean
92
+ */
93
+ public function getCalculateIncludingShipping()
94
+ {
95
+ return (bool) Mage::getStoreConfig(self::XML_PATH_GENERAL_CALC_INC_SHIP);
96
+ }
97
+
98
+ /**
99
+ * Get currenct checkout/admin session
100
+ *
101
+ * @return Varien_Object
102
+ */
103
+ public function getSession()
104
+ {
105
+ if (Mage::app()->getStore()->isAdmin() || !Mage::app()->getStore()->getId() )
106
+ return Mage::getSingleton('adminhtml/session_quote');
107
+
108
+ return Mage::getSingleton('checkout/session');
109
+ }
110
+
111
+ /**
112
+ * Get current quote
113
+ *
114
+ * @return Mage_Sales_Model_Quote
115
+ */
116
+ public function getQuote()
117
+ {
118
+ return $this->getSession()->getQuote();
119
+ }
120
+
121
+ public function getCodDescription($storeId = null) {
122
+ return Mage::getStoreConfig(self::XML_PATH_DESCRIPTION, $storeId);
123
+ }
124
+
125
+ public function getZoneType() {
126
+ $_quote = $this->getQuote();
127
+ $_shippingAddress = $_quote->getShippingAddress();
128
+ $_storeId = $_quote->getStoreId();
129
+ return $_shippingAddress->getCountryId() == $this->getShippingCountryId($_storeId) ? self::MSP_COD_LOCAL : self::MSP_COD_FOREIGN;
130
+ }
131
+
132
+ public function getStandardFixedFee($storeId = null)
133
+ {
134
+ if ($this->getZoneType() == self::MSP_COD_LOCAL)
135
+ return (float)Mage::getStoreConfig(self::XML_PATH_STANDARD_FEE_LOCAL, $storeId);
136
+ else
137
+ return (float)Mage::getStoreConfig(self::XML_PATH_STANDARD_FEE_FOREIGN, $storeId);
138
+ }
139
+
140
+ public function getShippingCountryId($storeId = null) {
141
+ return Mage::getStoreConfig(self::XML_PATH_SHIPPING_COUNTRY_ID, $storeId);
142
+ }
143
+
144
+ public function currencyConvert($amount) {
145
+ $baseCurrencyCode = Mage::app()->getStore()->getBaseCurrencyCode();
146
+ $currentCurrencyCode = Mage::app()->getStore()->getCurrentCurrencyCode();
147
+
148
+ return Mage::helper('directory')->currencyConvert($amount, $baseCurrencyCode, $currentCurrencyCode);
149
+ }
150
+
151
+ public function getRate() {
152
+ if (true||!$this->_rate) {
153
+ $address = $this->getQuote()->getShippingAddress();
154
+
155
+ $store = $address->getQuote()->getStore();
156
+ $custTaxClassId = $address->getQuote()->getCustomerTaxClassId();
157
+ $taxCalculationModel = Mage::getSingleton('tax/calculation');
158
+ /* @var $taxCalculationModel Mage_Tax_Model_Calculation */
159
+
160
+ $request = $taxCalculationModel->getRateRequest($address, $address->getQuote()->getBillingAddress(), $custTaxClassId, $store);
161
+ $codTaxClass = $this->getCodTaxClassId();
162
+
163
+ $this->_rate = $taxCalculationModel->getRate($request->setProductClassId($codTaxClass));
164
+ }
165
+ return $this->_rate;
166
+ }
167
+
168
+ public function getAppliedRates() {
169
+ $address = $this->getQuote()->getShippingAddress();
170
+ $store = $address->getQuote()->getStore();
171
+ $custTaxClassId = $address->getQuote()->getCustomerTaxClassId();
172
+ $taxCalculationModel = Mage::getSingleton('tax/calculation');
173
+ /* @var $taxCalculationModel Mage_Tax_Model_Calculation */
174
+ $request = $taxCalculationModel->getRateRequest($address, $address->getQuote()->getBillingAddress(), $custTaxClassId, $store);
175
+ $request->setProductClassId($this->getCodTaxClassId());
176
+
177
+ return $taxCalculationModel->getAppliedRates($request);
178
+ }
179
+
180
+ public function excludeTax($amount) {
181
+ $rate = $this->getRate();
182
+ return $amount / (1+$rate/100);
183
+ }
184
+
185
+ public function includeTax($amount) {
186
+ $rate = $this->getRate();
187
+ return $amount * (1+$rate/100);
188
+ }
189
+
190
+ public function getTaxAmount($amountExclTax) {
191
+ $rate = $this->getRate();
192
+
193
+ return $amountExclTax * ($rate/100);
194
+ }
195
+ }
app/code/community/MSP/CashOnDelivery/Model/Adminhtml/System/Config/Source/Taxclass.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/community/MSP/CashOnDelivery/Model/Cashondelivery.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/community/MSP/CashOnDelivery/Model/Creditmemo/Tax.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/community/MSP/CashOnDelivery/Model/Creditmemo/Total.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/community/MSP/CashOnDelivery/Model/Foreign.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/community/MSP/CashOnDelivery/Model/Invoice/Total.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/community/MSP/CashOnDelivery/Model/Local.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/community/MSP/CashOnDelivery/Model/Mysql4/Foreign.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/community/MSP/CashOnDelivery/Model/Mysql4/Foreign/Collection.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/community/MSP/CashOnDelivery/Model/Mysql4/Local.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/community/MSP/CashOnDelivery/Model/Mysql4/Local/Collection.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/community/MSP/CashOnDelivery/Model/Order/Pdf/Total/Default.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  class MSP_CashOnDelivery_Model_Order_Pdf_Total_Default extends Mage_Sales_Model_Order_Pdf_Total_Default
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  class MSP_CashOnDelivery_Model_Order_Pdf_Total_Default extends Mage_Sales_Model_Order_Pdf_Total_Default
app/code/community/MSP/CashOnDelivery/Model/Order/Tax.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/community/MSP/CashOnDelivery/Model/Order/Total.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/community/MSP/CashOnDelivery/Model/Quote/Tax.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/community/MSP/CashOnDelivery/Model/Quote/Total.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/community/MSP/CashOnDelivery/controllers/Adminhtml/Cashondelivery/ForeignController.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/community/MSP/CashOnDelivery/controllers/Adminhtml/Cashondelivery/LocalController.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/community/MSP/CashOnDelivery/controllers/Adminhtml/CashondeliveryController.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/community/MSP/CashOnDelivery/etc/config.xml CHANGED
@@ -15,14 +15,14 @@
15
  *
16
  * @category MSP
17
  * @package MSP_CashOnDelivery
18
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
19
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
  */
21
  -->
22
  <config>
23
  <modules>
24
  <MSP_CashOnDelivery>
25
- <version>1.2.2</version>
26
  </MSP_CashOnDelivery>
27
  </modules>
28
 
15
  *
16
  * @category MSP
17
  * @package MSP_CashOnDelivery
18
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
19
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
  */
21
  -->
22
  <config>
23
  <modules>
24
  <MSP_CashOnDelivery>
25
+ <version>1.2.3</version>
26
  </MSP_CashOnDelivery>
27
  </modules>
28
 
app/code/community/MSP/CashOnDelivery/etc/system.xml CHANGED
@@ -15,7 +15,7 @@
15
  *
16
  * @category MSP
17
  * @package MSP_CashOnDelivery
18
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
19
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
  */
21
  -->
15
  *
16
  * @category MSP
17
  * @package MSP_CashOnDelivery
18
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
19
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
  */
21
  -->
app/code/community/MSP/CashOnDelivery/sql/msp_cashondelivery_setup/mysql4-install-1.0.0.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category MSP
16
  * @package MSP_PersonalCatalog
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category MSP
16
  * @package MSP_PersonalCatalog
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/community/MSP/CashOnDelivery/sql/msp_cashondelivery_setup/mysql4-install-1.1.0.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category MSP
16
  * @package MSP_PersonalCatalog
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category MSP
16
  * @package MSP_PersonalCatalog
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/community/MSP/CashOnDelivery/sql/msp_cashondelivery_setup/mysql4-upgrade-1.0.0-1.1.0.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
- * @copyright Copyright (c) 2013 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category MSP
16
  * @package MSP_CashOnDelivery
17
+ * @copyright Copyright (c) 2014 IDEALIAGroup srl (http://www.idealiagroup.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>MSP_CashOnDelivery</name>
4
- <version>1.2.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>An easy to use module to add a fully configurable Cash On Delivery payment mode in your Magento store.</description>
11
  <notes>Enjoy it ;)</notes>
12
  <authors><author><name>Riccardo Tempesta</name><user>idealiagroup</user><email>tempesta@idealiagroup.com</email></author><author><name>Paolo Vecchiocattivi</name><user>idealiagroup</user><email>vecchiocattivi@idealiagroup.com</email></author></authors>
13
- <date>2013-12-18</date>
14
- <time>09:27:19</time>
15
- <contents><target name="magecommunity"><dir name="MSP"><dir name="CashOnDelivery"><dir name="Block"><dir name="Admin"><dir name="Rule"><dir name="Edit"><file name="Form.php" hash="3ef514b316321a601b1414df18986c68"/></dir><file name="Edit.php" hash="16d02cedb6204fd7b831b5564f072d08"/><file name="Grid.php" hash="3588123b02fa04214defcfb7b09e1c51"/></dir><file name="Rule.php" hash="b933ae1daa5a7160d5bd27c75b20f3a6"/></dir><file name="Form.php" hash="1ed8f181beb6736ac9d481e6e622978f"/><dir name="Sales"><dir name="Order"><file name="Total.php" hash="62d7d29b168a15ccdc8ee86bb7e515f2"/></dir></dir></dir><file name="CHANGELOG.txt" hash="9e5a1abd07592aba521ed887cf833e7a"/><file name="COMPATIBILITY.txt" hash="b120e5821ccb687741d038f63cbd76c7"/><dir name="Helper"><file name="Data.php" hash="6b4472e0c6ee340019022c347c30472a"/></dir><file name="LICENSE.txt" hash="43d8581f57722664f478fccb6e71f99b"/><dir name="Model"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Source"><file name="Taxclass.php" hash="8e321361f0814b8c21aa2cb7662fd2ee"/></dir></dir></dir></dir><file name="Cashondelivery.php" hash="2790dc9a5af8d4c89b974522f9e93dde"/><dir name="Creditmemo"><file name="Tax.php" hash="52e02c6cb7ca5b8c9651685d1a77f8ab"/><file name="Total.php" hash="1b73140986a7ba42634c375c39e0c118"/></dir><file name="Foreign.php" hash="a1582c07f33304b476d589349ab97a0e"/><dir name="Invoice"><file name="Total.php" hash="b6cd1dbc7522bd6294b19573f993eea0"/></dir><file name="Local.php" hash="724831a475386d67793b41b3cf7ac302"/><dir name="Mysql4"><dir name="Foreign"><file name="Collection.php" hash="0a8c362e781a435a840f3a27bdb62e8b"/></dir><file name="Foreign.php" hash="186027f699b82cb3a84ff28ea00ae614"/><dir name="Local"><file name="Collection.php" hash="dcb52df5861f1e47c06580673da60b57"/></dir><file name="Local.php" hash="f364150b5cfc416601261f912e5af995"/></dir><dir name="Order"><dir name="Pdf"><dir name="Total"><file name="Default.php" hash="a5b1971b0d96ea083a8e3d27c0ab4666"/></dir></dir><file name="Tax.php" hash="6a86adbd4bde7a78a1ef43560cd4be60"/><file name="Total.php" hash="045a6a6f5b57cc5f38665e8d6aafd797"/></dir><dir name="Quote"><file name="Tax.php" hash="c62e7f00f45edfa69f5a6f147c478f43"/><file name="Total.php" hash="bca2a890e65df13660ed2fde930f9a0d"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Cashondelivery"><file name="ForeignController.php" hash="d8ef1364e94f5c2ea492fee2ec2da84f"/><file name="LocalController.php" hash="c6e615ac1332e7d155d72f300b7c6fc6"/></dir><file name="CashondeliveryController.php" hash="b2d29ca215099171f926c15fcdd39e90"/></dir></dir><dir name="etc"><file name="config.xml" hash="c1e27853f61fa2f57d9530c036c31aa3"/><file name="system.xml" hash="739a363253082343b4a05ca0b9b11bad"/></dir><dir name="sql"><dir name="msp_cashondelivery_setup"><file name="mysql4-install-1.0.0.php" hash="4f1f491964a4702bac27a00c6b634de1"/><file name="mysql4-install-1.1.0.php" hash="fc5dfa28fc97afaeb4175428cad75042"/><file name="mysql4-upgrade-1.0.0-1.1.0.php" hash="2d127024309a522459577b5176aa2d7d"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="msp_cashondelivery"><file name="form.phtml" hash="7085ccee4d932846fcc7aa99faf7319f"/></dir></dir><dir name="layout"><file name="msp_cashondelivery.xml" hash="1639e2df536b6fbb8066d9b59bc0c058"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="msp_cashondelivery"><file name="form.phtml" hash="bf2572fa6aa4e190f90c6e8205920b39"/></dir></dir><dir name="layout"><file name="msp_cashondelivery.xml" hash="9e0c45c81a9ccd35d1b12aa897eacfcf"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MSP_CashOnDelivery.xml" hash="d64644f02358bdbb7715c0bfab466582"/></dir></target><target name="magelocale"><dir name="it_IT"><file name="MSP_CashOnDelivery.csv" hash="9437f81dfd1425fc1b9f43f4e23ab040"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><package><name>MSP_Common</name><channel>community</channel><min>1.0.0</min><max/></package></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>MSP_CashOnDelivery</name>
4
+ <version>1.2.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL</license>
7
  <channel>community</channel>
10
  <description>An easy to use module to add a fully configurable Cash On Delivery payment mode in your Magento store.</description>
11
  <notes>Enjoy it ;)</notes>
12
  <authors><author><name>Riccardo Tempesta</name><user>idealiagroup</user><email>tempesta@idealiagroup.com</email></author><author><name>Paolo Vecchiocattivi</name><user>idealiagroup</user><email>vecchiocattivi@idealiagroup.com</email></author></authors>
13
+ <date>2014-04-17</date>
14
+ <time>15:25:12</time>
15
+ <contents><target name="magecommunity"><dir name="MSP"><dir name="CashOnDelivery"><dir name="Block"><dir name="Admin"><dir name="Rule"><dir name="Edit"><file name="Form.php" hash="73f7bb7cc579a9ea6576b84faef04ebb"/></dir><file name="Edit.php" hash="efc1fc2e70a5af0dd9a3f6fc0caa7458"/><file name="Grid.php" hash="c9685890801f118b9beda295985d5538"/></dir><file name="Rule.php" hash="8a132be439dffae5381bff113a5cffb9"/></dir><file name="Form.php" hash="bc5f4f3dfea92dfa79f0ebd1ef66eee3"/><dir name="Sales"><dir name="Order"><file name="Total.php" hash="ab95f0056a97282e85f4c901022286dc"/></dir></dir></dir><file name="CHANGELOG.txt" hash="5828e91d409723e2451a329fd7ce2195"/><file name="COMPATIBILITY.txt" hash="b120e5821ccb687741d038f63cbd76c7"/><dir name="Helper"><file name="Data.php" hash="434226264e7bc681e27b9532a2fbfc07"/></dir><file name="LICENSE.txt" hash="43d8581f57722664f478fccb6e71f99b"/><dir name="Model"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Source"><file name="Taxclass.php" hash="2db9e0e301fc350228559ef226eaab24"/></dir></dir></dir></dir><file name="Cashondelivery.php" hash="5d47cbce4e7b829dfc08dca7bb15439c"/><dir name="Creditmemo"><file name="Tax.php" hash="8a92cb51d358d8ad5759ec9304c62f42"/><file name="Total.php" hash="002dbc8acbd0c872abe54f2318cc506b"/></dir><file name="Foreign.php" hash="d1686b318f4072f59f191c38edb02206"/><dir name="Invoice"><file name="Total.php" hash="b5acbf2dfab5a08732d4e8c6af7ba965"/></dir><file name="Local.php" hash="0519e951803e32898cb4783448695a58"/><dir name="Mysql4"><dir name="Foreign"><file name="Collection.php" hash="3f776f389ae30a51695308b1528f8dc8"/></dir><file name="Foreign.php" hash="9fa9c40cfb6c17ba4a7ceb638c8f8b0c"/><dir name="Local"><file name="Collection.php" hash="12644d7308afd9e0c555d628a2285c52"/></dir><file name="Local.php" hash="09473d2b243b111b88d81f27e4dc6d3d"/></dir><dir name="Order"><dir name="Pdf"><dir name="Total"><file name="Default.php" hash="29d8c1667a5fb6e6e60f71f1b0495853"/></dir></dir><file name="Tax.php" hash="cb5b3b290f0139ad29fa6ea8164c7a91"/><file name="Total.php" hash="f8d72c004956575b4a7034dbb851cfb6"/></dir><dir name="Quote"><file name="Tax.php" hash="a36ffe6a3cdb382ae8a41e38470ca887"/><file name="Total.php" hash="12e0df09959fa189109ef9e1409ec8b1"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Cashondelivery"><file name="ForeignController.php" hash="a85a9b3785c3991e8b1b525193db0e0a"/><file name="LocalController.php" hash="b454b0c9ad0d22bac2bf9d282135ff49"/></dir><file name="CashondeliveryController.php" hash="927cda111ae8e620ec22e58388a54fa5"/></dir></dir><dir name="etc"><file name="config.xml" hash="0346886cac0fe387f7d863d81e72dae5"/><file name="system.xml" hash="070bb9e38b0eb30039de0f6204fee04e"/></dir><dir name="sql"><dir name="msp_cashondelivery_setup"><file name="mysql4-install-1.0.0.php" hash="741e3c5ab304d98acd2cfeecd7c636b6"/><file name="mysql4-install-1.1.0.php" hash="647fb3f0c4cd26035324d980ef0c855c"/><file name="mysql4-upgrade-1.0.0-1.1.0.php" hash="ab81f3ad7a554bc0cab43d82979e04a3"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="msp_cashondelivery"><file name="form.phtml" hash="7085ccee4d932846fcc7aa99faf7319f"/></dir></dir><dir name="layout"><file name="msp_cashondelivery.xml" hash="1639e2df536b6fbb8066d9b59bc0c058"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="msp_cashondelivery"><file name="form.phtml" hash="bf2572fa6aa4e190f90c6e8205920b39"/></dir></dir><dir name="layout"><file name="msp_cashondelivery.xml" hash="9e0c45c81a9ccd35d1b12aa897eacfcf"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MSP_CashOnDelivery.xml" hash="d64644f02358bdbb7715c0bfab466582"/></dir></target><target name="magelocale"><dir name="it_IT"><file name="MSP_CashOnDelivery.csv" hash="9437f81dfd1425fc1b9f43f4e23ab040"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><package><name>MSP_Common</name><channel>community</channel><min>1.0.0</min><max/></package></required></dependencies>
18
  </package>