Ignore:
Timestamp:
25 Nov 2019, 11:02:44 (5 years ago)
Author:
Henrik Bettermann
Message:

Show correct buttons if payment state in ('paid', 'waived', 'scholarship').

Location:
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students
Files:
2 edited

Legend:

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

    r15826 r15842  
    392392        tabledata.append(sorted(
    393393            [value for value in self.context['payments'].values()
    394              if value.p_state in ('paid', 'waived')], key=lambda value: value.p_session))
     394             if value.p_state in ('paid', 'waived', 'scholarship')],
     395             key=lambda value: value.p_session))
    395396        tableheader.append([(P_ID,'p_id', 4.2),
    396397                         #(CD,'creation_date', 3),
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/viewlets.py

    r15826 r15842  
    6060    @property
    6161    def target_url(self):
    62         if not self.context.r_company:
     62        if not self.context.p_state in ('waived', 'scholarship') \
     63            and not self.context.r_company:
    6364            return ''
    6465        return self.view.url(self.view.context, self.target)
Note: See TracChangeset for help on using the changeset viewer.