Changeset 18271


Ignore:
Timestamp:
3 Jun 2026, 22:10:57 (6 months ago)
Author:
Henrik Bettermann
Message:

Implement multiple plagtest payments.

Location:
main/kofacustom.unidel/trunk/src/kofacustom/unidel
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/interswitch/browser.py

    r18269 r18271  
    160160            xmldict['institution_acct'] = '1011036493'
    161161            xmldict['institution_bank_id'] = '117'
    162         elif self.context.p_category == 'plagtest':
     162        elif self.context.p_category.startswith('plagtest'):
    163163            xmldict['institution_acct'] = '0088601468'
    164164            xmldict['institution_bank_id'] = '121'
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py

    r18237 r18271  
    265265        elif category.startswith('trcn') and not student.certcode in ('TRCNDEG', 'TRCNNCE'):
    266266                return _('You are not a TRCN student.'), None
     267
     268        elif category.startswith('plagtest_'):
     269            amount = getattr(academic_session, 'plagtest_fee', 0.0)
     270            amount *= int(category[-1])
    267271        else:
    268272            fee_name = category + '_fee'
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/utils/utils.py

    r18259 r18271  
    5151        'convocation': 'Convocation Fee',
    5252        'plagtest': 'Turnitin Plagiarism Checker',
     53        'plagtest_2': 'Turnitin Plagiarism Checker 2',
     54        'plagtest_3': 'Turnitin Plagiarism Checker 3',
     55        'plagtest_4': 'Turnitin Plagiarism Checker 4',
     56        'plagtest_5': 'Turnitin Plagiarism Checker 5',
    5357        }
    5458
    … …  
    7377        'convocation': 'Convocation Fee',
    7478        'plagtest': 'Turnitin Plagiarism Checker',
     79        'plagtest_2': 'Turnitin Plagiarism Checker 2',
     80        'plagtest_3': 'Turnitin Plagiarism Checker 3',
     81        'plagtest_4': 'Turnitin Plagiarism Checker 4',
     82        'plagtest_5': 'Turnitin Plagiarism Checker 5',
    7583        }
    7684
Note: See TracChangeset for help on using the changeset viewer.