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
  • Loading branch information
sivaschenko committed Apr 21, 2019
2 parents 4ac8a21 + 69e4a49 commit 2138de7
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 2138de7

Please sign in to comment.