|
3 | 3 | * Copyright © Magento, Inc. All rights reserved.
|
4 | 4 | * See COPYING.txt for license details.
|
5 | 5 | */
|
| 6 | +/** @var $escaper \Magento\Framework\Escaper */ |
6 | 7 | ?>
|
7 |
| -<?php if ($item = $block->getItem()) : ?> |
| 8 | +<?php if ($item = $block->getItem()): ?> |
8 | 9 | <table class="qty-table">
|
9 | 10 | <tr>
|
10 |
| - <th><?= $block->escapeHtml(__('Ordered')); ?></th> |
| 11 | + <th><?= $escaper->escapeHtml(__('Ordered')); ?></th> |
11 | 12 | <td><?= (float) $item->getQtyOrdered() ?></td>
|
12 | 13 | </tr>
|
13 | 14 |
|
14 |
| - <?php if ((float)$item->getQtyInvoiced()) : ?> |
| 15 | + <?php if ((float)$item->getQtyBackordered()): ?> |
15 | 16 | <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> |
17 | 25 | <td><?= (float) $item->getQtyInvoiced() ?></td>
|
18 | 26 | </tr>
|
19 | 27 | <?php endif; ?>
|
20 | 28 |
|
21 |
| - <?php if ((float)$item->getQtyShipped()) : ?> |
| 29 | + <?php if ((float)$item->getQtyShipped()): ?> |
22 | 30 | <tr>
|
23 |
| - <th><?= $block->escapeHtml(__('Shipped')); ?></th> |
| 31 | + <th><?= $escaper->escapeHtml(__('Shipped')); ?></th> |
24 | 32 | <td><?= (float) $item->getQtyShipped() ?></td>
|
25 | 33 | </tr>
|
26 | 34 | <?php endif; ?>
|
27 | 35 |
|
28 |
| - <?php if ((float)$item->getQtyRefunded()) : ?> |
| 36 | + <?php if ((float)$item->getQtyRefunded()): ?> |
29 | 37 | <tr>
|
30 |
| - <th><?= $block->escapeHtml(__('Refunded')); ?></th> |
| 38 | + <th><?= $escaper->escapeHtml(__('Refunded')); ?></th> |
31 | 39 | <td><?= (float) $item->getQtyRefunded() ?></td>
|
32 | 40 | </tr>
|
33 | 41 | <?php endif; ?>
|
34 | 42 |
|
35 |
| - <?php if ((float)$item->getQtyCanceled()) : ?> |
| 43 | + <?php if ((float)$item->getQtyCanceled()): ?> |
36 | 44 | <tr>
|
37 |
| - <th><?= $block->escapeHtml(__('Canceled')); ?></th> |
| 45 | + <th><?= $escaper->escapeHtml(__('Canceled')); ?></th> |
38 | 46 | <td><?= (float) $item->getQtyCanceled() ?></td>
|
39 | 47 | </tr>
|
40 | 48 | <?php endif; ?>
|
|
0 commit comments