The Invoice and Purchase items need to be set up in a specific way in order to ensure that the invoices will post across to your external accounting system successfully. 

If your invoice won't post through, it could be for a variety of reasons