Skip to content

Commit e2968e5

Browse files
committed
Resolve Incorrect Quantity Displayed In Admin Area when used 'Qty Uses Decimals' issue 23940
1 parent 4184f63 commit e2968e5

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

app/code/Magento/Sales/view/adminhtml/templates/items/column/qty.phtml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,34 @@
88
<table class="qty-table">
99
<tr>
1010
<th><?= $block->escapeHtml(__('Ordered')); ?></th>
11-
<td><?= (int) $item->getQtyOrdered() ?></td>
11+
<td><?= (float) $item->getQtyOrdered() ?></td>
1212
</tr>
1313

1414
<?php if ((float)$item->getQtyInvoiced()) : ?>
1515
<tr>
1616
<th><?= $block->escapeHtml(__('Invoiced')); ?></th>
17-
<td><?= (int) $item->getQtyInvoiced() ?></td>
17+
<td><?= (float) $item->getQtyInvoiced() ?></td>
1818
</tr>
1919
<?php endif; ?>
2020

2121
<?php if ((float)$item->getQtyShipped()) : ?>
2222
<tr>
2323
<th><?= $block->escapeHtml(__('Shipped')); ?></th>
24-
<td><?= (int) $item->getQtyShipped() ?></td>
24+
<td><?= (float) $item->getQtyShipped() ?></td>
2525
</tr>
2626
<?php endif; ?>
2727

2828
<?php if ((float)$item->getQtyRefunded()) : ?>
2929
<tr>
3030
<th><?= $block->escapeHtml(__('Refunded')); ?></th>
31-
<td><?= (int) $item->getQtyRefunded() ?></td>
31+
<td><?= (float) $item->getQtyRefunded() ?></td>
3232
</tr>
3333
<?php endif; ?>
3434

3535
<?php if ((float)$item->getQtyCanceled()) : ?>
3636
<tr>
3737
<th><?= $block->escapeHtml(__('Canceled')); ?></th>
38-
<td><?= (int) $item->getQtyCanceled() ?></td>
38+
<td><?= (float) $item->getQtyCanceled() ?></td>
3939
</tr>
4040
<?php endif; ?>
4141

app/code/Magento/Sales/view/adminhtml/templates/order/create/items/grid.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
<td class="col-qty">
116116
<input name="item[<?= (int) $_item->getId() ?>][qty]"
117117
class="input-text item-qty admin__control-text"
118-
value="<?= (int) $_item->getQty() ?>"
118+
value="<?= (float) $_item->getQty() ?>"
119119
maxlength="12" />
120120
</td>
121121
<td class="col-subtotal col-price">

app/code/Magento/Sales/view/adminhtml/templates/order/create/sidebar/items.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
<?php if ($block->canDisplayItemQty()) : ?>
6060
<td class="col-qty">
61-
<?= (int) $block->getItemQty($_item) ?>
61+
<?= (float) $block->getItemQty($_item) ?>
6262
</td>
6363
<?php endif; ?>
6464

0 commit comments

Comments
 (0)