- Timestamp:
- 13 Jan 2023, 08:31:28 (2 years ago)
- Location:
- main/kofacustom.unidel/trunk/src/kofacustom/unidel/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/student.py
r17114 r17278 39 39 def transcript_enabled(self): 40 40 user = get_current_principal() 41 if user.id in ('admin', 'isouaba', 'niyi', 'delejason'): 42 return True 43 return False 44 45 @property 46 def is_jupeb(self): 47 if self.faccode.startswith('JUPEB'): 41 if user.id in ('admin', ): 48 42 return True 49 43 return False -
main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/tests/test_export.py
r16721 r17278 104 104 self.assertMatches( 105 105 'ac,amount_auth,creation_date,gateway_amt,net_amt,' 106 'p_category,p_combi,p_curren t,'106 'p_category,p_combi,p_currency,p_current,' 107 107 'p_id,p_item,p_level,p_option,p_session,p_state,payment_date,provider_amt,' 108 108 'r_amount_approved,r_card_num,r_code,r_company,r_desc,' 109 'r_pay_reference, thirdparty_amt,student_id,state,'109 'r_pay_reference,r_payment_link,thirdparty_amt,student_id,state,' 110 110 'current_session\r\n' 111 '666,12.12,%s-04-01 13:12:01#,,,schoolfee,[], 1,my-id,p-item,'111 '666,12.12,%s-04-01 13:12:01#,,,schoolfee,[],,1,my-id,p-item,' 112 112 '100,,%s,paid,%s-04-01 14:12:01#,,12.12,' 113 '789,r-code,interswatch,,,, A111111,created,2012\r\n'113 '789,r-code,interswatch,,,,,A111111,created,2012\r\n' 114 114 % (curr_year-6, curr_year-6, curr_year-6), result 115 115 ) -
main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py
r17202 r17278 90 90 amount = getattr(certificate, 'school_fee_2', 0.0) 91 91 else: 92 if student. is_jupeb:92 if student.faccode == 'JUPEB': 93 93 if not self._clearancePaymentMade(student): 94 94 return _(u'Acceptance fee must be paid first.'), None … … 118 118 ), None 119 119 amount = getattr(certificate, 'school_fee_2', 0.0) 120 if amount and not local(student) and not student.is_jupeb \ 121 and student.faccode != 'PRE': 120 if amount and not local(student) and not student.faccode in ('PRE', 'JUPEB'): 122 121 amount += 40000 123 122 elif category == 'clearance': … … 133 132 if student.faccode == 'PRE': 134 133 amount = 20000.0 135 if student. is_jupeb:134 if student.faccode == 'JUPEB': 136 135 amount = 25000.0 137 136 elif category == 'bed_allocation':
Note: See TracChangeset for help on using the changeset viewer.