Ignore:
Timestamp:
3 Feb 2017, 17:30:44 (8 years ago)
Author:
Henrik Bettermann
Message:

Revert r14490.

File:
1 edited

Legend:

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

    r14490 r14500  
    128128        if not fac_dep_paid:
    129129            return _("Please pay faculty and departmental dues first.")
    130         #restitution_paid = True
    131         #if self.student.entry_session < 2016 \
    132         #    and self.student.current_mode == 'ug_ft':
    133         #    restitution_paid = False
    134         #    for ticket in self.student['payments'].values():
    135         #        if ticket.p_category == 'restitution' and \
    136         #            ticket.p_session == self.level_session and \
    137         #            ticket.p_state == 'paid':
    138         #                restitution_paid = True
    139         #                continue
    140         #if not restitution_paid:
    141         #    return _("Please pay restitution fee first.")
     130        restitution_paid = True
     131        if self.student.entry_session < 2016 \
     132            and self.student.current_mode == 'ug_ft':
     133            restitution_paid = False
     134            for ticket in self.student['payments'].values():
     135                if ticket.p_category == 'restitution' and \
     136                    ticket.p_session == self.level_session and \
     137                    ticket.p_state == 'paid':
     138                        restitution_paid = True
     139                        continue
     140        if not restitution_paid:
     141            return _("Please pay restitution fee first.")
    142142        if self.student.is_fresh:
    143143            return
Note: See TracChangeset for help on using the changeset viewer.