When you try to publish an invoice, you may see the following error:
Invoice was not approved, please check it has all codes assigned.
This error indicates that not all codes have been assigned to the invoice, tax summary or line items, preventing it from publishing.
In order to clear this error you will need to check that none of the following fields are blank, and you have assigned all three of them:
Supplier Account
Category
VAT Code
If you have line items on your invoice you will need to make sure a Category and VAT code is assigned for each one. Ensure you so the same on any line items or tax summary lines that may be present on the invoice.
Once you've assigned all codes, you can publish the invoice.