@frappe.whitelist()
def get_fee_components(fee_structure):
 if fee_structure:
  fs = frappe.get_list(u'Fee Component', fields=[u'fees_category', u'amount'], filters={u'parent': fee_structure}, order_by=u'idx')
  return fs

@ frappe . whitelist ( ) def get_fee_components ( fee_structure ) : if fee_structure : fs = frappe . get_list ( u'Fee Component' , fields = [ u'fees_category' , u'amount' ] , filters = { u'parent' : fee_structure } , order_by = u'idx' ) return fs
returns fee components .