Changeset 11624 for main


Ignore:
Timestamp:
6 May 2014, 19:00:28 (10 years ago)
Author:
Henrik Bettermann
Message:

Configure new and returning school fee in session configuration objects.

Location:
main/waeup.aaue/trunk
Files:
6 edited

Legend:

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

    r11622 r11624  
    441.2dev (unreleased)
    55===================
     6
     7* Configure new and returning school fee in session configuration objects.
    68
    79* Do not create activation code when paying acceptance (= clearance)
  • main/waeup.aaue/trunk/src/waeup/aaue/etranzact/tests.py

    r11622 r11624  
    5151        # Managers can add online payment tickets
    5252        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
    53         self.app['configuration']['2004'].school_fee = 1234.0
     53        self.app['configuration']['2004'].school_fee_1 = 1234.0
    5454        self.browser.open(self.payments_path)
    5555        IWorkflowState(self.student).setState('cleared')
  • main/waeup.aaue/trunk/src/waeup/aaue/interfaces.py

    r11004 r11624  
    3535    #    title = _(u'School Fee Instalments'),
    3636    #    default = 0.0,
    37     #    required = False,
     37    #    required = True,
    3838    #    )
    3939
    40     school_fee = schema.Float(
    41         title = _(u'School Fee (not FP)'),
     40    #school_fee = schema.Float(
     41    #    title = _(u'School Fee (not FP)'),
     42    #    default = 0.0,
     43    #    required = True,
     44    #    )
     45
     46    school_fee_1 = schema.Float(
     47        title = _(u'Initial School Fee (not FP)'),
    4248        default = 0.0,
    43         required = False,
     49        required = True,
     50        )
     51
     52    school_fee_2 = schema.Float(
     53        title = _(u'Returning School Fee (not FP)'),
     54        default = 0.0,
     55        required = True,
    4456        )
    4557
     
    4759        title = _(u'Application Fee'),
    4860        default = 0.0,
    49         required = False,
     61        required = True,
    5062        )
    5163
     
    5365        title = _(u'Acceptance Fee'),
    5466        default = 0.0,
    55         required = False,
     67        required = True,
    5668        )
    5769
     
    5971        title = _(u'Booking Fee'),
    6072        default = 0.0,
    61         required = False,
     73        required = True,
    6274        )
    6375
     
    6577        title = _(u'Transcript Fee'),
    6678        default = 0.0,
    67         required = False,
     79        required = True,
    6880        )
    6981
     
    7385        title = _(u'Maintenance Fee (ignored)'),
    7486        default = 0.0,
    75         required = False,
     87        required = True,
    7688        )
    7789
     
    7991        title = _(u'Gown Fee'),
    8092        default = 0.0,
    81         required = False,
     93        required = True,
    8294        )
    8395
     
    8597        title = _(u'Transfer Fee'),
    8698        default = 0.0,
    87         required = False,
     99        required = True,
    88100        )
    89101
     
    91103        title = _(u'UG Penalty Fee'),
    92104        default = 0.0,
    93         required = False,
     105        required = True,
    94106        )
    95107
     
    97109        title = _(u'PG Penalty Fee'),
    98110        default = 0.0,
    99         required = False,
     111        required = True,
    100112        )
    101113
     
    103115        title = _(u'Late Registration Fee'),
    104116        default = 0.0,
    105         required = False,
     117        required = True,
    106118        )
    107119
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py

    r11622 r11624  
    134134        self.assertMatches('...Amount could not be determined...',
    135135                           self.browser.contents)
    136         self.app['configuration']['2004'].school_fee = 6666.0
     136        self.app['configuration']['2004'].school_fee_1 = 6666.0
    137137        self.browser.getControl(name="form.p_category").value = ['schoolfee']
    138138        # Accepotance fee must be paid first
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_utils.py

    r11622 r11624  
    4343        self.app['configuration']['2004'].maint_fee = 180.0
    4444        self.app['configuration']['2004'].clearance_fee = 1234.0
    45         self.app['configuration']['2004'].school_fee = 6666.0
     45        self.app['configuration']['2004'].school_fee_1 = 6666.0
    4646        utils = getUtility(IStudentsUtils)
    4747
     
    4949        configuration.academic_session = 2005
    5050        self.app['configuration'].addSessionConfiguration(configuration)
    51         self.app['configuration']['2005'].school_fee = 7777.0
     51        self.app['configuration']['2005'].school_fee_2 = 7777.0
    5252
    5353        error, payment = utils.setPaymentDetails('schoolfee',self.student)
  • main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py

    r11622 r11624  
    164164                    amount = 84000.0
    165165                else:
    166                     amount = academic_session.school_fee
     166                    amount = academic_session.school_fee_1
    167167            elif student.state == RETURNING or\
    168168                (student.is_postgrad and student.state == PAID):
     
    181181                except KeyError:
    182182                    return _(u'Session configuration object is not available.'), None
    183                 amount = academic_session.school_fee
     183                amount = academic_session.school_fee_2
    184184            else:
    185185                return _('Wrong state.'), None
Note: See TracChangeset for help on using the changeset viewer.