![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/module-sales/view/adminhtml/templates/order/totals/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ ?> <?php $_source = $block->getSource() ?> <?php $_order = $block->getOrder() ?> <?php $block->setPriceDataObject($_source) ?> <?php if ((float) $_source->getDiscountAmount()) : ?> <tr> <td class="label"> <?php if ($_order->getCouponCode()) : ?> <?= $block->escapeHtml(__('Discount (%1)', $_order->getCouponCode())) ?> <?php else : ?> <?= $block->escapeHtml(__('Discount')) ?> <?php endif; ?> </td> <td><?= /* @noEscape */ $block->displayPriceAttribute('discount_amount') ?></td> </tr> <?php endif; ?>