Skip to content

Commit

Permalink
Merge pull request #9 from Strategery-Inc/v/company-name-attribute-fix
Browse files Browse the repository at this point in the history
Company name attribute fix for Stockbase order creation.
  • Loading branch information
gsomoza authored Oct 31, 2018
2 parents 2100408 + 9afeb35 commit f8a83a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion StockbaseApi/Client/StockbaseClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function createOrder(OrderInterface $order, array $reservedStockbaseItems
'Person' => [
'FirstName' => $shippingAddress->getFirstname(),
'Surname' => $shippingAddress->getLastname(),
'Company' => $shippingAddress->getCompany(),
'Company' => $shippingAddress->getCompany() ?: ' ',
],
'Address' => [
'Street' => $shippingAddress->getStreetLine(1),
Expand Down

0 comments on commit f8a83a6

Please sign in to comment.