Ignore:
Timestamp:
27 Nov 2012, 15:02:34 (12 years ago)
Author:
Henrik Bettermann
Message:

Setup SELECTABLE_PAYMENT_CATEGORIES dictionary. Uniben students must not see the regular maintenance fee button.

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

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/interswitch/tests.py

    r9728 r9731  
    209209            self.browser.contents)
    210210        self.assertMatches(
    211             '...<item_detail item_id="1" item_name="Hostel Maint. Fee" item_amt="800000" bank_id="129" acct_num="0014414547" />...',
     211            '...<item_detail item_id="1" item_name="Hostel Maintenance Fee" item_amt="800000" bank_id="129" acct_num="0014414547" />...',
    212212            self.browser.contents)
    213213        self.assertFalse(
  • main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py

    r9728 r9731  
    221221        self.student.nationality = u'NG'
    222222        self.browser.open(self.payments_path + '/addop')
     223        self.browser.getControl(name="form.p_category").value = ['schoolfee']
    223224        self.browser.getControl("Create ticket").click()
    224225        self.assertMatches('...ticket created...',
     
    237238        ticket.p_state = 'paid'
    238239        self.browser.open(self.payments_path + '/addop')
     240        self.browser.getControl(name="form.p_category").value = ['schoolfee']
    239241        self.browser.getControl("Create ticket").click()
    240242        self.assertMatches('...This type of payment has already been made...',
     
    245247            del self.student['payments'][payment]
    246248        self.browser.open(self.payments_path + '/addop')
     249        self.browser.getControl(name="form.p_category").value = ['schoolfee']
    247250        self.browser.getControl("Create ticket").click()
    248251        self.assertMatches('...ticket created...',
     
    255258                           self.browser.contents)
    256259        self.browser.open(self.payments_path + '/addop')
    257         self.browser.getControl(name="form.p_category").value = ['transfer']
    258         self.browser.getControl("Create ticket").click()
    259         self.assertMatches('...ticket created...',
    260                            self.browser.contents)
    261         self.browser.open(self.payments_path + '/addop')
    262260        self.browser.getControl(
    263             name="form.p_category").value = ['bed_allocation']
     261            name="form.p_category").value = ['tempmaint_1']
    264262        self.browser.getControl("Create ticket").click()
    265263        self.assertMatches('...ticket created...',
     
    267265        self.browser.open(self.payments_path + '/addop')
    268266        self.browser.getControl(
    269             name="form.p_category").value = ['hostel_maintenance']
     267            name="form.p_category").value = ['tempmaint_2']
     268        self.browser.getControl("Create ticket").click()
     269        self.assertMatches('...ticket created...',
     270                           self.browser.contents)
     271        self.browser.open(self.payments_path + '/addop')
     272        self.browser.getControl(
     273            name="form.p_category").value = ['tempmaint_3']
    270274        self.browser.getControl("Create ticket").click()
    271275        self.assertMatches('...ticket created...',
  • main/waeup.uniben/trunk/src/waeup/uniben/utils/utils.py

    r9727 r9731  
    5050        'clearance': 'Acceptance Fee',
    5151        'bed_allocation': 'Bed Allocation Fee',
    52         'hostel_maintenance': 'Hostel Maint. Fee',
     52        'hostel_maintenance': 'Hostel Maintenance Fee',
    5353        'tempmaint_1': 'Hall 1-4 M/F Ekehuan',
    5454        'tempmaint_2': 'Hall 5 M/F',
     
    5858        'application': 'Application Fee'
    5959        }
     60
     61    SELECTABLE_PAYMENT_CATEGORIES = {
     62        'schoolfee': 'School Fee',
     63        'clearance': 'Acceptance Fee',
     64        'tempmaint_1': 'Hall 1-4 M/F Ekehuan Maintenance Fee',
     65        'tempmaint_2': 'Hall 5 M/F Maintenance Fee',
     66        'tempmaint_3': 'Clinical Hostel Maintenance Fee',
     67        'gown': 'Gown Hire Fee',
     68        'application': 'Application Fee'
     69        }
Note: See TracChangeset for help on using the changeset viewer.