Skip to content

Commit

Permalink
Fix Issue #27350
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav-473 authored Apr 4, 2020
1 parent c23f73a commit 2f8b560
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<?php $items = $block->getChildren($_item); ?>
<?php $_count = count($items) ?>
<?php $_index = 0 ?>

<?php $canEditItemQty = true ?>
<?php $_prevOptionId = '' ?>

<?php if ($block->getOrderOptions() || $_item->getDescription()) : ?>
Expand All @@ -34,7 +34,7 @@
<?php if ($_item->getOrderItem()->getParentItem()) : ?>
<?php
if ($shipTogether) {
continue;
$canEditItemQty = false;
}
?>
<?php $attributes = $block->getSelectionAttributes($_item) ?>
Expand Down Expand Up @@ -124,7 +124,7 @@
</td>
<td class="col-qty-invoice">
<?php if ($block->canShowPriceInfo($_item) || $shipTogether) : ?>
<?php if ($block->canEditQty()) : ?>
<?php if ($block->canEditQty() && $canEditItemQty) : ?>
<input type="text"
class="input-text admin__control-text qty-input"
name="invoice[items][<?= $block->escapeHtmlAttr($_item->getOrderItemId()) ?>]"
Expand Down

0 comments on commit 2f8b560

Please sign in to comment.