@frappe.whitelist()
def get_fee_schedule(program, student_category=None):
 fs = frappe.get_list(u'Program Fee', fields=[u'academic_term', u'fee_structure', u'due_date', u'amount'], filters={u'parent': program, u'student_category': student_category}, order_by=u'idx')
 return fs

@ frappe . whitelist ( ) def get_fee_schedule ( program , student_category = None ) : fs = frappe . get_list ( u'Program Fee' , fields = [ u'academic_term' , u'fee_structure' , u'due_date' , u'amount' ] , filters = { u'parent' : program , u'student_category' : student_category } , order_by = u'idx' ) return fs
returns fee schedule .