Skip to content

Commit f76c182

Browse files
committed
Fix calling Rate class in the Add action #2 @se-viacheslav
1 parent 216d068 commit f76c182

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9-
## [1.2.8] - 9 April 2028
9+
## [1.2.9] - 9 April 2024
10+
### Fixed
11+
- Fix calling Rate class in the Add action #2 @se-viacheslav
12+
13+
## [1.2.8] - 9 April 2023
1014
### Fixed
1115
- Compat psr/log with Magento 2.4.7
1216

13-
## [1.2.7] - 8 April 2028
17+
## [1.2.7] - 8 April 2023
1418
- Failed release
1519

1620
## [1.2.6] - 9 January 2023

Controller/Adminhtml/Index/Add.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ public function execute()
9898
* @throws InputException
9999
* @throws NoSuchEntityException
100100
*/
101-
private function add(string $code, string $country, float $percentage)
101+
private function add(string $code, string $country, float $percentage, string $postcode = '*')
102102
{
103103
$rate = new Rate(
104104
0,
105105
$code,
106106
$country,
107-
'*',
107+
$postcode,
108108
$percentage
109109
);
110110

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "yireo/magento2-taxratesmanager2",
33
"license": "OSL-3.0",
44
"type": "magento2-module",
5-
"version": "1.2.8",
5+
"version": "1.2.9",
66
"homepage": "https://www.yireo.com/software/magento-extensions/taxratesmanager2",
77
"description": "Manage EU VAT rates automatically",
88
"keywords": [

0 commit comments

Comments
 (0)