Ignore:
Timestamp:
27 May 2021, 07:34:22 (4 years ago)
Author:
Henrik Bettermann
Message:

p_session of returning students penalty fee payment ist following session.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/utils.py

    r16493 r16494  
    101101                if ticket.p_state == 'paid' and \
    102102                    ticket.p_category == 'lsfp_penalty' and \
    103                     ticket.p_session == student.current_session:
     103                    ticket.p_session == p_session:
    104104                    return False
    105105        return True
     
    199199            fee_name = category + '_fee'
    200200            amount = getattr(academic_session, fee_name, 0.0)
     201        if category == 'lsfp_penalty' and student.state == RETURNING:
     202            # Override p_session and p_level
     203            p_session, p_level = self.getReturningData(student)
    201204        if amount in (0.0, None):
    202205            return _('Amount could not be determined.'), None
Note: See TracChangeset for help on using the changeset viewer.