Taxify_Sales_Tax_Rates_and_Filing - Version 0.2.1

Version Notes

Initial Public Release

Download this release

Release Info

Developer Vonnda Development
Extension Taxify_Sales_Tax_Rates_and_Filing
Version 0.2.1
Comparing to
See all releases


Code changes from version 0.2.0 to 0.2.1

app/code/local/Vonnda/Taxify/.DS_Store DELETED
Binary file
app/code/local/Vonnda/Taxify/Model/.DS_Store DELETED
Binary file
app/code/local/Vonnda/Taxify/Model/Request/Calculate.php CHANGED
@@ -68,7 +68,7 @@ class Vonnda_Taxify_Model_Request_Calculate extends Vonnda_Taxify_Model_Request_
68
  $line['Quantity'] = $item->getData('qty');
69
  }
70
  $line['ItemDescription'] = $item->getName();
71
-
72
  // * (blank) : Taxify will assume the item is generally taxable "tangible goods" unless
73
  // otherwise configured (by ItemKey) in Taxify
74
  // * "NON" : a generally non taxable item or service
@@ -174,18 +174,13 @@ class Vonnda_Taxify_Model_Request_Calculate extends Vonnda_Taxify_Model_Request_
174
  return $items;
175
  }
176
 
177
- $pennies = $discountAmount * 100;
178
- $pennies = (int) $pennies;
179
- while ($pennies > 0) {
180
- foreach ($items as $index => $item) {
181
- if ($this->isShippingItem($item)) {
182
- continue; // Don't subtract discount from shipping line items
183
- }
184
- $items[$index]['ActualExtendedPrice'] = number_format($items[$index]['ActualExtendedPrice'] - 0.01, 2);
185
- if ($items[$index]['ActualExtendedPrice'] == 0) {
186
- $pennies = 0; // Stop, can't give a negative price on products
187
- }
188
- $pennies = $pennies - 1;
189
  }
190
  }
191
 
68
  $line['Quantity'] = $item->getData('qty');
69
  }
70
  $line['ItemDescription'] = $item->getName();
71
+ $line['DiscountAmount'] = $item->getDiscountAmount();
72
  // * (blank) : Taxify will assume the item is generally taxable "tangible goods" unless
73
  // otherwise configured (by ItemKey) in Taxify
74
  // * "NON" : a generally non taxable item or service
174
  return $items;
175
  }
176
 
177
+ foreach ($items as $index => $item) {
178
+ if ($this->isShippingItem($item)) {
179
+ continue; // Don't subtract discount from shipping line items
180
+ }
181
+ $items[$index]['ActualExtendedPrice'] = number_format($items[$index]['ActualExtendedPrice'] - $items[$index]['DiscountAmount'], 2);
182
+ if ($items[$index]['ActualExtendedPrice'] == 0) {
183
+ continue;
 
 
 
 
 
184
  }
185
  }
186
 
app/code/local/Vonnda/Taxify/Model/Sales/.DS_Store DELETED
Binary file
app/code/local/Vonnda/Taxify/Model/Sales/Quote/.DS_Store DELETED
Binary file
app/code/local/Vonnda/Taxify/Model/Sales/Quote/Address/.DS_Store DELETED
Binary file
app/code/local/Vonnda/Taxify/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Vonnda_Taxify>
5
- <version>0.2.0</version>
6
  </Vonnda_Taxify>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <Vonnda_Taxify>
5
+ <version>0.2.1</version>
6
  </Vonnda_Taxify>
7
  </modules>
8
  <global>
app/code/local/Vonnda/Taxify/etc/system.xml CHANGED
@@ -53,15 +53,6 @@
53
  <show_in_store>1</show_in_store>
54
  <comment>Taxify API Key</comment>
55
  </password>
56
- <test_mode translate="label comment">
57
- <label>Test Mode</label>
58
- <frontend_type>select</frontend_type>
59
- <source_model>adminhtml/system_config_source_yesno</source_model>
60
- <sort_order>50</sort_order>
61
- <show_in_default>1</show_in_default>
62
- <show_in_website>1</show_in_website>
63
- <show_in_store>1</show_in_store>
64
- </test_mode>
65
  </fields>
66
  </taxify>
67
  </groups>
53
  <show_in_store>1</show_in_store>
54
  <comment>Taxify API Key</comment>
55
  </password>
 
 
 
 
 
 
 
 
 
56
  </fields>
57
  </taxify>
58
  </groups>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Taxify_Sales_Tax_Rates_and_Filing</name>
4
- <version>0.2.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gnu.org/licenses/gpl-2.0.html">GNU General Public License V2</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>Taxify ensures that your Magento store collects, reports and remits accurate sales taxes for all Federal, state, and local jurisdictions throughout the United States</description>
11
  <notes>Initial Public Release</notes>
12
  <authors><author><name>Vonnda Development</name><user>Vonnda</user><email>info@vonnda.com</email></author></authors>
13
- <date>2015-11-17</date>
14
- <time>17:29:34</time>
15
- <contents><target name="magelocal"><dir name="Vonnda"><dir name="Taxify"><dir name="Block"><dir name="Adminhtml"><dir name="Tax"><dir name="Class"><dir name="Edit"><file name="Form.php" hash="4c8f337cb03db39cc74bb5df9d94850d"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="df447d3734709072c2176093e785e008"/></dir><dir name="Model"><file name="Client.php" hash="86161822865f61617eb0ec822f42d12e"/><file name="Config.php" hash="ccefc5627934a37bfc09cb7e0875f99e"/><dir name="Export"><file name="Row.php" hash="8951355e03775d916c1c6118d0ae6b4e"/></dir><file name="Export.php" hash="925c6711c00300c6806b79bd331058c3"/><file name="Feed.php" hash="e0678d50484574d720d9df946ccaf9c7"/><file name="Observer.php" hash="cc6d17169d91eac7bfe590b692130353"/><dir name="Request"><file name="Calculate.php" hash="dd71e467a196d10aa30d42025a558b2a"/><file name="Cancel.php" hash="34db75ff82a163ce22d704531063c5c6"/><file name="Codes.php" hash="3b237da565fcba7e463fe04a27fb84b4"/><file name="Commit.php" hash="c9e91922a59ebb5824c338099e9cf580"/><file name="Request.php" hash="5178375ce7024dcc3f991097935673fc"/><file name="Verifyaddress.php" hash="9f619dd10958d3779ec651af47bf04c4"/><file name="Version.php" hash="561c828ad9e0bd3e7cd1509f7774fa86"/></dir><dir name="Resource"><dir name="Mysql4"><file name="Setup.php" hash="326120cd05749e9b48e7dd966a3b2c19"/></dir></dir><dir name="Sales"><dir name="Quote"><dir name="Address"><dir name="Total"><file name="Tax.php" hash="e22d3ad3a685369edd739630024a16cd"/></dir><file name=".DS_Store" hash="d6c424b95f6c304aa0e0c861c9a01073"/></dir><file name=".DS_Store" hash="e3088067e0aac643641350be6bd5da89"/></dir><file name=".DS_Store" hash="d8aa3112ea4a1c59b473e14dcddf7d1f"/></dir><file name=".DS_Store" hash="89503324a3148078dbd8a9ac140ae571"/></dir><dir name="controllers"><file name="TaxifyController.php" hash="2fe945ff29d7261949d610fc43260410"/></dir><dir name="etc"><file name="adminhtml.xml" hash="504a3e32bd2d6695811f67523c03504a"/><file name="config.xml" hash="6b06e6afca1fefc7ed2fbca10da0600c"/><file name="system.xml" hash="2d8e7e036755c1b0c291259575ffd87d"/></dir><dir name="sql"><dir name="taxify_setup"><file name="mysql4-install-0.1.1.php" hash="523629216cc236efa1e3a08dc40b9291"/><file name="mysql4-upgrade-0.1.6-0.1.7.php" hash="f63715adff31a85fb43aa1aecfc42c2d"/></dir></dir><dir name="tests"><dir name="Helper"><file name="DataTest.php" hash="8ebef47e1f82cc1526a87bf9f601e6c5"/></dir><dir name="Model"><dir name="Export"><file name="RowTest.php" hash="370afb16507950dcbf2ac27090c8452c"/></dir><file name="ExportTest.php" hash="04ec5d1e4a71bf840881b2cb55be5528"/></dir><dir name="Request"><file name="CalculateTest.php" hash="d0e358e1b2a6eda1d3434e91876c61d7"/><file name="CancelTest.php" hash="b8ba6f0004d493f72ce22c66375ffdac"/><file name="CodesTest.php" hash="34101e57f496b40b817496fa78abad3a"/><file name="CommitTest.php" hash="59c4473ba919047dd821e05b335dbc38"/></dir><file name="SampleTest.php" hash="32606c8d8b84d95aec73bdeb1c03ca1e"/><dir name="fixtures"><file name="calculateMultiSimpleProductSuccess.txt" hash="6d7426310bebbcb0b758697035a4e8f7"/><file name="calculateSuccess.txt" hash="892ebdae0cd70bcf36cc34be2d21da76"/><file name="exportQueryResult.txt" hash="d07fec0de05420e89536fadb822baa84"/></dir></dir><file name=".DS_Store" hash="1f5579cf877cc451179cc658a1117441"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Vonnda_Taxify.xml" hash="b3120a86b364f80ee8daf825412a1318"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="template"><dir name="taxify"><file name="export.phtml" hash="25487d4b0664dd7cfbea135ad50bf948"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
- <dependencies><required><php><min>5.3.0</min><max>5.6.2</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Taxify_Sales_Tax_Rates_and_Filing</name>
4
+ <version>0.2.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gnu.org/licenses/gpl-2.0.html">GNU General Public License V2</license>
7
  <channel>community</channel>
10
  <description>Taxify ensures that your Magento store collects, reports and remits accurate sales taxes for all Federal, state, and local jurisdictions throughout the United States</description>
11
  <notes>Initial Public Release</notes>
12
  <authors><author><name>Vonnda Development</name><user>Vonnda</user><email>info@vonnda.com</email></author></authors>
13
+ <date>2016-05-11</date>
14
+ <time>22:08:08</time>
15
+ <contents><target name="magelocal"><dir name="Vonnda"><dir name="Taxify"><dir name="Block"><dir name="Adminhtml"><dir name="Tax"><dir name="Class"><dir name="Edit"><file name="Form.php" hash="4c8f337cb03db39cc74bb5df9d94850d"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="df447d3734709072c2176093e785e008"/></dir><dir name="Model"><file name="Client.php" hash="86161822865f61617eb0ec822f42d12e"/><file name="Config.php" hash="ccefc5627934a37bfc09cb7e0875f99e"/><dir name="Export"><file name="Row.php" hash="8951355e03775d916c1c6118d0ae6b4e"/></dir><file name="Export.php" hash="925c6711c00300c6806b79bd331058c3"/><file name="Feed.php" hash="e0678d50484574d720d9df946ccaf9c7"/><file name="Observer.php" hash="cc6d17169d91eac7bfe590b692130353"/><dir name="Request"><file name="Calculate.php" hash="0e2a2d7a35392824c598dcb4c070a526"/><file name="Cancel.php" hash="34db75ff82a163ce22d704531063c5c6"/><file name="Codes.php" hash="3b237da565fcba7e463fe04a27fb84b4"/><file name="Commit.php" hash="c9e91922a59ebb5824c338099e9cf580"/><file name="Request.php" hash="5178375ce7024dcc3f991097935673fc"/><file name="Verifyaddress.php" hash="9f619dd10958d3779ec651af47bf04c4"/><file name="Version.php" hash="561c828ad9e0bd3e7cd1509f7774fa86"/></dir><dir name="Resource"><dir name="Mysql4"><file name="Setup.php" hash="326120cd05749e9b48e7dd966a3b2c19"/></dir></dir><dir name="Sales"><dir name="Quote"><dir name="Address"><dir name="Total"><file name="Tax.php" hash="e22d3ad3a685369edd739630024a16cd"/></dir></dir></dir></dir></dir><dir name="controllers"><file name="TaxifyController.php" hash="2fe945ff29d7261949d610fc43260410"/></dir><dir name="etc"><file name="adminhtml.xml" hash="504a3e32bd2d6695811f67523c03504a"/><file name="config.xml" hash="460953001c066a335711f69e7a2d5d61"/><file name="system.xml" hash="862c758f1d7dfea584bdaf77c6cd2695"/></dir><dir name="sql"><dir name="taxify_setup"><file name="mysql4-install-0.1.1.php" hash="523629216cc236efa1e3a08dc40b9291"/><file name="mysql4-upgrade-0.1.6-0.1.7.php" hash="f63715adff31a85fb43aa1aecfc42c2d"/></dir></dir><dir name="tests"><dir name="Helper"><file name="DataTest.php" hash="8ebef47e1f82cc1526a87bf9f601e6c5"/></dir><dir name="Model"><dir name="Export"><file name="RowTest.php" hash="370afb16507950dcbf2ac27090c8452c"/></dir><file name="ExportTest.php" hash="04ec5d1e4a71bf840881b2cb55be5528"/></dir><dir name="Request"><file name="CalculateTest.php" hash="d0e358e1b2a6eda1d3434e91876c61d7"/><file name="CancelTest.php" hash="b8ba6f0004d493f72ce22c66375ffdac"/><file name="CodesTest.php" hash="34101e57f496b40b817496fa78abad3a"/><file name="CommitTest.php" hash="59c4473ba919047dd821e05b335dbc38"/></dir><file name="SampleTest.php" hash="32606c8d8b84d95aec73bdeb1c03ca1e"/><dir name="fixtures"><file name="calculateMultiSimpleProductSuccess.txt" hash="6d7426310bebbcb0b758697035a4e8f7"/><file name="calculateSuccess.txt" hash="892ebdae0cd70bcf36cc34be2d21da76"/><file name="exportQueryResult.txt" hash="d07fec0de05420e89536fadb822baa84"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Vonnda_Taxify.xml" hash="b3120a86b364f80ee8daf825412a1318"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="template"><dir name="taxify"><file name="export.phtml" hash="25487d4b0664dd7cfbea135ad50bf948"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
+ <dependencies><required><php><min>5.3.0</min><max>5.7.0</max></php></required></dependencies>
18
  </package>