Changeset 16409


Ignore:
Timestamp:
6 Mar 2021, 21:29:49 (4 years ago)
Author:
Henrik Bettermann
Message:

Jite: Acceptance fee of 200k is a part of schoolfees.

Adjust flash message.

Location:
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/browser.py

    r16402 r16409  
    132132        #    self.redirect(self.url(self.context))
    133133        #    return
    134         minamount = 200000
    135         if not self.context.minimumStudentPayments(minamount):
    136             self.flash('Please make required payments first '
    137                        '(at least in the amount of %s Naira).' % minamount,
     134        if not self.context.minimumStudentPayments():
     135            self.flash('Please make 40% of your tution fee payments first.',
    138136                       type="warning")
    139137            self.redirect(self.url(self.context, 'view_personal'))
     
    144142
    145143class CustomStudentPersonalManageFormPage(NigeriaStudentPersonalManageFormPage):
    146     """ Page to edit personal data
     144    """ Page to manage personal data
    147145    """
    148146    form_fields = grok.AutoFields(ICustomStudentPersonal)
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/student.py

    r16408 r16409  
    6767        return False
    6868
    69     def minimumStudentPayments(self, minamount):
     69    def minimumStudentPayments(self):
    7070        """Need to access edit_personal. Only in iuokada package.
    7171        """
     
    8080            if ticket.p_state == 'paid' \
    8181                and ticket.p_session >= self.current_session \
    82                 and ticket.p_category in ('schoolfee', 'schoolfee40', 'secondinstal'):
     82                and ticket.p_category in ('schoolfee', 'schoolfee40',
     83                                          'secondinstal', 'clearance',
     84                                          'jupeb_acc'):
    8385                total_amount += ticket.amount_auth
    8486        if self.is_fresh:
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/tests/test_browser.py

    r16402 r16409  
    149149        self.browser.getLink("Bio Data").click()
    150150        self.browser.getLink("Edit registration bio data").click()
    151         self.assertTrue("Please make required payments first" in self.browser.contents)
     151        self.assertTrue("Please make 40% of your tution fee payments first." in self.browser.contents)
    152152        self.assertEqual(self.browser.url, self.personal_path)
    153153
Note: See TracChangeset for help on using the changeset viewer.