Skip to content

Commit

Permalink
Fix total tax after refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
imagehat committed Oct 15, 2020
1 parent 4870025 commit ecca06e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
12 changes: 2 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@ 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/).

## 1.0.2 - 2020-10-15
## 1.0.3 - 2020-10-15
### Fixed
- Fixed a bug where the country check would cause an error before a shipping address was set

## 1.0.1 - 2020-10-14
### Fixed
- Add total tax as order adjustment instead of per line item

## 1.0.0 - 2020-10-14
### Added
- Initial release
- Initial release
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-taxcloud",
"description": "TaxCloud integration for Craft Commerce",
"type": "craft-plugin",
"version": "1.0.2",
"version": "1.0.3",
"keywords": [
"craft",
"cms",
Expand Down
2 changes: 1 addition & 1 deletion src/adjusters/TaxCloud.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function adjust(Order $order): array
$adjustment = new OrderAdjustment();
$adjustment->type = self::ADJUSTMENT_TYPE;
$adjustment->name = Craft::t('commerce', 'Tax');
$adjustment->amount = $orderTaxes->CartItemsResponse[$index]->TaxAmount;
$adjustment->amount = $totalTax;
$adjustment->description = '';
$adjustment->sourceSnapshot = ['taxcloud' => json_decode(json_encode($orderTaxes), true)];
$adjustment->setOrder($this->_order);
Expand Down

0 comments on commit ecca06e

Please sign in to comment.