Ignore:
Timestamp:
5 Oct 2020, 06:25:25 (4 years ago)
Author:
Henrik Bettermann
Message:

Implement new personal edit form requirements.

File:
1 edited

Legend:

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

    r16263 r16264  
    132132            self.redirect(self.url(self.context))
    133133            return
     134        minamount = 200000
     135        if not self.context.minimumFreshStudentPayments(minamount):
     136            self.flash('Please make required payments first '
     137                       '(at least in the amount of %s Naira).' % minamount,
     138                       type="warning")
     139            self.redirect(self.url(self.context, 'view_personal'))
     140            return
    134141        super(CustomStudentPersonalEditFormPage, self).update()
    135142        return
Note: See TracChangeset for help on using the changeset viewer.