File tree Expand file tree Collapse file tree 13 files changed +18
-18
lines changed
app/code/Magento/Sales/view
adminhtml/templates/order
creditmemo/items/renderer Expand file tree Collapse file tree 13 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 105
105
type="checkbox"
106
106
class="admin__control-checkbox"
107
107
name="sidebar[<?= $ block ->escapeHtmlAttr ($ block ->getSidebarStorageAction ()) ?> ][<?= (int ) $ block ->getIdentifierId ($ _item ) ?> ]"
108
- value="<?= $ block ->canDisplayItemQty () ? (int ) $ _item ->getQty () : 1 ?> "
108
+ value="<?= $ block ->canDisplayItemQty () ? (float ) $ _item ->getQty () : 1 ?> "
109
109
title="<?= $ block ->escapeHtml (__ ('Add To Order ' )) ?> "/>
110
110
<label class="admin__field-label"
111
111
for="sidebar-<?= $ block ->escapeHtmlAttr ($ block ->getSidebarStorageAction ()) ?> -<?= (int ) $ block ->getIdentifierId ($ _item ) ?> ">
Original file line number Diff line number Diff line change 29
29
<input type="text"
30
30
class="input-text admin__control-text qty-input"
31
31
name="creditmemo[items][<?= (int ) $ _item ->getOrderItemId () ?> ][qty]"
32
- value="<?= (int ) $ _item ->getQty () ?> "/>
32
+ value="<?= (float ) $ _item ->getQty () ?> "/>
33
33
<?php else : ?>
34
- <?= (int ) $ _item ->getQty () ?>
34
+ <?= (float ) $ _item ->getQty () ?>
35
35
<?php endif ; ?>
36
36
</td>
37
37
<td class="col-subtotal">
Original file line number Diff line number Diff line change 13
13
<td class="col-price">
14
14
<?= $ block ->getColumnHtml ($ _item , 'price ' ) ?>
15
15
</td>
16
- <td class="col-qty"><?= (int ) $ _item ->getQty () ?> </td>
16
+ <td class="col-qty"><?= (float ) $ _item ->getQty () ?> </td>
17
17
<td class="col-subtotal">
18
18
<?= $ block ->getColumnHtml ($ _item , 'subtotal ' ) ?>
19
19
</td>
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ $_order = $block->getOrder() ?>
41
41
<br /><?= $ block ->escapeHtml (__ ('Message: ' )) ?> <br /> <?= $ block ->escapeHtml ($ _giftMessage ->getMessage ()) ?>
42
42
<?php endif ; ?>
43
43
</td>
44
- <td align="center" valign="top" style="padding:3px 9px"><?= (int ) $ _item ->getQtyOrdered () ?> </td>
44
+ <td align="center" valign="top" style="padding:3px 9px"><?= (float ) $ _item ->getQtyOrdered () ?> </td>
45
45
<td align="right" valign="top" style="padding:3px 9px"><?= /* @noEscape */ $ _order ->formatPrice ($ _item ->getRowTotal ()) ?> </td>
46
46
</tr>
47
47
<?php endforeach ; ?>
Original file line number Diff line number Diff line change 16
16
<?php if ($ block ->canEditQty ()) : ?>
17
17
<input type="text" class="input-text admin__control-text qty-input"
18
18
name="invoice[items][<?= (int ) $ _item ->getOrderItemId () ?> ]"
19
- value="<?= (int ) $ _item ->getQty () ?> "/>
19
+ value="<?= (float ) $ _item ->getQty () ?> "/>
20
20
<?php else : ?>
21
- <?= (int ) $ _item ->getQty () ?>
21
+ <?= (float ) $ _item ->getQty () ?>
22
22
<?php endif ; ?>
23
23
</td>
24
24
<td class="col-subtotal">
Original file line number Diff line number Diff line change 13
13
<td class="col-price">
14
14
<?= $ block ->getColumnHtml ($ _item , 'price ' ) ?>
15
15
</td>
16
- <td class="col-qty"><?= (int ) $ _item ->getQty () ?> </td>
16
+ <td class="col-qty"><?= (float ) $ _item ->getQty () ?> </td>
17
17
<td class="col-subtotal">
18
18
<?= $ block ->getColumnHtml ($ _item , 'subtotal ' ) ?>
19
19
</td>
Original file line number Diff line number Diff line change 27
27
<?php endif ; ?>
28
28
<?= $ block ->escapeHtml ($ _item ->getDescription ()) ?>
29
29
</td>
30
- <td class="item-qty"><?= (int ) $ _item ->getQty () ?> </td>
30
+ <td class="item-qty"><?= (float ) $ _item ->getQty () ?> </td>
31
31
<td class="item-price">
32
32
<?= /* @noEscape */ $ block ->getItemPrice ($ _item ) ?>
33
33
</td>
Original file line number Diff line number Diff line change 26
26
<?php endif ; ?>
27
27
<?= $ block ->escapeHtml ($ _item ->getDescription ()) ?>
28
28
</td>
29
- <td class="item-qty"><?= (int ) $ _item ->getQty () ?> </td>
29
+ <td class="item-qty"><?= (float ) $ _item ->getQty () ?> </td>
30
30
<td class="item-price">
31
31
<?= /* @noEscape */ $ block ->getItemPrice ($ _item ->getOrderItem ()) ?>
32
32
</td>
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ $_order = $_item->getOrder();
32
32
<?php endif ; ?>
33
33
<?= $ block ->escapeHtml ($ _item ->getDescription ()) ?>
34
34
</td>
35
- <td class="item-qty"><?= (int ) $ _item ->getQtyOrdered () ?> </td>
35
+ <td class="item-qty"><?= (float ) $ _item ->getQtyOrdered () ?> </td>
36
36
<td class="item-price">
37
37
<?= /* @noEscape */ $ block ->getItemPrice ($ _item ) ?>
38
38
</td>
Original file line number Diff line number Diff line change @@ -26,5 +26,5 @@ $_item = $block->getItem() ?>
26
26
<?php endif ; ?>
27
27
<?= $ block ->escapeHtml ($ _item ->getDescription ()) ?>
28
28
</td>
29
- <td class="item-qty"><?= (int ) $ _item ->getQty () ?> </td>
29
+ <td class="item-qty"><?= (float ) $ _item ->getQty () ?> </td>
30
30
</tr>
You can’t perform that action at this time.
0 commit comments