File tree Expand file tree Collapse file tree 5 files changed +10
-8
lines changed
app/code/Magento/Sales/view/adminhtml/templates Expand file tree Collapse file tree 5 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
- ?>
6
+ ?>
7
7
<script>
8
8
require([
9
9
"prototype",
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ $_order = $block->getOrder() ?>
44
44
<td align="center" valign="top" style="padding:3px 9px"><?= (int ) $ _item ->getQtyOrdered ()*1 ?> </td>
45
45
<td align="right" valign="top" style="padding:3px 9px"><?= /* @noEscape */ $ _order ->formatPrice ($ _item ->getRowTotal ()) ?> </td>
46
46
</tr>
47
- <?php endforeach ?>
47
+ <?php endforeach ; ?>
48
48
</tbody>
49
49
50
50
<tfoot>
@@ -57,7 +57,7 @@ $_order = $block->getOrder() ?>
57
57
<br /><?= $ block ->escapeHtml (__ ('Message: ' )) ?> <br /> <?= $ block ->escapeHtml ($ _giftMessage ->getMessage ()) ?>
58
58
</td>
59
59
</tr>
60
- <?php endif ; ?>
60
+ <?php endif ; ?>
61
61
<tr>
62
62
<td colspan="2" align="right" style="padding:3px 9px"><?= $ block ->escapeHtml (__ ('Subtotal ' )) ?> </td>
63
63
<td align="right" style="padding:3px 9px"><?= /* @noEscape */ $ _order ->formatPrice ($ _order ->getSubtotal ()) ?> </td>
Original file line number Diff line number Diff line change 7
7
// @deprecated
8
8
$ totals = $ block ->getTotals ();
9
9
?>
10
- <?php if ($ totals && count ($ totals ) > 0 ) : ?>
10
+ <?php if ($ totals && ! empty ($ totals )) : ?>
11
11
<table class="items-to-invoice">
12
12
<tr>
13
- <?php foreach ($ totals as $ total ): ?>
14
- <td <?php if ($ total ['grand ' ]): ?> class="grand-total"<?php endif ; ?> >
13
+ <?php foreach ($ totals as $ total ) : ?>
14
+ <td <?php if ($ total ['grand ' ]) :
15
+ ?> class="grand-total"<?php
16
+ endif ; ?> >
15
17
<?= $ block ->escapeHtml ($ total ['label ' ]) ?> <br />
16
18
<?= $ block ->escapeHtml ($ total ['value ' ]) ?>
17
19
</td>
Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
?>
7
- <?php if ($ block ->getCanDisplayTotalPaid ()): ?>
7
+ <?php if ($ block ->getCanDisplayTotalPaid ()) : ?>
8
8
<tr>
9
9
<td class="label"><strong><?= $ block ->escapeHtml (__ ('Total Paid ' )) ?> </strong></td>
10
10
<td class="emph"><?= /* @noEscape */ $ block ->displayPriceAttribute ('total_paid ' , true ) ?>
Original file line number Diff line number Diff line change 6
6
7
7
/** @var $block \Magento\Sales\Block\Adminhtml\Rss\Order\Grid\Link */
8
8
?>
9
- <?php if ($ block ->isRssAllowed () && $ block ->getLink ()): ?>
9
+ <?php if ($ block ->isRssAllowed () && $ block ->getLink ()) : ?>
10
10
<a href="<?= $ block ->escapeUrl ($ block ->getLink ()) ?> " class="link-feed"><?= $ block ->escapeHtml ($ block ->getLabel ()) ?> </a>
11
11
<?php endif ; ?>
You can’t perform that action at this time.
0 commit comments