Skip to content

Commit 52229c0

Browse files
committed
Merge remote-tracking branch '38320/2.4-develop' into comm_prs_248beta1
2 parents 907ff23 + a68f23a commit 52229c0

File tree

1 file changed

+18
-10
lines changed
  • app/code/Magento/Sales/view/adminhtml/templates/items/column

1 file changed

+18
-10
lines changed

app/code/Magento/Sales/view/adminhtml/templates/items/column/qty.phtml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,38 +3,46 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
/** @var $escaper \Magento\Framework\Escaper */
67
?>
7-
<?php if ($item = $block->getItem()) : ?>
8+
<?php if ($item = $block->getItem()): ?>
89
<table class="qty-table">
910
<tr>
10-
<th><?= $block->escapeHtml(__('Ordered')); ?></th>
11+
<th><?= $escaper->escapeHtml(__('Ordered')); ?></th>
1112
<td><?= (float) $item->getQtyOrdered() ?></td>
1213
</tr>
1314

14-
<?php if ((float)$item->getQtyInvoiced()) : ?>
15+
<?php if ((float)$item->getQtyBackordered()): ?>
1516
<tr>
16-
<th><?= $block->escapeHtml(__('Invoiced')); ?></th>
17+
<th><?= $escaper->escapeHtml(__('Backordered')); ?></th>
18+
<td><?= (float) $item->getQtyBackordered() ?></td>
19+
</tr>
20+
<?php endif; ?>
21+
22+
<?php if ((float)$item->getQtyInvoiced()): ?>
23+
<tr>
24+
<th><?= $escaper->escapeHtml(__('Invoiced')); ?></th>
1725
<td><?= (float) $item->getQtyInvoiced() ?></td>
1826
</tr>
1927
<?php endif; ?>
2028

21-
<?php if ((float)$item->getQtyShipped()) : ?>
29+
<?php if ((float)$item->getQtyShipped()): ?>
2230
<tr>
23-
<th><?= $block->escapeHtml(__('Shipped')); ?></th>
31+
<th><?= $escaper->escapeHtml(__('Shipped')); ?></th>
2432
<td><?= (float) $item->getQtyShipped() ?></td>
2533
</tr>
2634
<?php endif; ?>
2735

28-
<?php if ((float)$item->getQtyRefunded()) : ?>
36+
<?php if ((float)$item->getQtyRefunded()): ?>
2937
<tr>
30-
<th><?= $block->escapeHtml(__('Refunded')); ?></th>
38+
<th><?= $escaper->escapeHtml(__('Refunded')); ?></th>
3139
<td><?= (float) $item->getQtyRefunded() ?></td>
3240
</tr>
3341
<?php endif; ?>
3442

35-
<?php if ((float)$item->getQtyCanceled()) : ?>
43+
<?php if ((float)$item->getQtyCanceled()): ?>
3644
<tr>
37-
<th><?= $block->escapeHtml(__('Canceled')); ?></th>
45+
<th><?= $escaper->escapeHtml(__('Canceled')); ?></th>
3846
<td><?= (float) $item->getQtyCanceled() ?></td>
3947
</tr>
4048
<?php endif; ?>

0 commit comments

Comments
 (0)