Ignore:
Timestamp:
20 Jan 2010, 11:01:55 (15 years ago)
Author:
Henrik Bettermann
Message:

changes made for resolving futminna #84

Location:
WAeUP_SRP/trunk/skins/waeup_futminna
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_futminna/getAccommodationInfo.py

    r4009 r4861  
    1616import DateTime
    1717
    18 booking_disabled = True
     18booking_disabled = False
    1919
    2020request = context.REQUEST
  • WAeUP_SRP/trunk/skins/waeup_futminna/getSchoolFee.py

    r4010 r4861  
    2929            d['all'] = 72700   
    3030        elif brain.lga == 'foreigner':
    31             d['all'] = 131500 + 5000
     31            d['all'] = 131500 #+ 5000
    3232        else:
    33             d['all'] = 41500 + 5000
     33            d['all'] = 41500 #+ 5000
    3434    # returning
    3535    elif brain.review_state == 'returning':
     
    3939            d['all'] = 109500
    4040        else:
    41             d['all'] = 19500 + 5000
     41            d['all'] = 19500 #+ 5000
    4242    else:
    4343        d['all'] = 0
  • WAeUP_SRP/trunk/skins/waeup_futminna/pay_interswitch.py

    r4003 r4861  
    1 ## Script (Python) "pay_online"
     1## Script (Python) "pay_interswitch"
    22##bind container=container
    33##bind context=context
     
    5050info['site_id'] = '117'
    5151info['currency_id'] = '566'
    52 pay_item_id = "11700"
    53 
     52
     53if student_record.mode in ('pg_ft'):
     54    pay_item_id = "11703"
     55elif student_record.review_state == 'cleared_and_validated' and student_record.level in ('100'):
     56    pay_item_id = "11700"
     57elif student_record.review_state == 'cleared_and_validated' and student_record.level in ('200'):
     58    pay_item_id = "11701"   
     59elif student_record.review_state == 'returning' and student_record.level in ('100'):
     60    pay_item_id = "11701"
     61elif student_record.review_state == 'returning' and student_record.level in ('200'):
     62    pay_item_id = "11702"
     63elif student_record.review_state == 'returning' and student_record.level in ('300'):
     64    pay_item_id = "11703"
     65elif student_record.review_state == 'returning' and student_record.level in ('400','500'):
     66    pay_item_id = "11704"
     67else:
     68    pay_item_id = ""
     69   
    5470info['bank'] = ''
    5571info['payment_possible'] = True
     
    7288
    7389
    74 info['surcharge'] = interswitch_amount = '300'
     90info['surcharge'] = 0  # students don't have to pay the surcharge, FUT is paying for them
     91interswitch_amount = 300
    7592info['amount'] = amount = fee_dict['all']
    76 total_amount = 100*int(amount) + 100*int(interswitch_amount)
     93total_amount = 100*int(amount)
    7794
    7895
     
    127144bt_amount = 1500
    128145#fut_split = 0000 #not appicable
    129 fut_amount = amount - bt_amount
     146fut_amount = amount - bt_amount - interswitch_amount
    130147
    131148xmldict = {}
     
    139156
    140157#students at all levels pay their school fees to different banks
    141 if student_record.review_state == 'cleared_and_validated' and student_record.level in ('100'):
    142     if student_record.mode == 'jm_ft':
    143         xmldict['fut_acct'] = "0030001000016190"
    144         xmldict['bank_id'] = '89'
    145     else:
    146         xmldict['fut_acct'] = "0510031193719"
    147         xmldict['bank_id'] = '75'
     158
     159if student_record.mode == 'jm_ft':
     160    xmldict['fut_acct'] = "000000000000"
     161    xmldict['bank_id'] = '0'
     162elif student_record.mode in ('pg_ft'):
     163    xmldict['fut_acct'] = "2522040000134"
     164    xmldict['bank_id'] = '8'
     165elif student_record.review_state == 'cleared_and_validated' and student_record.level in ('100'):
     166    xmldict['fut_acct'] = "0030001000017110"
     167    xmldict['bank_id'] = '89'
     168elif student_record.review_state == 'cleared_and_validated' and student_record.level in ('200'):
     169    xmldict['fut_acct'] = "0591201005146"
     170    xmldict['bank_id'] = '101'
    148171elif student_record.review_state == 'returning' and student_record.level in ('100'):   
    149     if student_record.mode == 'jm_ft':
    150         xmldict['fut_acct'] = "0030001000016190"
    151         xmldict['bank_id'] = '89'       
    152     else:
    153         xmldict['fut_acct'] = "0030001000017110"
    154         xmldict['bank_id'] = '89'
     172    xmldict['fut_acct'] = "0591201005146"
     173    xmldict['bank_id'] = '101'
    155174elif student_record.level in ('200'):
     175    xmldict['fut_acct'] = "6013803345"
     176    xmldict['bank_id'] = '117' 
     177elif student_record.level in ('300'):
    156178    xmldict['fut_acct'] = "2522040000134"
    157179    xmldict['bank_id'] = '8' 
    158 elif student_record.level in ('300','400'):
    159     xmldict['fut_acct'] = "0591201005146"
    160     xmldict['bank_id'] = '101' 
    161 elif student_record.level in ('500'):
    162     xmldict['fut_acct'] = "0030001000017110"
    163     xmldict['bank_id'] = '89'   
     180elif student_record.level in ('400','500'):
     181    xmldict['fut_acct'] = "02530040000664"
     182    xmldict['bank_id'] = '7'   
    164183#remedial students
    165 elif student_record.level in ('000'):
    166     xmldict['fut_acct'] = "6013803183"
    167     xmldict['bank_id'] = '117'     
     184#elif student_record.level in ('000'):
     185    #xmldict['fut_acct'] = "00000000000"
     186    #xmldict['bank_id'] = '0'     
    168187else:
    169188    xmldict['fut_acct'] = "0000000000000"
     
    191210
    192211return context.goto_interswitch_form(info=info)
    193 
  • WAeUP_SRP/trunk/skins/waeup_futminna/payments_view.pt

    r4808 r4861  
    7474                   />
    7575            <br /><br />
    76             <font color='red'>Surcharge for Late Registration of non-remedial students is 5000 Naira. </font>
     76            <font tal:condition="python:False" color='red'>Surcharge for Late Registration of non-remedial students is 5000 Naira. </font>
    7777          </form> 
    7878          <form tal:condition="python: info.get('payment_method') == 'sc_payment'"
Note: See TracChangeset for help on using the changeset viewer.