Changeset 14117 for main


Ignore:
Timestamp:
23 Aug 2016, 09:41:32 (8 years ago)
Author:
Henrik Bettermann
Message:

Implement different course registration deadlines and fees (untested!)

Location:
main/waeup.aaue/trunk/src/waeup/aaue
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/interfaces.py

    r13888 r14117  
    110110        )
    111111
     112    late_pg_registration_fee = schema.Float(
     113        title = _(u'Late PG Course Reg. Fee'),
     114        default = 0.0,
     115        required = True,
     116        )
     117
    112118    welfare_fee = schema.Float(
    113119        title = _(u'AAU Student Welfare Assurance Fee'),
     
    141147
    142148    coursereg_deadline = schema.Datetime(
    143         title = _(u'Course Reg. Deadline'),
     149        title = _(u'FT Course Reg. Deadline'),
     150        required = False,
     151        description = _('Example: ') + u'2011-12-31 23:59:59+01:00',
     152        )
     153
     154    coursereg_deadline_pg = schema.Datetime(
     155        title = _(u'PG Course Reg. Deadline'),
     156        required = False,
     157        description = _('Example: ') + u'2011-12-31 23:59:59+01:00',
     158        )
     159
     160    coursereg_deadline_pt = schema.Datetime(
     161        title = _(u'PT Course Reg. Deadline'),
     162        required = False,
     163        description = _('Example: ') + u'2011-12-31 23:59:59+01:00',
     164        )
     165
     166    coursereg_deadline_dp = schema.Datetime(
     167        title = _(u'DP Course Reg. Deadline'),
     168        required = False,
     169        description = _('Example: ') + u'2011-12-31 23:59:59+01:00',
     170        )
     171
     172    coursereg_deadline_found = schema.Datetime(
     173        title = _(u'FOUND Course Reg. Deadline'),
    144174        required = False,
    145175        description = _('Example: ') + u'2011-12-31 23:59:59+01:00',
  • main/waeup.aaue/trunk/src/waeup/aaue/students/studylevel.py

    r14082 r14117  
    9999            return True
    100100        try:
    101             deadline = grok.getSite()['configuration'][
    102                     str(self.level_session)].coursereg_deadline
     101            if self.student.is_postgrad:
     102                deadline = grok.getSite()['configuration'][
     103                        str(self.level_session)].coursereg_deadline_pg
     104            elif self.student.current_mode.startswith('dp'):
     105                deadline = grok.getSite()['configuration'][
     106                        str(self.level_session)].coursereg_deadline_dp
     107            elif self.student.current_mode.endswith('_pt'):
     108                deadline = grok.getSite()['configuration'][
     109                        str(self.level_session)].coursereg_deadline_pt
     110            elif self.student.current_mode == 'found':
     111                deadline = grok.getSite()['configuration'][
     112                        str(self.level_session)].coursereg_deadline_found
     113            else:
     114                deadline = grok.getSite()['configuration'][
     115                        str(self.level_session)].coursereg_deadline
    103116        except (TypeError, KeyError):
    104117            return True
  • main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py

    r14089 r14117  
    227227                    gateway_net_amt(academic_session.lapel_fee)
    228228        elif category == 'late_registration':
    229             amount = academic_session.late_registration_fee
     229            if student.is_postgrad:
     230                amount = academic_session.late_pg_registration_fee
     231            else:
     232                amount = academic_session.late_registration_fee
    230233        elif category.startswith('schoolfee'):
    231234            try:
Note: See TracChangeset for help on using the changeset viewer.