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/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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.