Ignore:
Timestamp:
3 Jun 2019, 12:20:44 (6 years ago)
Author:
Henrik Bettermann
Message:

Multiple transcript payments are allowed.

File:
1 edited

Legend:

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

    r15364 r15448  
    115115                return True, None
    116116        return False, req_payments_titles
     117
     118    def samePaymentMade(self, student, category, p_item, p_session):
     119        for key in student['payments'].keys():
     120            ticket = student['payments'][key]
     121            if ticket.p_state == 'paid' and\
     122               ticket.p_category == category and \
     123               ticket.p_item == p_item and \
     124               ticket.p_session == p_session:
     125                  return True
     126        return False
    117127
    118128    def setPaymentDetails(self, category, student,
Note: See TracChangeset for help on using the changeset viewer.