Changeset 7927 for main


Ignore:
Timestamp:
20 Mar 2012, 14:20:04 (13 years ago)
Author:
Henrik Bettermann
Message:

All fees must be float not int.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py

    r7852 r7927  
    608608        configuration = SessionConfiguration()
    609609        configuration.academic_session = 2009
    610         configuration.acceptance_fee = 200
     610        configuration.acceptance_fee = 200.0
    611611        self.app['configuration'].addSessionConfiguration(configuration)
    612612        self.browser.open(self.edit_path)
  • main/waeup.kofa/trunk/src/waeup/kofa/interfaces.py

    r7918 r7927  
    568568        )
    569569
    570     school_fee_base = schema.Int(
     570    school_fee_base = schema.Float(
    571571        title = _(u'School Fee'),
    572         default = 0,
    573         )
    574 
    575     surcharge_1 = schema.Int(
     572        default = 0.0,
     573        )
     574
     575    surcharge_1 = schema.Float(
    576576        title = _(u'Surcharge Portal Provider'),
    577         default = 0,
    578         required = False,
    579         )
    580 
    581     surcharge_2 = schema.Int(
     577        default = 0.0,
     578        required = False,
     579        )
     580
     581    surcharge_2 = schema.Float(
    582582        title = _(u'Surcharge Payment Gateway Provider'),
    583         default = 0,
    584         required = False,
    585         )
    586 
    587     surcharge_3 = schema.Int(
     583        default = 0.0,
     584        required = False,
     585        )
     586
     587    surcharge_3 = schema.Float(
    588588        title = _(u'Surcharge 3'),
    589         default = 0,
    590         required = False,
    591         )
    592 
    593     clearance_fee = schema.Int(
     589        default = 0.0,
     590        required = False,
     591        )
     592
     593    clearance_fee = schema.Float(
    594594        title = _(u'Clearance Fee'),
    595         default = 0,
    596         required = False,
    597         )
    598 
    599     booking_fee = schema.Int(
     595        default = 0.0,
     596        required = False,
     597        )
     598
     599    booking_fee = schema.Float(
    600600        title = _(u'Booking Fee'),
    601         default = 0,
    602         required = False,
    603         )
    604 
    605     acceptance_fee = schema.Int(
     601        default = 0.0,
     602        required = False,
     603        )
     604
     605    acceptance_fee = schema.Float(
    606606        title = _(u'Acceptance Fee'),
    607         default = 0,
     607        default = 0.0,
    608608        required = False,
    609609        )
  • main/waeup.kofa/trunk/src/waeup/kofa/payments/interfaces.py

    r7875 r7927  
    7979        )
    8080
    81     amount_auth = schema.Int(
     81    amount_auth = schema.Float(
    8282        title = _(u'Amount Authorized'),
    83         default = 0,
     83        default = 0.0,
    8484        required = True,
    8585        readonly = True,
     
    103103    """
    104104
    105     surcharge_1 = schema.Int(
     105    surcharge_1 = schema.Float(
    106106        title = _(u'Portal Fee'),
    107         default = 0,
     107        default = 0.0,
    108108        required = False,
    109109        readonly = True,
    110110        )
    111111
    112     surcharge_2 = schema.Int(
     112    surcharge_2 = schema.Float(
    113113        title = _(u'Surcharge 2'),
    114         default = 0,
     114        default = 0.0,
    115115        required = False,
    116116        readonly = True,
    117117        )
    118118
    119     surcharge_3 = schema.Int(
     119    surcharge_3 = schema.Float(
    120120        title = _(u'Surcharge 3'),
    121         default = 0,
     121        default = 0.0,
    122122        required = False,
    123123        readonly = True,
     
    137137        )
    138138
    139     r_amount_approved = schema.Int(
     139    r_amount_approved = schema.Float(
    140140        title = _(u'Response Amount Approved'),
    141         default = 0,
     141        default = 0.0,
    142142        required = False,
    143143        readonly = False,
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r7875 r7927  
    196196        d = {}
    197197        d['p_item'] = u''
    198         d['amount'] = 0
     198        d['amount'] = 0.0
    199199        d['error'] = u''
    200200        d['p_session'] = student['studycourse'].current_session
     
    214214            d['p_item'] = student['studycourse'].certificate.code
    215215            d['amount'] = academic_session.clearance_fee
    216             d['surcharge_1'] = 0 # no portal fee
     216            d['surcharge_1'] = 0.0 # no portal fee
    217217        elif category == 'bed_allocation':
    218218            d['p_item'] = self.getAccommodationDetails(student)['bt']
    219219            d['amount'] = academic_session.booking_fee
    220             d['surcharge_1'] = 0 # no portal fee
     220            d['surcharge_1'] = 0.0 # no portal fee
    221221        return d
    222222
Note: See TracChangeset for help on using the changeset viewer.