Changeset 11623


Ignore:
Timestamp:
6 May 2014, 17:40:21 (11 years ago)
Author:
Henrik Bettermann
Message:

Session specific penalty fee must be added before re-categorization of carryover fees.

Fees are required and must not be set to None.

Location:
main/waeup.kwarapoly/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kwarapoly/trunk/CHANGES.txt

    r11577 r11623  
    441.2dev (unreleased)
    55===================
     6
     7* Fees are required and must not be set to None.
     8
     9* Session specific penalty fees added before re-categorization of carryover fees.
    610
    711* Webservice test extended to ensure that special payment applicants
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interfaces.py

    r11065 r11623  
    3535        title = _(u'School Fee (ignored)'),
    3636        default = 0.0,
    37         required = False,
     37        required = True,
    3838        )
    3939
     
    4141        title = _(u'Application Fee (fallback)'),
    4242        default = 0.0,
    43         required = False,
     43        required = True,
    4444        )
    4545
     
    4747        title = _(u'Clearance Fee'),
    4848        default = 0.0,
    49         required = False,
     49        required = True,
    5050        )
    5151
     
    5353        title = _(u'Booking Fee'),
    5454        default = 0.0,
    55         required = False,
     55        required = True,
    5656        )
    5757
     
    6161        title = _(u'Maintenance Fee (fallback)'),
    6262        default = 0.0,
    63         required = False,
     63        required = True,
    6464        )
    6565
     
    6767        title = _(u'Gown Fee'),
    6868        default = 0.0,
    69         required = False,
     69        required = True,
    7070        )
    7171
     
    7373        title = _(u'Transfer Fee'),
    7474        default = 0.0,
    75         required = False,
     75        required = True,
    7676        )
    7777
     
    7979        title = _(u' Certificate Fee'),
    8080        default = 0.0,
    81         required = False,
     81        required = True,
    8282        )
    8383    state_result_fee = schema.Float(
    8484        title = _(u'Statement of Result Fee'),
    8585        default = 0.0,
    86         required = False,
     86        required = True,
    8787        )
    8888    transcript_local_fee = schema.Float(
    8989        title = _(u'Transcript (local) Fee'),
    9090        default = 0.0,
    91         required = False,
     91        required = True,
    9292        )
    9393    transcript_foreign_fee = schema.Float(
    9494        title = _(u'Transcript (foreign) Fee'),
    9595        default = 0.0,
    96         required = False,
     96        required = True,
    9797        )
    9898    ver_result_fee = schema.Float(
    9999        title = _(u'Verification of Result Fee'),
    100100        default = 0.0,
    101         required = False,
     101        required = True,
    102102        )
    103103    change_course_fee = schema.Float(
    104104        title = _(u'Change of Course Fee'),
    105105        default = 0.0,
    106         required = False,
     106        required = True,
    107107        )
    108108    change_inst_fee = schema.Float(
    109109        title = _(u'Change of Institute Fee'),
    110110        default = 0.0,
    111         required = False,
     111        required = True,
    112112        )
    113113    jamb_reject_fee = schema.Float(
    114114        title = _(u'JAMB Rejection Form Fee'),
    115115        default = 0.0,
    116         required = False,
     116        required = True,
    117117        )
    118118    cert_of_cert_fee = schema.Float(
    119119        title = _(u'Certification of Certificate Fee'),
    120120        default = 0.0,
    121         required = False,
     121        required = True,
    122122        )
    123123    ref_let_fee = schema.Float(
    124124        title = _(u'Recommendation/Reference Letter Fee'),
    125125        default = 0.0,
    126         required = False,
     126        required = True,
    127127        )
    128128    proc_cert_fee = schema.Float(
    129129        title = _(u'Processing of Certificate by Proxy Fee'),
    130130        default = 0.0,
    131         required = False,
     131        required = True,
    132132        )
    133133    loss_idcard_fee = schema.Float(
    134134        title = _(u'Loss of ID Card Fee'),
    135135        default = 0.0,
    136         required = False,
     136        required = True,
    137137        )
    138138    loss_examcard_fee = schema.Float(
    139139        title = _(u'Loss of Exam Card Fee'),
    140140        default = 0.0,
    141         required = False,
     141        required = True,
    142142        )
    143143    loss_result_fee = schema.Float(
    144144        title = _(u'Loss of Result Fee'),
    145145        default = 0.0,
    146         required = False,
     146        required = True,
    147147        )
    148148    loss_receipt_fee = schema.Float(
    149149        title = _(u'Loss of Receipt Fee'),
    150150        default = 0.0,
    151         required = False,
     151        required = True,
    152152        )
    153153    loss_clearance_fee = schema.Float(
    154154        title = _(u'Loss of Clearance Fee'),
    155155        default = 0.0,
    156         required = False,
     156        required = True,
    157157        )
    158158    conv_brochure_fee = schema.Float(
    159159        title = _(u'Convocation Brochure Fee'),
    160160        default = 0.0,
    161         required = False,
     161        required = True,
    162162        )
    163163    penalty_ug = schema.Float(
    164164        title = _(u'UG Penalty Fee'),
    165165        default = 0.0,
    166         required = False,
     166        required = True,
    167167        )
    168168
     
    170170        title = _(u'PG Penalty Fee'),
    171171        default = 0.0,
    172         required = False,
     172        required = True,
    173173        )
    174174
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/utils.py

    r11453 r11623  
    258258               ticket.p_session == p_session:
    259259                  return _('This type of payment has already been made.'), None
     260        # Add session specific penalty fee.
     261        if category == 'schoolfee' and student.is_postgrad:
     262            amount += academic_session.penalty_pg
     263        elif category == 'schoolfee':
     264            amount += academic_session.penalty_ug
     265        # Recategorize carryover fees.
    260266        if category.startswith('carryover'):
    261267            p_item = getUtility(IKofaUtils).PAYMENT_CATEGORIES[category]
     
    263269            # Now we change the category to reduce the number of categories.
    264270            category = 'schoolfee'
    265         # Add session specific penalty fee.
    266         if category == 'schoolfee' and student.is_postgrad:
    267             amount += academic_session.penalty_pg
    268         elif category == 'schoolfee':
    269             amount += academic_session.penalty_ug
    270271        if self._isPaymentDisabled(p_session, category, student):
    271272            return _('Payment temporarily disabled.'), None
Note: See TracChangeset for help on using the changeset viewer.