Ignore:
Timestamp:
21 Jan 2015, 12:44:54 (10 years ago)
Author:
Henrik Bettermann
Message:

Activate Late Registration Fee payments.

Location:
main/waeup.aaue/trunk/src/waeup/aaue
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/etranzact/browser.py

    r11868 r12504  
    8585                return
    8686        if PAYMENT_TYPE not in ('SCHOOL-FEE-RETURNING', 'SCHOOL-FEE-NEW',
    87             'ACCEPTANCE-FEE', 'APPLICATION-FEE'):
     87            'ACCEPTANCE-FEE', 'APPLICATION-FEE', 'LATE-ADMISSION-PROCESSING'):
    8888            self.output = ERROR_PART1 + 'Invalid PAYMENT_TYPE' + ERROR_PART2
    8989            return
     
    136136        if PAYMENT_TYPE == 'APPLICATION-FEE' \
    137137            and not results[0].p_category == 'application':
     138            self.output = ERROR_PART1 + 'Wrong PAYMENT_TYPE' + ERROR_PART2
     139            return
     140        if PAYMENT_TYPE == 'LATE-ADMISSION-PROCESSING' \
     141            and not results[0].p_category == 'late_registration':
    138142            self.output = ERROR_PART1 + 'Wrong PAYMENT_TYPE' + ERROR_PART2
    139143            return
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py

    r11631 r12504  
    178178        self.browser.getControl("Create ticket").click()
    179179        self.assertMatches('...This type of payment has already been made...',
     180                           self.browser.contents)
     181        self.browser.open(self.payments_path + '/addop')
     182        self.browser.getControl(name="form.p_category").value = ['late_registration']
     183        self.browser.getControl("Create ticket").click()
     184        self.assertMatches('...ticket created...',
    180185                           self.browser.contents)
    181186
  • main/waeup.aaue/trunk/src/waeup/aaue/utils/utils.py

    r11621 r12504  
    5252        #'transfer': 'Transfer Fee',
    5353        'transcript': 'Transcript Fee',
    54         #'late_registration': 'Late Registration Fee',
     54        'late_registration': 'Late Registration Fee',
    5555        }
    5656
Note: See TracChangeset for help on using the changeset viewer.