Changeset 15433
- Timestamp:
- 29 May 2019, 12:05:52 (6 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py
r15428 r15433 348 348 def selectable_categories(self): 349 349 if 'alumni' in self.application_url(): 350 return self.ALUMNI_PAYMENT_CATS.items() 350 return sorted( 351 self.ALUMNI_PAYMENT_CATS.items(), key=lambda value: value[1]) 351 352 if self.context.student.current_mode in ( 352 353 'special_pg_ft', 'special_pg_pt', 'found', 'bridge'): 353 return self.REDUCED_PAYMENT_CATS.items() 354 return sorted( 355 self.REDUCED_PAYMENT_CATS.items(), key=lambda value: value[1]) 354 356 if self.context.student.current_mode in ( 355 357 'ug_pt', 'de_pt','dp_pt', 'de_dsh', 'ug_dsh'): 356 return self.PT_AND_DSH_PAYMENT_CATS.items() 358 return sorted( 359 self.PT_AND_DSH_PAYMENT_CATS.items(), 360 key=lambda value: value[1]) 357 361 if self.context.student.current_mode == 'ijmbe': 358 return sorted(self.IJMBE_PAYMENT_CATS.items()) 359 categories = getUtility(IKofaUtils).SELECTABLE_PAYMENT_CATEGORIES 360 return sorted(categories.items()) 362 return sorted( 363 self.IJMBE_PAYMENT_CATS.items(), key=lambda value: value[1]) 364 student = self.context.__parent__ 365 categories = getUtility( 366 IKofaUtils).selectable_payment_categories(student) 367 return sorted(categories.items(), key=lambda value: value[1]) 361 368 362 369 class CustomPaymentsManageFormPage(PaymentsManageFormPage): -
main/waeup.aaue/trunk/src/waeup/aaue/utils/utils.py
r15431 r15433 98 98 'restitution': 'Restitution Fee', 99 99 } 100 101 def selectable_payment_categories(self, student): 102 return self.SELECTABLE_PAYMENT_CATEGORIES 100 103 101 104 REPORTABLE_PAYMENT_CATEGORIES = {
Note: See TracChangeset for help on using the changeset viewer.