Ignore:
Timestamp:
4 Aug 2026, 13:34:46 (4 months ago)
Author:
Henrik Bettermann
Message:

Allow multiple plagtest payments.

File:
1 edited

Legend:

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

    r18272 r18287  
    9090                'sf_ugft' in academic_session.payment_disabled:
    9191                return True
     92        return False
     93
     94    def samePaymentMade(self, student, category, p_item, p_session):
     95        if category.startswith('plagtest'):
     96            return False
     97        for key in student['payments'].keys():
     98            ticket = student['payments'][key]
     99            if ticket.p_state == 'paid' and\
     100               ticket.p_category == category and \
     101               ticket.p_item != 'Balance' and \
     102               ticket.p_item == p_item and \
     103               ticket.p_session == p_session:
     104                  return True
    92105        return False
    93106
Note: See TracChangeset for help on using the changeset viewer.