Sales Invoice query

i want to fetch gst state number as per the GST number inprint format…how can i fetch that…

Have you tried this?

yes…i have wrote this…but i have one query …what i have to write in [name]…

Name of record

frappe.db.get_value("User", "sangram@gmail.com", "username")