Skip to content

Commit

Permalink
Merge pull request #28 from surprisehighway/release/v2.1.3
Browse files Browse the repository at this point in the history
Release/v2.1.3
  • Loading branch information
imagehat authored Jan 28, 2021
2 parents 6cb070c + 4b25b22 commit 6589d67
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
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": "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",
Expand Down
3 changes: 2 additions & 1 deletion src/services/SalesTaxService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6589d67

Please sign in to comment.