The Company Number is picked up from the Registered Number entered into the Client | View screen.
The Company Name is picked up from the Current Full Name information entered into Client | View | Edit Names screen.
If no details have been entered here, the details are picked up from the Company Name field in the Client | View