Changeset 16026 for main/kofacustom.dspg/trunk/src/kofacustom/dspg
- Timestamp:
- 6 Mar 2020, 14:07:50 (5 years ago)
- Location:
- main/kofacustom.dspg/trunk/src/kofacustom/dspg
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.dspg/trunk/src/kofacustom/dspg/applicants/browser.py
r15592 r16026 170 170 if self.context.special: 171 171 return grok.AutoFields(ICustomSpecialApplicant) 172 if self.target == 'conv':172 if self.target in ('conv', 'hndfincl', 'ndfincl'): 173 173 form_fields = grok.AutoFields(ICustomSpecialApplicant) 174 174 form_fields = form_fields.omit( … … 238 238 @property 239 239 def form_fields(self): 240 if self.target in ('conv', 'special' ):240 if self.target in ('conv', 'special', 'hndfincl', 'ndfincl'): 241 241 form_fields = grok.AutoFields(ICustomSpecialApplicant) 242 242 form_fields = form_fields.omit( … … 276 276 form_fields['applicant_id'].for_display = True 277 277 return form_fields 278 if self.target == 'conv':278 if self.target in ('conv', 'hndfincl', 'ndfincl'): 279 279 form_fields = grok.AutoFields(ICustomSpecialApplicant) 280 280 form_fields = form_fields.omit( … … 317 317 form_fields['applicant_id'].for_display = True 318 318 return form_fields 319 if self.target == 'conv':319 if self.target in ('conv', 'hndfincl', 'ndfincl'): 320 320 form_fields = grok.AutoFields(ICustomSpecialApplicant) 321 321 form_fields = form_fields.omit( … … 384 384 @property 385 385 def form_fields(self): 386 if self.context.__parent__.prefix in ('conv', 'special'): 386 if self.context.__parent__.prefix in ( 387 'conv', 'special', 'hndfincl', 'ndfincl'): 387 388 form_fields = grok.AutoFields(ICustomApplicant).select( 388 389 'applicant_id', 'reg_number', 'email') … … 406 407 form_fields['creation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le') 407 408 form_fields['payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le') 408 if self.context.__parent__.__parent__.prefix in ('conv', 'special'): 409 if self.context.__parent__.__parent__.prefix in ( 410 'conv', 'special', 'hndfincl', 'ndfincl'): 409 411 form_fields = form_fields.omit('p_session') 410 412 return form_fields -
main/kofacustom.dspg/trunk/src/kofacustom/dspg/applicants/utils.py
r15576 r16026 54 54 'special': ['Supplementary Payment', 'SP'], 55 55 'conv': ['Convocation Pack Payment', 'CPP'], 56 'hndfincl': ['HND Final Clearance Pack Payment', 'HNDF'], 57 'ndfincl': ['ND Final Clearance Pack Payment', 'NDF'], 56 58 } 57 59 -
main/kofacustom.dspg/trunk/src/kofacustom/dspg/applicants/viewlets.py
r15588 r16026 31 31 if self.context.state in ('initialized', 'started', 'paid'): 32 32 return 33 if self.context.__parent__.prefix == 'conv':33 if self.context.__parent__.prefix in ('conv', 'hndfincl', 'ndfincl'): 34 34 return 35 35 return self.view.url(self.view.context, self.target) -
main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch/browser.py
r15959 r16026 510 510 xmldict['institution_acct'] = '1015220292' 511 511 xmldict['institution_bank_id'] = '117' 512 elif self.applicant.__parent__.prefix == 'conv':512 elif self.applicant.__parent__.prefix in ('conv', 'hndfincl', 'ndfincl'): 513 513 xmldict['institution_acct'] = '1012808851' 514 514 xmldict['institution_bank_id'] = '117'
Note: See TracChangeset for help on using the changeset viewer.