Print Format in erpnext

Ohh, you are using print format builder.
Please check my images

Steps:

  1. in print format builder UI, Drag Custom HTML into location you want to print.
  2. Click on Edit Html
  3. write this code {{ frappe.db.get_value(‘Customer’, doc.customer, ‘customer_type’) }}
  4. refresh your print format. This will show customer details as Individual
1 Like