- Timestamp:
- 15 Mar 2024, 12:57:36 (8 months ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/applicants/applicant.py
r16786 r17719 29 29 ICustomApplicant, ICustomUGApplicantEdit, ICustomPGApplicantEdit, 30 30 IPUTMEApplicantEdit, ITranscriptApplicant, ICertificateRequest, 31 IFedexRequest, IRecruitment, ICustomApplicantRefereeReport) 31 IFedexRequest, IRecruitment, ICustomApplicantRefereeReport, 32 IResultReissuanceRequest) 32 33 33 34 class CustomApplicant(NigeriaApplicant): … … 36 37 ICustomPGApplicantEdit, IPUTMEApplicantEdit, 37 38 ITranscriptApplicant, ICertificateRequest, 38 IFedexRequest, IRecruitment) 39 IFedexRequest, IRecruitment, 40 IResultReissuanceRequest) 39 41 grok.provides(ICustomApplicant) 40 42 -
main/waeup.aaue/trunk/src/waeup/aaue/applicants/browser.py
r17675 r17719 70 70 ICustomApplicantOnlinePayment, 71 71 ICustomApplicantRefereeReport, 72 IResultReissuanceRequest, 72 73 ) 73 74 … … 253 254 form_fields['body_address'].custom_widget = BytesDisplayWidget 254 255 return form_fields 256 if self.target is not None and self.target == 'res': 257 form_fields = grok.AutoFields(IResultReissuanceRequest).omit( 258 'locked', 'suspended') 259 form_fields['body_address'].custom_widget = BytesDisplayWidget 260 return form_fields 255 261 if self.target is not None and self.target == 'cert': 256 262 form_fields = grok.AutoFields(ICertificateRequest).omit( … … 368 374 elif self.target is not None and self.target == 'send': 369 375 form_fields = grok.AutoFields(ISendByEmailRequest).omit( 376 'locked', 'suspended') 377 if self.target is not None and self.target == 'res': 378 form_fields = grok.AutoFields(IResultReissuanceRequest).omit( 370 379 'locked', 'suspended') 371 380 elif self.target is not None and self.target == 'cert': … … 433 442 form_fields['applicant_id'].for_display = True 434 443 return form_fields 444 if self.target is not None and self.target == 'res': 445 form_fields = grok.AutoFields(IResultReissuanceRequest) 446 form_fields['applicant_id'].for_display = True 447 return form_fields 435 448 if self.target is not None and self.target == 'fedex': 436 449 form_fields = grok.AutoFields(IFedexRequest) … … 565 578 form_fields = grok.AutoFields(ISendByEmailRequest).omit( 566 579 'locked', 'suspended') 567 form_fields['applicant_id'].for_display = True 580 return form_fields 581 if self.target is not None and self.target == 'res': 582 form_fields = grok.AutoFields(IResultReissuanceRequest).omit( 583 'locked', 'suspended') 568 584 return form_fields 569 585 if self.target is not None and self.target == 'fedex': -
main/waeup.aaue/trunk/src/waeup/aaue/applicants/interfaces.py
r17632 r17719 81 81 (_('Attestation'), 'attest'), 82 82 (_('Proficiency in English Language'), 'english'), 83 (_('Introduction Letter'), 'introduction'), 84 (_('Certification'), 'certification'), 85 ) 86 87 request_types_vocab_2 = SimpleKofaVocabulary( 88 (_('Issuance of Post-Graduate Statement of Result'), 'statement_of_result'), 89 (_('Re-Issuance of Results'), 'results'), 90 (_('Correction of Result'), 'correction'), 83 91 ) 84 92 … … 1549 1557 ) 1550 1558 1559 class IResultReissuanceRequest(ISendByEmailRequest): 1560 """A applicant asking for sending an email. 1561 """ 1562 1563 request_type = schema.Choice( 1564 title = _(u'Request Type'), 1565 vocabulary = request_types_vocab_2, 1566 required = True, 1567 ) 1568 IResultReissuanceRequest['request_type'].order = ISendByEmailRequest[ 1569 'request_type'].order 1570 1551 1571 class ICustomApplicant(ICustomUGApplicant, ICustomPGApplicant, 1552 1572 ITranscriptApplicant, ICertificateRequest, 1553 1573 IVerificationRequest, ISendByEmailRequest, 1554 IFedexRequest, IRecruitment ):1574 IFedexRequest, IRecruitment, IResultReissuanceRequest): 1555 1575 """An interface for all types of applicants. 1556 1576 -
main/waeup.aaue/trunk/src/waeup/aaue/applicants/utils.py
r17668 r17719 49 49 'fedex': ['Payment for Courier (Fedex)', 'FED'], 50 50 'rec': ['AAU Recruitment', 'REC'], 51 'res': ['Result Re-Issuance Request', 'RE'], 51 52 } 52 53 -
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py
r17702 r17719 165 165 xmldict = {} 166 166 provider_amt = 2000.0 167 if self.applicant.__parent__.code in ('ver2019', 'send2019'): 168 provider_amt = 0.0 167 xmldict['institution_acct'] = '2043582644' 168 xmldict['institution_bank_id'] = '8' 169 if self.applicant.__parent__.code in ('ver2019', 'send2019', 'res2024'): 170 provider_amt = 3000.0 171 xmldict['institution_acct'] = '2043583005' 172 xmldict['institution_bank_id'] = '8' 169 173 elif self.applicant.__parent__.code.startswith('cert'): 170 174 provider_amt = 3000.0 171 175 elif self.applicant.__parent__.code.startswith('trans'): 172 176 provider_amt = 3000.0 173 xmldict['institution_acct'] = '2043582644' 174 xmldict['institution_bank_id'] = '8' 177 175 178 if self.applicant.applicant_id.startswith('dsh'): 176 179 xmldict['institution_acct'] = '1014847058'
Note: See TracChangeset for help on using the changeset viewer.