def get_account_name(account_type=None, root_type=None, is_group=None, account_currency=None, company=None):
 return frappe.db.get_value(u'Account', {u'account_type': (account_type or u''), u'root_type': (root_type or u''), u'is_group': (is_group or 0), u'account_currency': (account_currency or frappe.defaults.get_defaults().currency), u'company': (company or frappe.defaults.get_defaults().company)}, u'name')

def get_account_name ( account_type = None , root_type = None , is_group = None , account_currency = None , company = None ) : return frappe . db . get_value ( u'Account' , { u'account_type' : ( account_type or u'' ) , u'root_type' : ( root_type or u'' ) , u'is_group' : ( is_group or 0 ) , u'account_currency' : ( account_currency or frappe . defaults . get_defaults ( ) . currency ) , u'company' : ( company or frappe . defaults . get_defaults ( ) . company ) } , u'name' )
return account based on matching conditions .