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
17
17
/**
18
18
* Block alias fallback
19
19
*/
20
- const DEFAULT_TYPE = 'default ' ;
20
+ public const DEFAULT_TYPE = 'default ' ;
21
21
22
22
/**
23
23
* Retrieve item renderer block
Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ public function __construct(
51
51
}
52
52
53
53
/**
54
+ * Prepare Layout
55
+ *
54
56
* @return void
55
57
*/
56
58
protected function _prepareLayout ()
@@ -61,6 +63,8 @@ protected function _prepareLayout()
61
63
}
62
64
63
65
/**
66
+ * Get payment info html
67
+ *
64
68
* @return string
65
69
*/
66
70
public function getPaymentInfoHtml ()
@@ -105,6 +109,8 @@ public function getBackTitle()
105
109
}
106
110
107
111
/**
112
+ * Invoice URL getter
113
+ *
108
114
* @param object $order
109
115
* @return string
110
116
*/
@@ -114,6 +120,8 @@ public function getInvoiceUrl($order)
114
120
}
115
121
116
122
/**
123
+ * Shipment URL getter
124
+ *
117
125
* @param object $order
118
126
* @return string
119
127
*/
@@ -123,6 +131,8 @@ public function getShipmentUrl($order)
123
131
}
124
132
125
133
/**
134
+ * Get order view URL
135
+ *
126
136
* @param object $order
127
137
* @return string
128
138
*/
@@ -132,6 +142,8 @@ public function getViewUrl($order)
132
142
}
133
143
134
144
/**
145
+ * Get CreditMemo Print Url
146
+ *
135
147
* @param object $creditmemo
136
148
* @return string
137
149
*/
@@ -141,6 +153,8 @@ public function getPrintCreditmemoUrl($creditmemo)
141
153
}
142
154
143
155
/**
156
+ * Get PrintAll CreditMemos Url
157
+ *
144
158
* @param object $order
145
159
* @return string
146
160
*/
Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Sales \Block \Order ;
7
7
8
- use Magento \Sales \Model \Order \Address ;
9
- use Magento \Framework \View \Element \Template \Context as TemplateContext ;
10
8
use Magento \Framework \Registry ;
9
+ use Magento \Framework \View \Element \Template \Context as TemplateContext ;
11
10
use Magento \Payment \Helper \Data as PaymentHelper ;
11
+ use Magento \Sales \Model \Order \Address ;
12
12
use Magento \Sales \Model \Order \Address \Renderer as AddressRenderer ;
13
13
14
14
/**
@@ -25,8 +25,6 @@ class Info extends \Magento\Framework\View\Element\Template
25
25
protected $ _template = 'Magento_Sales::order/info.phtml ' ;
26
26
27
27
/**
28
- * Core registry
29
- *
30
28
* @var \Magento\Framework\Registry
31
29
*/
32
30
protected $ coreRegistry = null ;
@@ -63,6 +61,8 @@ public function __construct(
63
61
}
64
62
65
63
/**
64
+ * Prepare Layout
65
+ *
66
66
* @return void
67
67
*/
68
68
protected function _prepareLayout ()
@@ -73,6 +73,8 @@ protected function _prepareLayout()
73
73
}
74
74
75
75
/**
76
+ * Get payment info html
77
+ *
76
78
* @return string
77
79
*/
78
80
public function getPaymentInfoHtml ()
Original file line number Diff line number Diff line change 18
18
class Items extends \Magento \Sales \Block \Items \AbstractItems
19
19
{
20
20
/**
21
- * Core registry
22
- *
23
21
* @var \Magento\Framework\Registry
24
22
*/
25
23
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
15
15
*
16
16
* @see _isAllowed()
17
17
*/
18
- const ADMIN_RESOURCE = 'Magento_Sales::sales_order ' ;
18
+ public const ADMIN_RESOURCE = 'Magento_Sales::sales_order ' ;
19
19
20
20
/**
21
21
* 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
21
21
*
22
22
* @see _isAllowed()
23
23
*/
24
- const ADMIN_RESOURCE = 'Magento_Sales::transactions ' ;
24
+ public const ADMIN_RESOURCE = 'Magento_Sales::transactions ' ;
25
25
26
26
/**
27
- * Core registry
28
- *
29
27
* @var Registry
30
28
*/
31
29
protected $ _coreRegistry = null ;
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ public function __construct(
26
26
}
27
27
28
28
/**
29
+ * Initializing quote product
30
+ *
29
31
* @param \Magento\Quote\Model\Quote $quote
30
32
* @param \Magento\Catalog\Model\Product $product
31
33
* @param \Magento\Framework\DataObject $config
You can’t perform that action at this time.
0 commit comments