Changeset 3898
- Timestamp:
- 31 Jan 2009, 14:49:25 (16 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_aaue
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_aaue/getSchoolFee.py
r3873 r3898 17 17 18 18 if brain.mode.endswith('_ft'): 19 # fresh full-time remedial (not in table???)19 # fresh full-time Foundation 20 20 if str(brain.level) == '000' and brain.review_state == 'cleared_and_validated': 21 if brain. lga.startswith('edo'):21 if brain.entry_mode == 'rm_ft' and brain.lga.startswith('edo'): 22 22 d['all'] = 50000 23 23 else: 24 24 d['all'] = 60000 25 # fresh tull-time students 25 # fresh tull-time students INE 26 26 elif str(brain.level) == '100' and brain.review_state == 'cleared_and_validated' and brain.faculty == 'INE': 27 27 if brain.lga.startswith('edo'): … … 29 29 else: 30 30 d['all'] = 0 31 # returning full-time students (INE???)32 elif str(brain.level) in ('100','200','300','400','110','210','310','410') and brain.review_state == 'returning' :31 # returning full-time students INE 32 elif str(brain.level) in ('100','200','300','400','110','210','310','410') and brain.review_state == 'returning' and brain.faculty == 'INE': 33 33 if brain.lga.startswith('edo'): 34 34 d['all'] = 4300 35 35 else: 36 36 d['all'] = 0 37 # postgrad full-time students (fresh ???)37 # postgrad full-time students (fresh) 38 38 elif str(brain.level) == ('600') and brain.review_state == 'cleared_and_validated': 39 39 if brain.lga.startswith('edo'): … … 43 43 else: 44 44 d['all'] = 69500 45 # MBL students (fresh and/or returning ???)45 # MBL students (fresh or returning) 46 46 elif str(brain.level) in ('700','800','710','810') and brain.certificate in MBL: 47 47 if brain.lga.startswith('edo'): … … 51 51 else: 52 52 d['all'] = 99500 53 # non-MBL students (fresh and/or returning ???)53 # non-MBL students (fresh or returning) 54 54 elif str(brain.level) in ('700','800','710','810'): 55 55 if brain.lga.startswith('edo'): … … 59 59 else: 60 60 d['all'] = 79500 61 # PHD ????62 elif str(brain.level) in ('900',' 1000','1001'):61 # PHD Students 62 elif str(brain.level) in ('900','910','1000','1010'): 63 63 if brain.lga.startswith('edo'): 64 64 d['all'] = 99500 … … 66 66 d['all'] = 269500 67 67 else: 68 d['all'] = 109500 68 d['all'] = 109500 69 else: 70 d['all'] = 0 69 71 else: 70 72 # fresh part-time students INE 71 elif str(brain.level) == '100' and brain.review_state == 'cleared_and_validated' and brain.faculty == 'INE':73 if str(brain.level) == '100' and brain.review_state == 'cleared_and_validated' and brain.faculty == 'INE': 72 74 if brain.lga.startswith('edo'): 73 75 d['all'] = 45000 74 76 else: 75 77 d['all'] = 55000 76 # returning part-time students (INE???))77 elif str(brain.level) in ('100','200','300','400','110','210','310','410') and brain.review_state == 'returning' :78 # returning part-time students INE 79 elif str(brain.level) in ('100','200','300','400','110','210','310','410') and brain.review_state == 'returning' and brain.faculty == 'INE': 78 80 if brain.lga.startswith('edo'): 79 81 d['all'] = 30000 … … 88 90 else: 89 91 d['all'] = 74500 90 else:91 d['all'] = 092 else: 93 d['all'] = 0 92 94 93 95 … … 98 100 99 101 return d 100 -
WAeUP_SRP/trunk/skins/waeup_aaue/pay_interswitch.py
r3872 r3898 34 34 35 35 student_record = context.students_catalog.getRecordByKey(student_id) 36 #amount,description = context.getSchoolFee(student_record.faculty,student_record.session,student_record.course)37 36 info = {} 38 37 info['student'] = student_record … … 48 47 return context.interswitch_form(info=info) 49 48 50 info['site_id'] = '11 5'49 info['site_id'] = '119' 51 50 info['currency_id'] = '566' 52 51 pay_item_id = "11900" … … 72 71 p_id = "p%s" % timestamp 73 72 info['surcharge'] = interswitch_amount = 300 74 info['amount'] = amount = fee_dict['all'] 73 amount = fee_dict['all'] 74 75 bt_amount = 4000 76 aaue_split = 1000 77 info['amount'] = amount + bt_amount + aaue_split 75 78 76 79 if student_id is None: … … 78 81 79 82 if True: 80 info['action'] = "https://webpay.interswitchng.com/ paydirect/webpay/pay.aspx"83 info['action'] = "https://webpay.interswitchng.com/test_paydirect/webpay/pay.aspx" 81 84 else: 82 85 #pass … … 127 130 args[arg] = info[field] 128 131 129 bt_amount = 4000 130 aaue_split = 1000 132 131 133 132 134 #getSchoolFee provides pure school fee, the other fees have to be added 133 total_amount = 100* (amount + interswitch_amount + bt_amount + aaue_split) 135 total_amount = 100* (amount + interswitch_amount + bt_amount + aaue_split) 136 134 137 135 138 … … 141 144 xmldict['bt_amount'] = "%d" % int(100*bt_amount) 142 145 143 if student_record.mode in ('ug_ft','ug_pt','pg_ft','pgd_ft ):146 if student_record.mode in ('ug_ft','ug_pt','pg_ft','pgd_ft'): 144 147 xmldict['aaue_acct'] = "6020008887" 145 148 xmldict['bank_id'] = '123' … … 149 152 150 153 xmldict['aaue_split'] = "%d" % int(100*aaue_split) 151 152 154 153 155 xmltext = """<payment_item_detail> … … 168 170 args['payment_params'] = 'college_split' 169 171 #args['xml_data'] = '' 170 #args['xml_data'] = xmltext # info['xml_data']can be used instead172 args['xml_data'] = xmltext # info['xml_data']can be used instead 171 173 info['args'] = args 172 174
Note: See TracChangeset for help on using the changeset viewer.