When you create a customer there is a VAT registration box. This is not a mandatory field however, should either you or your customer require their vat registration to be present on the invoice it need to be entered here as it cannot be entered when creating the sales invoice it needs to present in the customers details.
The invoice layouts within the system has a dynamic field which allows the vat registration to be shown if present in the customer setup.
Once entered save your customer details, create the invoice for the customer and then select to Show invoice their vat registration will be displayed.