@frappe.whitelist()
def get_fee_structure(program, academic_term=None):
 fee_structure = frappe.db.get_values(u'Fee Structure', {u'program': program, u'academic_term': academic_term}, u'name', as_dict=True)
 return (fee_structure[0].name if fee_structure else None)

@ frappe . whitelist ( ) def get_fee_structure ( program , academic_term = None ) : fee_structure = frappe . db . get_values ( u'Fee Structure' , { u'program' : program , u'academic_term' : academic_term } , u'name' , as_dict = True ) return ( fee_structure [ 0 ] . name if fee_structure else None )
returns fee structure .