Skip to content

Commit 2138de7

Browse files
authored
ENGCOM-4737: [Fixed] Full Tax Summary missing calculation Admin create order #22233
2 parents 4ac8a21 + 69e4a49 commit 2138de7

File tree

1 file changed

+3
-7
lines changed
  • app/code/Magento/Sales/view/adminhtml/templates/order/create/totals

1 file changed

+3
-7
lines changed

app/code/Magento/Sales/view/adminhtml/templates/order/create/totals/tax.phtml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ $taxAmount = $block->getTotal()->getValue();
3333
<?php $percent = $info['percent']; ?>
3434
<?php $amount = $info['amount']; ?>
3535
<?php $rates = $info['rates']; ?>
36-
<?php $isFirst = 1; ?>
3736

3837
<?php foreach ($rates as $rate): ?>
3938
<tr class="summary-details-<?= /* @escapeNotVerified */ $taxIter ?> summary-details<?php if ($isTop): echo ' summary-details-first'; endif; ?>" style="display:none;">
@@ -44,13 +43,10 @@ $taxAmount = $block->getTotal()->getValue();
4443
<?php endif; ?>
4544
<br />
4645
</td>
47-
<?php if ($isFirst): ?>
48-
<td style="<?= /* @escapeNotVerified */ $block->getTotal()->getStyle() ?>" class="admin__total-amount" rowspan="<?= count($rates) ?>">
49-
<?= /* @escapeNotVerified */ $block->formatPrice($amount) ?>
50-
</td>
51-
<?php endif; ?>
46+
<td style="<?= /* @escapeNotVerified */ $block->getTotal()->getStyle() ?>" class="admin__total-amount">
47+
<?= /* @escapeNotVerified */ $block->formatPrice(($amount*(float)$rate['percent'])/$percent) ?>
48+
</td>
5249
</tr>
53-
<?php $isFirst = 0; ?>
5450
<?php $isTop = 0; ?>
5551
<?php endforeach; ?>
5652
<?php endforeach; ?>

0 commit comments

Comments
 (0)