Changeset 3759 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
12 Nov 2008, 13:19:51 (16 years ago)
Author:
Henrik Bettermann
Message:

new school fee logig for Oyo and Okene

Location:
WAeUP_SRP/trunk/skins
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_fceokene/pay_interswitch.py

    r3690 r3759  
    5050info['site_id'] = '83'
    5151info['currency_id'] = '566'
     52pay_item_id = "8302"
    5253
    53 pay_item_id = "8302"
    5454#info['type_code'] = sbrain.course  #type_code is redundant and will be removed soon
    5555info['bank'] = ''
     
    128128    args[arg] = info[field]
    129129
     130bt_amount = 1600
     131fceokene_split = 1400
     132fceokene_amount = amount - bt_amount - fceokene_split
     133
     134xmldict = {}
     135xmldict['detail_ref'] = args['txn_ref']
     136xmldict['department'] = student_record.department
     137xmldict['faculty'] = student_record.faculty
     138xmldict['fceokene_amount'] = "%d" % int(100*fceokene_amount)
     139xmldict['bt_amount'] = "%d" % int(100*bt_amount)
     140xmldict['fceokene_split'] = "%d" % int(100*fceokene_split)
     141
     142if student_record.mode in ('ug_sw','prence',):
     143    xmldict['fceokene_acct'] = "04470040000032"
     144    xmldict['bank_id'] = '7'
     145elif student_record.mode in ('ug_ft',):
     146    xmldict['fceokene_acct'] = "2822010008611"
     147    xmldict['bank_id'] = '8'
     148else:
     149    xmldict['fceokene_acct'] = "0000000000000"
     150    xmldict['bank_id'] = '0'
     151
     152
     153xmltext = """<payment_item_detail>
     154<item_details detail_ref="%(detail_ref)s" college="FCE Okene" department="%(department)s" faculty="%(faculty)s">
     155<item_detail item_id="1" item_name="FCEOkene School Fee" item_amt="%(fceokene_amount)s" bank_id="%(bank_id)s" acct_num="%(fceokene_acct)s" />
     156<item_detail item_id="2" item_name="FCEOkene Split" item_amt="%(fceokene_split)s" bank_id="8" acct_num="2822040000037" />
     157<item_detail item_id="3" item_name="BT" item_amt="%(bt_amount)s" bank_id="89" acct_num="0061001000021095" />
     158</item_details>
     159</payment_item_detail>""" % xmldict
     160
     161info['xml_data'] = """<input type="hidden" name="xml_data" value='%s'  />""" % xmltext
     162
    130163args['Amount'] = "%d" % (total_amount)
    131164args['site_name'] = "fceokene.waeup.org"
     
    133166args['pay_item_id'] = pay_item_id
    134167args['pay_item_name'] = "FCEOKENE Tuition Payments"
    135 args['payment_params'] = 'switch_college_split'
    136 args['xml_data'] = ''
     168args['payment_params'] = 'college_split'
     169#args['xml_data'] = ''
     170#args['xml_data'] = xmltext   # info['xml_data']can be used instead
    137171info['args'] = args
     172
    138173return context.goto_interswitch_form(info=info)
     174
  • WAeUP_SRP/trunk/skins/waeup_fceoyo/getSchoolFee.py

    r3739 r3759  
    2323    if str(brain.level) == '000' and brain.review_state == 'cleared_and_validated':
    2424        if brain.department in ARTS:
    25             d['all'] = 16950
     25            d['all'] = 14770
    2626        else:
    27             d['all'] = 17550
     27            d['all'] = 15370
    2828    elif str(brain.level) == '100' and brain.review_state == 'cleared_and_validated':
    2929        if brain.department in ARTS:
     
    3131        else:
    3232            d['all'] = 10420
     33  # new addition for prence to nce-i students whose fees are different from other nce-i students
     34    elif str(brain.level) == '100' and brain.review_state == 'cleared_and_validated' and brain.entry_mode == 'prence':
     35        if brain.department in ARTS:
     36            d['all'] = 13320
     37        else:
     38            d['all'] = 14420
    3339    elif str(brain.level) == '100' and brain.review_state == 'returning':
    3440        if brain.department in ARTS:
    35             d['all'] = 7820
     41            d['all'] = 8320
    3642        else:
    37             d['all'] = 8420
     43            d['all'] = 8920
    3844    elif str(brain.level) in ('200','210','220'):
    3945        if brain.department in ARTS:
     
    5157            d['all'] = 4950
    5258        else:
    53             d['all'] = 6800           
     59            d['all'] = 5550           
    5460    else:
    5561        d['all'] = 0
  • WAeUP_SRP/trunk/skins/waeup_fceoyo/pay_interswitch.py

    r3752 r3759  
    127127    args[arg] = info[field]
    128128
    129 bt_amount = 1750
    130 fceoyo_split = 750
     129bt_amount = 2000
     130fceoyo_split = 500
    131131
    132 #getSchoolFee provides pure school fee, the fees have to be added
     132#getSchoolFee provides pure school fee, the other fees have to be added
    133133total_amount = 100* (amount + interswitch_amount + bt_amount + fceoyo_split)       
    134134
     
    142142
    143143if student_record.mode in ('ug_sw','prence',):
    144     xmldict['fceoyo_acct'] = "0285001000000899"
     144    xmldict['fceoyo_acct'] = "0061001000021076"
    145145    xmldict['bank_id'] = '89'
    146146elif student_record.mode in ('ug_ft',):
    147     xmldict['fceoyo_acct'] = "1681001000137"
     147    xmldict['fceoyo_acct'] = "3030010073"
    148148    xmldict['bank_id'] = '125'
    149149else:
     
    157157<item_details detail_ref="%(detail_ref)s" college="fceoyo" department="%(department)s" faculty="%(faculty)s" >
    158158<item_detail item_id="1" item_name="FCEOyo School Fee" item_amt="%(amount)s" bank_id="%(bank_id)s" acct_num="%(fceoyo_acct)s" />
    159 <item_detail item_id="2" item_name="FCEOyo Split" item_amt="%(fceoyo_split)s" bank_id="125" acct_num="1681001000119" />
    160 <item_detail item_id="3" item_name="BT" item_amt="%(bt_amount)s" bank_id="89" acct_num="0061001000021095" />
     159<item_detail item_id="2" item_name="FCEOyo Split" item_amt="%(fceoyo_split)s" bank_id="125" acct_num="3030010076" />
     160<item_detail item_id="3" item_name="BT" item_amt="%(bt_amount)s" bank_id="89" acct_num="0061001000021096" />
    161161</item_details>
    162162</payment_item_detail>""" % xmldict
  • WAeUP_SRP/trunk/skins/waeup_upload/uploads_form.pt

    r3733 r3759  
    200200            <tr tal:repeat="row python:info['imported'][:10]"
    201201                tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
    202               <td nowrap tal:condition="python:len(row['id']) > 30" tal:content="python:row['id'][:15] + '[...].done'" ></td>
    203               <td tal:condition="python:len(row['id']) <= 30" tal:content="python:row['id'] + '.done'" ></td>
     202              <td nowrap tal:condition="python:len(row['id']) > 8" tal:content="python:row['id'][:8] + '[...].done'" ></td>
     203              <td tal:condition="python:len(row['id']) <= 8" tal:content="python:row['id'] + '.done'" ></td>
    204204              <td tal:content="row/import_layout"></td>
    205205              <td tal:content="row/uploaded_by" ></td>
Note: See TracChangeset for help on using the changeset viewer.