Skip to content

Add Source Delivery awareness to Order page#315

Merged
naydav merged 10 commits intodevelopfrom
309-add-source-to-order-page
Dec 19, 2017
Merged

Add Source Delivery awareness to Order page#315
naydav merged 10 commits intodevelopfrom
309-add-source-to-order-page

Conversation

@vasilibarabanov
Copy link
Copy Markdown

No description provided.

* Sources tab
*
* @api
* @since 100.0.2
Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown

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);

Copy link
Copy Markdown
Member

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)
Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown

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">

Copy link
Copy Markdown
Member

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}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls use only @inheritdoc

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

}

/**
* {@inheritdoc}
Copy link
Copy Markdown
Member

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}
Copy link
Copy Markdown
Member

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}
Copy link
Copy Markdown
Member

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
/**
Copy link
Copy Markdown
Member

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);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@naydav naydav merged commit 83c345b into develop Dec 19, 2017
@maghamed maghamed deleted the 309-add-source-to-order-page branch December 11, 2018 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants