Ignore:
Timestamp:
19 Jul 2025, 06:41:05 (16 hours ago)
Author:
Henrik Bettermann
Message:

Disable sundry combi payments.

File:
1 edited

Legend:

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

    r18122 r18131  
    200200        rp = self._collect_required_payment_items(student)
    201201        cats_missing = deepcopy(rp)
     202        combi_cats = getUtility(IKofaUtils).COMBI_PAYMENT_CATEGORIES
    202203        if len(student['payments']):
    203204            for category in rp.keys():
     
    205206                    if ticket.p_state == 'paid' and \
    206207                        ticket.p_category == category and \
     208                        ticket.p_session == session:
     209                        del cats_missing[category]
     210                    elif ticket.p_state == 'paid' and \
     211                        ticket.p_category == 'combi' and \
     212                        combi_cats[category] in ticket.p_item and \
    207213                        ticket.p_session == session:
    208214                        del cats_missing[category]
Note: See TracChangeset for help on using the changeset viewer.