File tree Expand file tree Collapse file tree 7 files changed +25
-11
lines changed
Model/AdminOrder/Product/Quote Expand file tree Collapse file tree 7 files changed +25
-11
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ class AbstractItems extends \Magento\Framework\View\Element\Template
1717 /**
1818 * Block alias fallback
1919 */
20- const DEFAULT_TYPE = 'default ' ;
20+ public const DEFAULT_TYPE = 'default ' ;
2121
2222 /**
2323 * Retrieve item renderer block
Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ public function __construct(
5151 }
5252
5353 /**
54+ * Prepare Layout
55+ *
5456 * @return void
5557 */
5658 protected function _prepareLayout ()
@@ -61,6 +63,8 @@ protected function _prepareLayout()
6163 }
6264
6365 /**
66+ * Get payment info html
67+ *
6468 * @return string
6569 */
6670 public function getPaymentInfoHtml ()
@@ -105,6 +109,8 @@ public function getBackTitle()
105109 }
106110
107111 /**
112+ * Invoice URL getter
113+ *
108114 * @param object $order
109115 * @return string
110116 */
@@ -114,6 +120,8 @@ public function getInvoiceUrl($order)
114120 }
115121
116122 /**
123+ * Shipment URL getter
124+ *
117125 * @param object $order
118126 * @return string
119127 */
@@ -123,6 +131,8 @@ public function getShipmentUrl($order)
123131 }
124132
125133 /**
134+ * Get order view URL
135+ *
126136 * @param object $order
127137 * @return string
128138 */
@@ -132,6 +142,8 @@ public function getViewUrl($order)
132142 }
133143
134144 /**
145+ * Get CreditMemo Print Url
146+ *
135147 * @param object $creditmemo
136148 * @return string
137149 */
@@ -141,6 +153,8 @@ public function getPrintCreditmemoUrl($creditmemo)
141153 }
142154
143155 /**
156+ * Get PrintAll CreditMemos Url
157+ *
144158 * @param object $order
145159 * @return string
146160 */
Original file line number Diff line number Diff line change 55 */
66namespace Magento \Sales \Block \Order ;
77
8- use Magento \Sales \Model \Order \Address ;
9- use Magento \Framework \View \Element \Template \Context as TemplateContext ;
108use Magento \Framework \Registry ;
9+ use Magento \Framework \View \Element \Template \Context as TemplateContext ;
1110use Magento \Payment \Helper \Data as PaymentHelper ;
11+ use Magento \Sales \Model \Order \Address ;
1212use Magento \Sales \Model \Order \Address \Renderer as AddressRenderer ;
1313
1414/**
@@ -25,8 +25,6 @@ class Info extends \Magento\Framework\View\Element\Template
2525 protected $ _template = 'Magento_Sales::order/info.phtml ' ;
2626
2727 /**
28- * Core registry
29- *
3028 * @var \Magento\Framework\Registry
3129 */
3230 protected $ coreRegistry = null ;
@@ -63,6 +61,8 @@ public function __construct(
6361 }
6462
6563 /**
64+ * Prepare Layout
65+ *
6666 * @return void
6767 */
6868 protected function _prepareLayout ()
@@ -73,6 +73,8 @@ protected function _prepareLayout()
7373 }
7474
7575 /**
76+ * Get payment info html
77+ *
7678 * @return string
7779 */
7880 public function getPaymentInfoHtml ()
Original file line number Diff line number Diff line change 1818class Items extends \Magento \Sales \Block \Items \AbstractItems
1919{
2020 /**
21- * Core registry
22- *
2321 * @var \Magento\Framework\Registry
2422 */
2523 protected $ _coreRegistry = null ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ abstract class Giftmessage extends \Magento\Backend\App\Action
1515 *
1616 * @see _isAllowed()
1717 */
18- const ADMIN_RESOURCE = 'Magento_Sales::sales_order ' ;
18+ public const ADMIN_RESOURCE = 'Magento_Sales::sales_order ' ;
1919
2020 /**
2121 * Retrieve gift message save model
Original file line number Diff line number Diff line change @@ -21,11 +21,9 @@ abstract class Transactions extends \Magento\Backend\App\Action
2121 *
2222 * @see _isAllowed()
2323 */
24- const ADMIN_RESOURCE = 'Magento_Sales::transactions ' ;
24+ public const ADMIN_RESOURCE = 'Magento_Sales::transactions ' ;
2525
2626 /**
27- * Core registry
28- *
2927 * @var Registry
3028 */
3129 protected $ _coreRegistry = null ;
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ public function __construct(
2626 }
2727
2828 /**
29+ * Initializing quote product
30+ *
2931 * @param \Magento\Quote\Model\Quote $quote
3032 * @param \Magento\Catalog\Model\Product $product
3133 * @param \Magento\Framework\DataObject $config
You can’t perform that action at this time.
0 commit comments