File tree Expand file tree Collapse file tree 15 files changed +25
-25
lines changed
app/code/Magento/Sales/view
creditmemo/items/renderer Expand file tree Collapse file tree 15 files changed +25
-25
lines changed Original file line number Diff line number Diff line change 8
8
<table class="qty-table">
9
9
<tr>
10
10
<th><?= $ block ->escapeHtml (__ ('Ordered ' )); ?> </th>
11
- <td><?= (int ) $ item ->getQtyOrdered () ?> </td>
11
+ <td><?= (float ) $ item ->getQtyOrdered () ?> </td>
12
12
</tr>
13
13
14
14
<?php if ((float )$ item ->getQtyInvoiced ()) : ?>
15
15
<tr>
16
16
<th><?= $ block ->escapeHtml (__ ('Invoiced ' )); ?> </th>
17
- <td><?= (int ) $ item ->getQtyInvoiced () ?> </td>
17
+ <td><?= (float ) $ item ->getQtyInvoiced () ?> </td>
18
18
</tr>
19
19
<?php endif ; ?>
20
20
21
21
<?php if ((float )$ item ->getQtyShipped ()) : ?>
22
22
<tr>
23
23
<th><?= $ block ->escapeHtml (__ ('Shipped ' )); ?> </th>
24
- <td><?= (int ) $ item ->getQtyShipped () ?> </td>
24
+ <td><?= (float ) $ item ->getQtyShipped () ?> </td>
25
25
</tr>
26
26
<?php endif ; ?>
27
27
28
28
<?php if ((float )$ item ->getQtyRefunded ()) : ?>
29
29
<tr>
30
30
<th><?= $ block ->escapeHtml (__ ('Refunded ' )); ?> </th>
31
- <td><?= (int ) $ item ->getQtyRefunded () ?> </td>
31
+ <td><?= (float ) $ item ->getQtyRefunded () ?> </td>
32
32
</tr>
33
33
<?php endif ; ?>
34
34
35
35
<?php if ((float )$ item ->getQtyCanceled ()) : ?>
36
36
<tr>
37
37
<th><?= $ block ->escapeHtml (__ ('Canceled ' )); ?> </th>
38
- <td><?= (int ) $ item ->getQtyCanceled () ?> </td>
38
+ <td><?= (float ) $ item ->getQtyCanceled () ?> </td>
39
39
</tr>
40
40
<?php endif ; ?>
41
41
Original file line number Diff line number Diff line change 115
115
<td class="col-qty">
116
116
<input name="item[<?= (int ) $ _item ->getId () ?> ][qty]"
117
117
class="input-text item-qty admin__control-text"
118
- value="<?= (int ) $ _item ->getQty () ?> "
118
+ value="<?= (float ) $ _item ->getQty () ?> "
119
119
maxlength="12" />
120
120
</td>
121
121
<td class="col-subtotal col-price">
Original file line number Diff line number Diff line change 58
58
59
59
<?php if ($ block ->canDisplayItemQty ()) : ?>
60
60
<td class="col-qty">
61
- <?= (int ) $ block ->getItemQty ($ _item ) ?>
61
+ <?= (float ) $ block ->getItemQty ($ _item ) ?>
62
62
</td>
63
63
<?php endif ; ?>
64
64
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>
You can’t perform that action at this time.
0 commit comments