Skip to content
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

Merged
merged 10 commits into from
Dec 19, 2017

Conversation

vasilibarabanov
Copy link

No description provided.

* Sources tab
*
* @api
* @since 100.0.2
Copy link
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

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

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

Choose a reason for hiding this comment

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

Fixed

}

/**
* {@inheritdoc}
Copy link
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
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
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
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

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