title: How to get Invoice data in magento?
body: <p>i am trying here ,
  see i am getting order data but, i am not getting any $order->hasInvoice()</p>
  
  <pre><code>$orderID = 100000062;
  $order = Mage::getModel('sales/order')-&gt;load($orderID);
  if ($order-&gt;hasInvoices()) {
      $invIncrementIDs = array();
      foreach ($order-&gt;getInvoiceCollection() as $inv) {
          $invIncrementIDs[] = $inv-&gt;getIncrementId();
      } Mage::log($invIncrementIDs);
  }
  </code></pre>