Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-sales
Block
Adminhtml
Order
Totals.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Sales\Block\Adminhtml\Order
;
7
15
class
Totals
extends
\Magento\Sales\Block\Adminhtml\Totals
//\Magento\Sales\Block\Adminhtml\Order\AbstractOrder
16
{
22
protected
function
_initTotals
()
23
{
24
parent::_initTotals();
25
$this->_totals[
'paid'
] = new \Magento\Framework\DataObject(
26
[
27
'code'
=>
'paid'
,
28
'strong'
=>
true
,
29
'value'
=> $this->
getSource
()->getTotalPaid(),
30
'base_value'
=> $this->
getSource
()->getBaseTotalPaid(),
31
'label'
=>
__
(
'Total Paid'
),
32
'area'
=>
'footer'
,
33
]
34
);
35
$this->_totals[
'refunded'
] = new \Magento\Framework\DataObject(
36
[
37
'code'
=>
'refunded'
,
38
'strong'
=>
true
,
39
'value'
=> $this->
getSource
()->getTotalRefunded(),
40
'base_value'
=> $this->
getSource
()->getBaseTotalRefunded(),
41
'label'
=>
__
(
'Total Refunded'
),
42
'area'
=>
'footer'
,
43
]
44
);
45
$this->_totals[
'due'
] = new \Magento\Framework\DataObject(
46
[
47
'code'
=>
'due'
,
48
'strong'
=>
true
,
49
'value'
=> $this->
getSource
()->getTotalDue(),
50
'base_value'
=> $this->
getSource
()->getBaseTotalDue(),
51
'label'
=>
__
(
'Total Due'
),
52
'area'
=>
'footer'
,
53
]
54
);
55
return
$this;
56
}
57
}
Magento\Sales\Block\Adminhtml\Order\Totals\_initTotals
_initTotals()
Definition:
Totals.php:22
Magento\Sales\Block\Adminhtml\Order\Totals
Definition:
Totals.php:15
__
__()
Definition:
__.php:13
Magento\Sales\Block\Adminhtml\Totals
Definition:
Totals.php:8
Magento\Sales\Block\Adminhtml\Order
Magento\Sales\Block\Order\Totals\getSource
getSource()
Definition:
Totals.php:102