Changeset 15842 for main/kofacustom.nigeria
- Timestamp:
- 25 Nov 2019, 11:02:44 (5 years ago)
- Location:
- main/kofacustom.nigeria/trunk/src/kofacustom/nigeria
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/browser.py
r15796 r15842 65 65 @property 66 66 def target_url(self): 67 if not self.context.r_company: 67 if not self.context.p_state in ('waived', 'scholarship') \ 68 and not self.context.r_company: 68 69 return '' 69 70 return self.view.url(self.view.context, self.target) -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/browser.py
r15770 r15842 92 92 self.context.student.current_session, self.context): 93 93 return '' 94 if self.context.p_state in ('paid', 'waived' ):94 if self.context.p_state in ('paid', 'waived', 'scholarship'): 95 95 return '' 96 96 return self.view.url(self.view.context, self.target) … … 106 106 self.context.__parent__.__parent__.year, self.context): 107 107 return '' 108 if self.context.p_state in ('paid', 'waived' ):108 if self.context.p_state in ('paid', 'waived', 'scholarship'): 109 109 return '' 110 110 return self.view.url(self.view.context, self.target) … … 163 163 self.context.student.current_session, self.context): 164 164 return 165 if self.context.p_state in ('paid', 'waived' ):165 if self.context.p_state in ('paid', 'waived', 'scholarship'): 166 166 self.flash(_('This ticket has already been paid.'), type='danger') 167 167 return -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/applicantsbrowser.py
r15770 r15842 72 72 self.context.__parent__.__parent__.year, self.context): 73 73 return '' 74 if self.context.p_state in ('paid', 'waived' ):74 if self.context.p_state in ('paid', 'waived', 'scholarship'): 75 75 return '' 76 76 return self.view.url(self.view.context, self.target) … … 113 113 self.context.__parent__.__parent__.year, self.context): 114 114 return 115 if self.context.p_state in ('paid', 'waived' ):115 if self.context.p_state in ('paid', 'waived', 'scholarship'): 116 116 self.flash(_('This ticket has already been paid.'), type='danger') 117 117 return -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/studentsbrowser.py
r15825 r15842 81 81 self.context.student.current_session, self.context): 82 82 return '' 83 if self.context.p_state in ('paid', 'waived' ):83 if self.context.p_state in ('paid', 'waived', 'scholarship'): 84 84 return '' 85 85 return self.view.url(self.view.context, self.target) … … 123 123 self.context.student.current_session, self.context): 124 124 return 125 if self.context.p_state in ('paid', 'waived' ):125 if self.context.p_state in ('paid', 'waived', 'scholarship'): 126 126 self.flash(_('This ticket has already been paid.'), type='danger') 127 127 return -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/webservices.py
r15351 r15842 96 96 continue 97 97 ticket = results[0] 98 if ticket.p_state == 'waived':98 if ticket.p_state in ('waived', 'scholarship'): 99 99 failed += 1 100 100 continue -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/browser.py
r15826 r15842 392 392 tabledata.append(sorted( 393 393 [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)) 395 396 tableheader.append([(P_ID,'p_id', 4.2), 396 397 #(CD,'creation_date', 3), -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/viewlets.py
r15826 r15842 60 60 @property 61 61 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: 63 64 return '' 64 65 return self.view.url(self.view.context, self.target)
Note: See TracChangeset for help on using the changeset viewer.