Skip to content

Commit

Permalink
Merge pull request #127 from taxjar/develop
Browse files Browse the repository at this point in the history
Version 1.5.0
  • Loading branch information
ryanreeves-taxjar authored May 1, 2020
2 parents 1a6e147 + 769496f commit 9024c8e
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Block/Adminhtml/AddressValidation.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected function _cacheElementValue(AbstractElement $element)
}

/**
* TaxJar Plus authorization check
* TaxJar address validation authorization check
*
* @return bool
*/
Expand Down
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [1.5.0] - 2020-05-01
- Fix a bug where customer_id was passed as 0 instead of an empty string
- Update product tax categories to remove the plus_only flag

## [1.4.10] - 2020-04-16
- Fix transaction sync not respecting website/store scope when backfilling transactions
- Fix the max discount per line item ignoring line item quantities
Expand Down Expand Up @@ -171,7 +175,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- **Initial release of our Magento 2 extension.** Sales tax calculations at checkout with backup zip-based rates powered by TaxJar. Supports product exemptions, shipping taxability, sourcing logic, and international calculations in more than 30 countries.
- **Special promo sales tax calculations for Magento merchants.** Existing M2 beta users must upgrade to this version to receive special promo calculations at checkout using our new API endpoint.

[Unreleased]: https://github.com/taxjar/taxjar-magento2-extension/compare/v1.4.10...HEAD
[Unreleased]: https://github.com/taxjar/taxjar-magento2-extension/compare/v1.5.0...HEAD
[1.5.0]: https://github.com/taxjar/taxjar-magento2-extension/compare/v1.4.10...v1.5.0
[1.4.10]: https://github.com/taxjar/taxjar-magento2-extension/compare/v1.4.9...v1.4.10
[1.4.9]: https://github.com/taxjar/taxjar-magento2-extension/compare/v1.4.8...v1.4.9
[1.4.8]: https://github.com/taxjar/taxjar-magento2-extension/compare/v1.4.7...v1.4.8
Expand Down
2 changes: 1 addition & 1 deletion Controller/Adminhtml/Config/Connect.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function execute()
}

/**
* Verify if user is subscribed to Plus
* Verify if user has a valid subscription
*
* @param string $apiKey
* @return bool
Expand Down
2 changes: 1 addition & 1 deletion Model/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

class Configuration
{
const TAXJAR_VERSION = '1.4.10';
const TAXJAR_VERSION = '1.5.0';
const TAXJAR_AUTH_URL = 'https://app.taxjar.com';
const TAXJAR_API_URL = 'https://api.taxjar.com/v2';
const TAXJAR_FEED_URL = 'www.taxjar.com/magento2/feed.xml';
Expand Down
2 changes: 1 addition & 1 deletion Model/Smartcalcs.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public function getTaxForOrder(
'shipping' => $shipping - abs($shippingDiscount),
'line_items' => $this->_getLineItems($quote, $quoteTaxDetails),
'nexus_addresses' => $this->_getNexusAddresses($quote->getStoreId()),
'customer_id' => $quote->getCustomerId() ? $quote->getCustomerId() : 0,
'customer_id' => $quote->getCustomerId() ? $quote->getCustomerId() : '',
'plugin' => 'magento'
]);

Expand Down
1 change: 0 additions & 1 deletion Observer/ImportCategories.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ private function _importCategories()
$category->setProductTaxCode($categoryData['product_tax_code']);
$category->setName($categoryData['name']);
$category->setDescription($categoryData['description']);
$category->setPlusOnly((strpos($categoryData['description'], '*(PLUS ONLY)*') !== false));
$this->categoryResourceModel->save($category);
}
}
Expand Down
15 changes: 15 additions & 0 deletions Setup/UpgradeSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,20 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con

$installer->endSetup();
}

if (version_compare($context->getVersion(), '1.0.4', '<')) {
$installer = $setup;
$installer->startSetup();

/**
* Update table 'tj_product_tax_categories'
*/
$installer->getConnection()->dropColumn(
$installer->getTable('tj_product_tax_categories'),
'plus_only'
);

$installer->endSetup();
}
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "taxjar/module-taxjar",
"description": "TaxJar Sales Tax Module for Magento 2",
"type": "magento2-module",
"version": "1.4.10",
"version": "1.5.0",
"license": "OSL-3.0",
"require": {
"magento/framework": "^100.1.0|^101.0.0|^102.0.0"
Expand Down
3 changes: 2 additions & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module:etc/module.xsd">
<!-- Database Setup Version -->
<module name="Taxjar_SalesTax" setup_version="1.0.3">
<module name="Taxjar_SalesTax" setup_version="1.0.4">
<sequence>
<module name="Magento_Checkout"/>
<module name="Magento_Enterprise"/>
Expand All @@ -27,3 +27,4 @@
</sequence>
</module>
</config>

0 comments on commit 9024c8e

Please sign in to comment.