Ohh, you are using print format builder.
Please check my images
Steps:
- in print format builder UI, Drag Custom HTML into location you want to print.
- Click on Edit Html
- write this code {{ frappe.db.get_value(‘Customer’, doc.customer, ‘customer_type’) }}
- refresh your print format. This will show customer details as Individual