Skip to content

Commit

Permalink
ENGCOM-4737: [Fixed] Full Tax Summary missing calculation Admin creat…
Browse files Browse the repository at this point in the history
…e order magento#22233

 - Merge Pull Request magento#22233 from niravkrish/magento2:fixed-tax-summary-admin-create-order
 - Merged commits:
   1. d62d278
  • Loading branch information
magento-engcom-team committed Apr 11, 2019
2 parents 8a4e356 + d62d278 commit 69e4a49
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ $taxAmount = $block->getTotal()->getValue();
<?php $percent = $info['percent']; ?>
<?php $amount = $info['amount']; ?>
<?php $rates = $info['rates']; ?>
<?php $isFirst = 1; ?>

<?php foreach ($rates as $rate): ?>
<tr class="summary-details-<?= /* @escapeNotVerified */ $taxIter ?> summary-details<?php if ($isTop): echo ' summary-details-first'; endif; ?>" style="display:none;">
Expand All @@ -44,13 +43,10 @@ $taxAmount = $block->getTotal()->getValue();
<?php endif; ?>
<br />
</td>
<?php if ($isFirst): ?>
<td style="<?= /* @escapeNotVerified */ $block->getTotal()->getStyle() ?>" class="admin__total-amount" rowspan="<?= count($rates) ?>">
<?= /* @escapeNotVerified */ $block->formatPrice($amount) ?>
</td>
<?php endif; ?>
<td style="<?= /* @escapeNotVerified */ $block->getTotal()->getStyle() ?>" class="admin__total-amount">
<?= /* @escapeNotVerified */ $block->formatPrice(($amount*(float)$rate['percent'])/$percent) ?>
</td>
</tr>
<?php $isFirst = 0; ?>
<?php $isTop = 0; ?>
<?php endforeach; ?>
<?php endforeach; ?>
Expand Down

0 comments on commit 69e4a49

Please sign in to comment.