Ignore:
Timestamp:
3 Feb 2017, 17:34:51 (8 years ago)
Author:
Henrik Bettermann
Message:

Remove Departmental/Faculty? Due restrictions.

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

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/studylevel.py

    r14500 r14501  
    117117    @property
    118118    def course_registration_forbidden(self):
    119         fac_dep_paid = True
    120         if self.student.entry_session >= 2016:
    121             fac_dep_paid = False
    122             for ticket in self.student['payments'].values():
    123                 if ticket.p_category == 'fac_dep' and \
    124                     ticket.p_session == self.level_session and \
    125                     ticket.p_state == 'paid':
    126                         fac_dep_paid = True
    127                         continue
    128         if not fac_dep_paid:
    129             return _("Please pay faculty and departmental dues first.")
     119        #fac_dep_paid = True
     120        #if self.student.entry_session >= 2016:
     121        #    fac_dep_paid = False
     122        #    for ticket in self.student['payments'].values():
     123        #        if ticket.p_category == 'fac_dep' and \
     124        #            ticket.p_session == self.level_session and \
     125        #            ticket.p_state == 'paid':
     126        #                fac_dep_paid = True
     127        #                continue
     128        #if not fac_dep_paid:
     129        #    return _("Please pay faculty and departmental dues first.")
    130130        restitution_paid = True
    131131        if self.student.entry_session < 2016 \
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py

    r14500 r14501  
    947947        self.browser.getLink("Edit course list").click()
    948948        self.browser.getControl("Register course list").click()
    949         self.assertTrue('Please pay faculty and departmental dues first'
    950             in self.browser.contents)
    951         configuration_1 = createObject('waeup.SessionConfiguration')
    952         configuration_1.academic_session = 2016
    953         configuration_1.fac_dep_fee = 9999.0
    954         self.app['configuration'].addSessionConfiguration(configuration_1)
    955         self.browser.open(self.payments_path + '/addop')
    956         self.browser.getControl(name="form.p_category").value = ['fac_dep']
    957         self.browser.getControl("Create ticket").click()
    958         self.student['payments'].values()[0].approveStudentPayment()
    959         self.browser.open(self.studycourse_path + '/100/edit')
    960         self.browser.getControl("Register course list").click()
     949        #self.assertTrue('Please pay faculty and departmental dues first'
     950        #    in self.browser.contents)
     951        #configuration_1 = createObject('waeup.SessionConfiguration')
     952        #configuration_1.academic_session = 2016
     953        #configuration_1.fac_dep_fee = 9999.0
     954        #self.app['configuration'].addSessionConfiguration(configuration_1)
     955        #self.browser.open(self.payments_path + '/addop')
     956        #self.browser.getControl(name="form.p_category").value = ['fac_dep']
     957        #self.browser.getControl("Create ticket").click()
     958        #self.student['payments'].values()[0].approveStudentPayment()
     959        #self.browser.open(self.studycourse_path + '/100/edit')
     960        #self.browser.getControl("Register course list").click()
    961961        self.assertTrue('Course list has been registered'
    962962            in self.browser.contents)
  • main/waeup.aaue/trunk/src/waeup/aaue/utils/utils.py

    r14487 r14501  
    8989        'gst_registration_2': 'Registration Fee GST222',
    9090        'ent_registration_3': 'Registration Fee ENT201',
    91         'fac_dep': 'Faculty and Departmental Dues',
     91        #'fac_dep': 'Faculty and Departmental Dues',
    9292        'restitution': 'Restitution Fee',
    9393        }
Note: See TracChangeset for help on using the changeset viewer.