def get_default_currency():
 company = get_default_company()
 if company:
  return frappe.db.get_value(u'Company', company, u'default_currency')

def get_default_currency ( ) : company = get_default_company ( ) if company : return frappe . db . get_value ( u'Company' , company , u'default_currency' )
returns the currency of the default company .