Ignore:
Timestamp:
4 Jun 2016, 04:08:45 (9 years ago)
Author:
Henrik Bettermann
Message:

Add ApplicantOnlinePaymentProcessor?.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/batching.py

    r13871 r13872  
    827827        # Requirement added on 19/02/2015: same payment must not exist.
    828828        if self.samePaymentMade(student, obj.p_category, obj.p_session):
     829            student.__parent__.logger.info(
     830                '%s - %s - previous update cancelled'
     831                % (self.name, student.student_id))
    829832            raise DuplicationError('Same payment has already been made.')
    830833        if len(p_id.split('-')) != 3 and not p_id.startswith('p'):
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_batching.py

    r13103 r13872  
    10601060            DuplicationError, self.processor.addEntry, payment3,
    10611061            dict(student_id=self.student.student_id, p_id='p456'), self.app)
     1062        logcontent = open(self.logfile).read()
     1063        self.assertTrue(
     1064            'INFO - system - StudentOnlinePayment Processor - K1000000 - '
     1065            'previous update cancelled'
     1066            in logcontent)
    10621067
    10631068    def test_checkConversion(self):
Note: See TracChangeset for help on using the changeset viewer.