If an invoice is accessed from within admin, the customer reference is missing from the invoice.
This file contains instructions for fixing this bug.

More...