Ignore:
Timestamp:
13 Oct 2019, 21:26:54 (5 years ago)
Author:
Henrik Bettermann
Message:

Adjust setPaymentDetails.

File:
1 edited

Legend:

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

    r15672 r15676  
    147147        #    else:
    148148        #        return _(u'No bed allocated.'), None
     149        elif category == 'combi' and combi:
     150            categories = getUtility(IKofaUtils).COMBI_PAYMENT_CATEGORIES
     151            for cat in combi:
     152                fee_name = cat + '_fee'
     153                cat_amount = getattr(academic_session, fee_name, 0.0)
     154                if not cat_amount:
     155                    return _('%s undefined.' % categories[cat]), None
     156                amount += cat_amount
     157                p_item += u'%s + ' % categories[cat]
     158            p_item = p_item.strip(' + ')
    149159        else:
    150160            fee_name = category + '_fee'
Note: See TracChangeset for help on using the changeset viewer.