Changeset 3743 for WAeUP_SRP


Ignore:
Timestamp:
30 Oct 2008, 07:16:07 (16 years ago)
Author:
Henrik Bettermann
Message:

improve reindex entry_session

Location:
WAeUP_SRP/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTables.py

    r3742 r3743  
    977977            return None
    978978        es = getattr(doc,'entry_session',None)
    979         if es is not None and len(es) == 2 or len(es) == 1:
     979        if es is not None and len(es) == 2:
    980980            return es
     981        elif len(es) == 9:
     982            return es[2:4]   
    981983        try:
    982984            digit = int(doc.jamb_reg_no[0])
  • WAeUP_SRP/trunk/Widgets.py

    r3710 r3743  
    360360        widget_id = self.getWidgetId()
    361361        value = datastructure[widget_id]
     362        #import pdb;pdb.set_trace()       
    362363        try:
    363364            v = str(value)
     
    372373            v = ''
    373374        sessions = self._getSessions()
    374         #import pdb;pdb.set_trace()
     375
    375376        if not sessions.has_key(v):
    376377            datastructure.setError(widget_id, "'%s' not a valid session key" % v)
  • WAeUP_SRP/trunk/skins/waeup_fceoyo/pay_interswitch.py

    r3739 r3743  
    6767now = DateTime.DateTime()
    6868info['date'] = now
    69 info['pay_ship_to'] = "Federal College of Education Oyo"
     69info['pay_ship_to'] = "Federal College of Education [Special] Oyo"
    7070timestamp = "%d" % int(now.timeTime()*1000)
    7171info['order_id'] = "%s%s" % (student_id[1:],timestamp)
    7272p_id = "p%s" % timestamp
    73 
    74 
    75 info['surcharge'] = interswitch_amount = '300'
    76 info['amount'] = amount = fee_dict['all']
    77 total_amount = 100*int(amount) + 100*int(interswitch_amount)
    7873
    7974
     
    113108                                                                  p_id,
    114109                                                                  p_id)
     110                                                                 
     111info['amount'] = amount = fee_dict['all']
     112                                                         
    115113
    116114logger.info('%(student_id)s initiated online school fee payment with order_id %(order_id)s and callback url %(callback_url)s' % info)
     
    129127
    130128bt_amount = 1750
     129fceoyo_split = 750
     130info['surcharge'] = interswitch_amount = 300
     131#getSchoolFee provides pure school fee, the fees have to be added
     132total_amount = 100* (amount + interswitch_amount + bt_amount + fceoyo_split)       
    131133
    132 fceoyo_amount = amount - bt_amount   # das ist falsch hier
    133134
    134135xmldict = {}
     
    136137xmldict['department'] = student_record.department
    137138xmldict['faculty'] = student_record.faculty
    138 xmldict['fceoyo_amount'] = "%d" % int(100*fceoyo_amount)
    139 xmldict['bt_amount'] = "%d" % int(100*bt_amount)
     139xmldict['amount'] = "%d" % 100*amount
     140xmldict['bt_amount'] = "%d" % 100*bt_amount
    140141
    141 if student_record.mode.endswith('_pt'):
    142     xmldict['fceoyo_acct'] = "0321100000000046"
    143 elif student_record.mode.endswith('_sw'):
    144     xmldict['fceoyo_acct'] = "0321100000000056"
     142if student_record.mode in ('ug_sw','prence',):
     143    xmldict['fceoyo_acct'] = "0285001000000899"
     144    xmldict['bank_id'] = '89'
     145elif student_record.mode in ('ug_ft',):
     146    xmldict['fceoyo_acct'] = "1681001000137"
     147    xmldict['bank_id'] = '125'
    145148else:
    146     xmldict['fceoyo_acct'] = "0000000000000000"
     149    xmldict['fceoyo_acct'] = "0000000000000"
     150    xmldict['bank_id'] = '0'
    147151
     152xmldict['fceoyo_split'] = "%d" % 100*fceoyo_split
    148153
    149154xmltext = """<payment_item_detail>
    150155<item_details detail_ref="%(detail_ref)s" college="fceoyo" department="%(department)s" faculty="%(faculty)s">
    151 <item_detail item_id="1" item_name="fceoyo" item_amt="%(fceoyo_amount)s" bank_id="89" acct_num="%(fceoyo_acct)s" />
     156<item_detail item_id="1" item_name="fceoyo" item_amt="%(amount)s" bank_id="%(bank_id)s" acct_num="%(fceoyo_acct)s" />
     157<item_detail item_id="2" item_name="fceoyo_split" item_amt="%(fceoyo_split)s" bank_id="125" acct_num="1681001000119" />
    152158<item_detail item_id="2" item_name="BT" item_amt="%(bt_amount)s" bank_id="89" acct_num="0061001000021095" />
    153159</item_details>
     
    160166args['cust_name_desc'] = "Student Name"
    161167args['pay_item_id'] = pay_item_id
    162 args['pay_item_name'] = "FCE Oyo Tuition Payments"
     168args['pay_item_name'] = "FCE[Special] Oyo Tuition Payments"
    163169args['payment_params'] = 'college_split'
    164170#args['xml_data'] = ''
Note: See TracChangeset for help on using the changeset viewer.