Currency symbol in Quotes / Purchase Order , etc

current option selected
main company currency : INR
Quote / Purchase order currency : USD

In quotation / purchase order / etc. when tring to print
code : {{ doc.currency }} {{ frappe.db.get_value(“Currency”, currency, “symbol”) }}
output : USD ₹

correct output should be : USD $

This seems to be working fine in the cloud test instance.

have you tried printing by using this code {{ frappe.db.get_value(“Currency”, currency, “symbol”) }} .the ouput i want is what i am not getting

{{frappe.db.get_value(“Currency”, doc.currency , “symbol”)}}