File tree Expand file tree Collapse file tree 3 files changed +14
-15
lines changed
app/code/Magento/Sales/Block/Adminhtml/Order/View/Tab Expand file tree Collapse file tree 3 files changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ class Creditmemos extends \Magento\Framework\View\Element\Text\ListText implemen
19
19
\Magento \Backend \Block \Widget \Tab \TabInterface
20
20
{
21
21
/**
22
- * @var AuthorizationInterface
23
- */
22
+ * @var AuthorizationInterface
23
+ */
24
24
private $ authorization ;
25
25
26
26
/**
@@ -40,35 +40,34 @@ public function __construct(
40
40
}
41
41
42
42
/**
43
- * { @inheritdoc}
43
+ * @inheritdoc
44
44
*/
45
45
public function getTabLabel ()
46
46
{
47
47
return __ ('Credit Memos ' );
48
48
}
49
49
50
50
/**
51
- * { @inheritdoc}
51
+ * @inheritdoc
52
52
*/
53
53
public function getTabTitle ()
54
54
{
55
55
return __ ('Order Credit Memos ' );
56
56
}
57
57
58
58
/**
59
- * { @inheritdoc}
59
+ * @inheritdoc
60
60
*/
61
61
public function canShowTab ()
62
62
{
63
63
return $ this ->authorization ->isAllowed ('Magento_Sales::creditmemo ' );
64
64
}
65
65
66
66
/**
67
- * { @inheritdoc}
67
+ * @inheritdoc
68
68
*/
69
69
public function isHidden ()
70
70
{
71
71
return false ;
72
72
}
73
73
}
74
-
Original file line number Diff line number Diff line change @@ -40,31 +40,31 @@ public function __construct(
40
40
}
41
41
42
42
/**
43
- * { @inheritdoc}
43
+ * @inheritdoc
44
44
*/
45
45
public function getTabLabel ()
46
46
{
47
47
return __ ('Invoices ' );
48
48
}
49
49
50
50
/**
51
- * { @inheritdoc}
51
+ * @inheritdoc
52
52
*/
53
53
public function getTabTitle ()
54
54
{
55
55
return __ ('Order Invoices ' );
56
56
}
57
57
58
58
/**
59
- * { @inheritdoc}
59
+ * @inheritdoc
60
60
*/
61
61
public function canShowTab ()
62
62
{
63
63
return $ this ->authorization ->isAllowed ('Magento_Sales::invoice ' );
64
64
}
65
65
66
66
/**
67
- * { @inheritdoc}
67
+ * @inheritdoc
68
68
*/
69
69
public function isHidden ()
70
70
{
Original file line number Diff line number Diff line change @@ -59,31 +59,31 @@ public function getOrder()
59
59
}
60
60
61
61
/**
62
- * { @inheritdoc}
62
+ * @inheritdoc
63
63
*/
64
64
public function getTabLabel ()
65
65
{
66
66
return __ ('Shipments ' );
67
67
}
68
68
69
69
/**
70
- * { @inheritdoc}
70
+ * @inheritdoc
71
71
*/
72
72
public function getTabTitle ()
73
73
{
74
74
return __ ('Order Shipments ' );
75
75
}
76
76
77
77
/**
78
- * { @inheritdoc}
78
+ * @inheritdoc
79
79
*/
80
80
public function canShowTab ()
81
81
{
82
82
return $ this ->authorization ->isAllowed ('Magento_Sales::ship ' ) && !$ this ->getOrder ()->getIsVirtual ();
83
83
}
84
84
85
85
/**
86
- * { @inheritdoc}
86
+ * @inheritdoc
87
87
*/
88
88
public function isHidden ()
89
89
{
You can’t perform that action at this time.
0 commit comments