Fetching HSN/SAC code in custom print format

hey guys,
do you have any idea about fetching gst_hsn_code of item in custom print format?

Which DocType are you trying to print?

I trying to get gst_hsn_code in sales invoice doctype

  • Please ensure you’ve installed India Compliance if you’re using v14 or above.
  • Do you see the following field in your sales invoice item?

If you can see the field, you should be able to print it in custom print format like so:

{% for item in doc.items %}

{{ item.gst_hsn_code }}

{% endfor %}

thanks for the help.