The method \Magento\Sales\Block\Adminhtml\Order\Invoice\Create\Items::canEditQty() can be simplified

It can be simplified to:

public function canEditQty()
{
    return !$this->getInvoice()->getOrder()->getPayment()->canCapture() 
	   || $this->getInvoice()->getOrder()->getPayment()->canCapturePartial();
}

See also: