How to add customer and supplier ref
You asked "How to add customer and supplier ref" but where do you want to add it? These fields already appear in the invoice and purchase invoice window. (for sales invoices the 'customer ref' field is labelled 'Customer PO No')