-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Source Delivery awareness to Order page #315
Conversation
* Sources tab | ||
* | ||
* @api | ||
* @since 100.0.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why @since
and @api
pls remove and more meaningful description
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
$itemSku = $orderItem->getSku(); | ||
$orderItemId = $orderItem->getItemId(); | ||
$sources = $this->getSourcesBySku($itemSku); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove me coding style
* @param string $sku | ||
* @return array | ||
*/ | ||
private function getSourcesBySku(string $sku) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls change to getSourcesBySku(string $sku):array
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
<body> | ||
<referenceBlock name="sales_order_tabs"> | ||
<block class="Magento\InventorySales\Block\Adminhtml\Order\View\Tab\Sources" name="sales_order_sources.grid.container"> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace:
<block class="Magento\InventorySales\Block\Adminhtml\Order\View\Tab\Sources" name="sales_order_sources.grid.container">
</block>
with:
<block class="Magento\InventorySales\Block\Adminhtml\Order\View\Tab\Sources" name="sales_order_sources.grid.container"/>
} | ||
|
||
/** | ||
* {@inheritdoc} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls use only @inheritdoc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
} | ||
|
||
/** | ||
* {@inheritdoc} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls use only @inheritdoc
} | ||
|
||
/** | ||
* {@inheritdoc} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls use only @inheritdoc
} | ||
|
||
/** | ||
* {@inheritdoc} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls use only @inheritdoc
@@ -0,0 +1,152 @@ | |||
<?php | |||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls add also strict type declare(strict_types=1);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
…//github.com/magento-engcom/msi into 309-add-source-to-order-page
…order-page # Conflicts: # app/code/Magento/InventoryApi/Test/Api/StockRepository/DeleteTest.php
No description provided.