Changeset 2619


Ignore:
Timestamp:
10 Nov 2007, 17:39:36 (17 years ago)
Author:
Henrik Bettermann
Message:

initialize payments_catalog.xml

Location:
WAeUP_SRP
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_epayment/pay_by_sc.py

    r2475 r2619  
    8484#from Products.zdb import set_trace; set_trace()
    8585info = {}
    86 order_id = ds.get('pin_n')
    87 p_id = "p%s" % order_id
     86p_id = "p%s" % ds.get('pin_n')
    8887pin = str(ds.get('pin'))
    8988try:
     
    10099    info['date'] = now
    101100    info['amount'] = cost
    102     pin = info['order_id'] = "%s" % (pin)
    103     info['type_code'] = "%s" % pin
     101    pin = info['order_id'] = "%s" % pin
     102    info['type_code'] = "%s" % pin  #type_code is redundant and will be removed soon
    104103    info['type_description'] = 'School Fee for Session %s' % next_session_str
    105104    info['resp_code'] = "SC"
     
    117116    except:
    118117        pass
    119     verdict = s_brain.verdict   
     118    verdict = s_brain.verdict
    120119    study_course.getContent().edit(mapping= {'current_level': next_level_id,
    121120                                             'current_session': next_session_id,
  • WAeUP_SRP/base/skins/waeup_epayment/pay_interswitch.py

    r2172 r2619  
    5757if fulltime:
    5858    pay_item_id = "6100"
    59     info['type_code'] = sbrain.faculty
     59    info['type_code'] = sbrain.faculty   #type_code is redundant and will be removed soon
    6060    info['bank'] = ''
    6161else:
    6262    pay_item_id = "6101"
    63     info['type_code'] = sbrain.course
     63    info['type_code'] = sbrain.course  #type_code is redundant and will be removed soon
    6464    info['bank'] = ''
    6565info['payment_possible'] = True
     
    7272now = DateTime.DateTime()
    7373info['date'] = now
    74 order_id = info['order_id'] = "%d" % int(now.timeTime()*1000)
    75 info['order_id'] = "%s%s" % (student_id[1:],order_id)
    76 p_id = "p%s" % order_id
     74timestamp = "%d" % int(now.timeTime()*1000)
     75info['order_id'] = "%s%s" % (student_id[1:],timestamp)
     76p_id = "p%s" % timestamp
    7777
    7878if student_id is None:
  • WAeUP_SRP/uniben/profiles/default/payments_catalog.xml

    r1556 r2619  
    22<?xml-stylesheet type="text/xsl" href="catalog.xsl"?>
    33<object name="payments_catalog" meta_type="WAeUP Table">
    4  <column value="id"/>
     4 <column value="order_id"/>
    55 <column value="student_id"/>
    6  <column value="pay_type"/>
    7  <column value="pay_date"/>
    8  <column value="pay_result"/>
    9  <column value="pay_result_txt"/>
     6 <column value="date"/>
     7 <column value="type_description"/>
    108 <column value="amount"/>
    11  <column value="amount_payed"/>
    12  <column value="confirmation_code"/>
    13  <index name="id" meta_type="FieldIndex">
    14   <indexed_attr value="id"/>
     9 <column value="resp_pay_reference"/>
     10 <column value="resp_desc"/>
     11 <column value="resp_code"/>
     12 <column value="resp_card_num"/>
     13 <column value="resp_approved_amount"/>
     14 <column value="faculty"/>
     15 <column value="department"/>
     16 <column value="certificate"/>
     17 <column value="review_state"/>
     18 
     19 
     20 <index name="order_id" meta_type="FieldIndex">
     21  <indexed_attr value="order_id"/>
    1522 </index>
    1623 <index name="student_id" meta_type="FieldIndex">
    1724  <indexed_attr value="student_id"/>
    1825 </index>
    19  <index name="pay_type" meta_type="KeywordIndex">
    20   <indexed_attr value="pay_type"/>
     26 <index name="date" meta_type="DateIndex">
     27  <indexed_attr value="date"/>
    2128 </index>
    22  <index name="pay_date" meta_type="DateIndex">
    23   <indexed_attr value="pay_type"/>
    24  </index>
     29 <index name="faculty" meta_type="FieldIndex">
     30  <indexed_attr value="faculty"/>
     31 </index>
     32 <index name="department" meta_type="FieldIndex">
     33  <indexed_attr value="department"/>
     34 </index>
     35 <index name="resp_code" meta_type="FieldIndex">
     36  <indexed_attr value="resp_code"/>
     37 </index>
     38 <index name="resp_desc" meta_type="KeywordIndex">
     39  <indexed_attr value="resp_desc"/>
     40 </index> 
     41  <index name="review_state" meta_type="FieldIndex">
     42  <indexed_attr value="review_state"/>
     43 </index>
     44 
    2545</object>
Note: See TracChangeset for help on using the changeset viewer.