How could I go about programmatically invoicing a single product off of a sales order of more than one product?
I.E Order X has three products,
SKU1, SKU2 & SKU3. I only want to create an invoice for SKU1.
I've looked into
\app\code\core\Mage\Adminhtml\controllers\Sales\Order\InvoiceController.php
Though I get a little stuck when I see the _getItemQtys()
method.
Could really use some advice.
Best Answer
Enhanced the answer so it's more clear when you want only a specific SKU