diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c33a9c..e8f15f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## 2.1.3 +### Fixed +- Fixed an issue where updating the shipping state did not refresh the cached order. [#27](https://github.com/surprisehighway/craft-avatax/issues/27) + ## 2.1.2 ### Fixed - Skip address validation for estimated addresses to avoid errors with incomplete addresses. [#22](https://github.com/surprisehighway/craft-avatax/issues/22) diff --git a/composer.json b/composer.json index 689ff4e..2adae7b 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "surprisehighway/craft-avatax", "description": "Calculate and add sales tax to an order's base tax using Avalara's Avatax service.", "type": "craft-plugin", - "version": "2.1.2", + "version": "2.1.3", "keywords": [ "craft", "cms", diff --git a/src/services/SalesTaxService.php b/src/services/SalesTaxService.php index 6124e56..916936c 100644 --- a/src/services/SalesTaxService.php +++ b/src/services/SalesTaxService.php @@ -746,9 +746,10 @@ private function getOrderSignature(Order $order) $address1 = $order->shippingAddress->address1; $address2 = $order->shippingAddress->address2; $city = $order->shippingAddress->city; + $state = $this->getState($order->shippingAddress); $zipCode = $order->shippingAddress->zipCode; $country = $this->getCountry($order->shippingAddress); - $address = $address1.$address2.$city.$zipCode.$country; + $address = $address1.$address2.$city.$state.$zipCode.$country; $lineItems = ''; foreach ($order->lineItems as $lineItem)