Skip to content

Commit 2f8b560

Browse files
authored
Fix Issue #27350
1 parent c23f73a commit 2f8b560

File tree

1 file changed

+3
-3
lines changed
  • app/code/Magento/Bundle/view/adminhtml/templates/sales/invoice/create/items

1 file changed

+3
-3
lines changed

app/code/Magento/Bundle/view/adminhtml/templates/sales/invoice/create/items/renderer.phtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<?php $items = $block->getChildren($_item); ?>
1717
<?php $_count = count($items) ?>
1818
<?php $_index = 0 ?>
19-
19+
<?php $canEditItemQty = true ?>
2020
<?php $_prevOptionId = '' ?>
2121

2222
<?php if ($block->getOrderOptions() || $_item->getDescription()) : ?>
@@ -34,7 +34,7 @@
3434
<?php if ($_item->getOrderItem()->getParentItem()) : ?>
3535
<?php
3636
if ($shipTogether) {
37-
continue;
37+
$canEditItemQty = false;
3838
}
3939
?>
4040
<?php $attributes = $block->getSelectionAttributes($_item) ?>
@@ -124,7 +124,7 @@
124124
</td>
125125
<td class="col-qty-invoice">
126126
<?php if ($block->canShowPriceInfo($_item) || $shipTogether) : ?>
127-
<?php if ($block->canEditQty()) : ?>
127+
<?php if ($block->canEditQty() && $canEditItemQty) : ?>
128128
<input type="text"
129129
class="input-text admin__control-text qty-input"
130130
name="invoice[items][<?= $block->escapeHtmlAttr($_item->getOrderItemId()) ?>]"

0 commit comments

Comments
 (0)