Skip to content

Commit

Permalink
Changes to rebound country code.
Browse files Browse the repository at this point in the history
  • Loading branch information
softcommerceltd committed Jan 11, 2021
1 parent 786175c commit 3716190
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Changelog

### Version 1.0.6
- **Fix**: Added a fix to country of manufacture parameter within item request to use ISO 3166-1 alpha-2 code instead.

### Version 1.0.5
- **Improvement**: Added manual order export schedule from within order grid.

Expand Down
5 changes: 3 additions & 2 deletions Service/OrderExport/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Generator extends AbstractService implements ProcessorInterface
/**
* @var ImageFactory
*/
protected ImageFactory $productImageFactory;
private ImageFactory $productImageFactory;

/**
* Generator constructor.
Expand Down Expand Up @@ -148,6 +148,7 @@ private function buildItemData()
if (!$product = $this->getProduct($item)) {
throw new LocalizedException(__('Could not find product SKU: %1', $item->getSku()));
}

$request[] = [
ClientOrderInterface::SKU_CODE => $item->getSku(),
ClientOrderInterface::SKU_DESC => $item->getName(),
Expand All @@ -159,7 +160,7 @@ private function buildItemData()
ClientOrderInterface::HEIGHT => $item->getHeight(),
ClientOrderInterface::DIMENSIONS_UOM => 'mm',
ClientOrderInterface::HS_CODE => $product->getData('commodity_code'),
ClientOrderInterface::COUNTRY_CODE => $product->getAttributeText('country_of_manufacture'),
ClientOrderInterface::COUNTRY_CODE => $product->getData('country_of_manufacture'),
ClientOrderInterface::DANGEROUS_GOODS => 'No',
ClientOrderInterface::EXPORT_DATE => $this->dateTime->gmtDate(),
ClientOrderInterface::DAYS_FOR_RETURN => 365,
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
"SoftCommerce\\Rebound\\": ""
}
},
"version": "1.0.5"
"version": "1.0.6"
}

0 comments on commit 3716190

Please sign in to comment.