Skip to content

Commit

Permalink
Adds support for MSI if order contains products from different sources
Browse files Browse the repository at this point in the history
  • Loading branch information
radua committed Jul 3, 2019
1 parent 33c72d1 commit 8cb88b2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Controller/Adminhtml/PrepareShipment/Index.php
Expand Up @@ -363,12 +363,12 @@ protected function getPackingBoxes( $sourceCode ) : ?array {
}

foreach ($packings as $value) {
$packing = $value['source_code'] == $sourceCode ? $value : NULL;
$packing[] = $value['source_code'] == $sourceCode ? $value : NULL;
}

$packing = array_filter($packing,function($value){ return $value != NULL; });

$packing["dimensions"] = $this->getBoxWeight($packing);
$packing["dimensions"] = $this->getBoxWeight(reset($packing));
$boxes[] = $packing;

return $boxes;
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -2,7 +2,7 @@
"name": "flagshipcompany/flagship-for-magento",
"description": "A module that allows you to ship with flagship",
"type": "magento2-module",
"version": "1.0.23",
"version": "1.0.24",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
2 changes: 1 addition & 1 deletion registration.php
Expand Up @@ -10,4 +10,4 @@
require BP.'/vendor/autoload.php';

define('FLAGSHIP_MODULE','Magento');
define('FLAGSHIP_MODULE_VERSION','1.0.23');
define('FLAGSHIP_MODULE_VERSION','1.0.24');

0 comments on commit 8cb88b2

Please sign in to comment.