Skip to content

Commit e7eeba0

Browse files
authored
Merge pull request #54 from dingo-d/develop
2.0.5 fix
2 parents 466154e + 9036797 commit e7eeba0

File tree

5 files changed

+18
-6
lines changed

5 files changed

+18
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a
1313

1414
_No documentation available about unreleased changes as of yet._
1515

16+
## [2.0.5] - 2020-11-29
17+
18+
### Fixed
19+
20+
* Fix the company name showing on the order and sending taxes option towards API.
21+
1622
## [2.0.4] - 2020-11-28
1723

1824
### Added

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
**Requires at least**: 5.1
1717
**Requires PHP**: 7.3
1818
**Tested up to**: 5.5
19-
**Stable tag**: 2.0.4
19+
**Stable tag**: 2.0.5
2020
**WC requires at least**: 4.0.0
2121
**WC tested up to**: 4.7.0
2222
**License**: MIT

README.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: woocommerce, api, solo api, solo, api integration, shop, payment, woo
44
Requires at least: 5.2
55
Requires PHP: 7.3
66
Tested up to: 5.5
7-
Stable tag: 2.0.4
7+
Stable tag: 2.0.5
88
WC requires at least: 4.0.0
99
WC tested up to: 4.7.0
1010
License: MIT
@@ -66,6 +66,13 @@ Be sure you have WooCommerce plugin installed first, otherwise you'll get an err
6666

6767
== Changelog ==
6868

69+
= 2.0.5 =
70+
Release Date: November 29th, 2020
71+
72+
Fixed:
73+
74+
* Fix the company name showing on the order and sending taxes option towards API.
75+
6976
= 2.0.4 =
7077
Release Date: November 28th, 2020
7178

src/Request/SoloApiRequest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@ public function executeApiCall($order): void
127127

128128
$orderBuyer = "$firstName $lastName";
129129

130-
// If the invoice is R1 the company name is required and used instead of first name and last name.
131-
if (get_option('solo_api_invoice_type') === '2') {
130+
if (!empty($companyName)) {
132131
$orderBuyer = $companyName;
133132
}
134133

@@ -158,7 +157,7 @@ public function executeApiCall($order): void
158157
$requestBody = [
159158
'token' => $token,
160159
'tip_usluge' => $serviceType,
161-
'prikazi_porez' => $showTaxes,
160+
'prikazi_porez' => $showTaxes ? 1 : 0,
162161
'kupac_naziv' => esc_attr($orderBuyer),
163162
'kupac_adresa' => esc_attr($orderAddress),
164163
];

woo-solo-api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Plugin Name: Woo Solo Api
1111
* Plugin URI: https://madebydenis.com/woo-solo-api
1212
* Description: This plugin provides integration of the SOLO API service with WooCommerce.
13-
* Version: 2.0.4
13+
* Version: 2.0.5
1414
* Author: Denis Žoljom
1515
* Author URI: https://madebydenis.com
1616
* License: MIT

0 commit comments

Comments
 (0)