Currently I can check if order already has invoice like this:

$order = Mage::getModel('sales/order')->load('1');
$hasInvoice = $order->getInvoiceCollection()->count();
if($hasInvoice > 0) return true;
else return false;

You can create invoice for all order items or just some of the order item. And the problem is i need to know if all the order item has already been invoiced?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.