Ignore:
Timestamp:
5 Apr 2019, 12:25:30 (5 years ago)
Author:
Henrik Bettermann
Message:

Restrict study modes ug_dsh and de_dsh from paying some following items.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py

    r15373 r15388  
    332332        }
    333333
     334    PT_AND_DSH_PAYMENT_CATS =  {
     335        'clearance_incl': 'Acceptance Fee Plus',
     336        'schoolfee_incl': 'School Fee Plus',
     337        'ent_registration_1': 'Registration Fee ENT201',
     338        'ent_text_book_1': 'Text Book Fee ENT201',
     339        'gst_registration_1': 'Registration Fee GST101 GST102 GST111 GST112',
     340        'gst_registration_2': 'Registration Fee GST222',
     341        'gst_text_book_0': 'Text Book Fee GST101 GST102 GST111 GST112',
     342        'gst_text_book_1': 'Text Book Fee GST101 GST102',
     343        'gst_text_book_2': 'Text Book Fee GST111 GST112',
     344        'gst_text_book_3': 'Text Book Fee GST222',
     345        }
     346
    334347    @property
    335348    def selectable_categories(self):
     
    339352            'special_pg_ft', 'special_pg_pt', 'found', 'bridge'):
    340353            return self.REDUCED_PAYMENT_CATS.items()
     354        if self.context.student.current_mode in (
     355            'ug_pt', 'de_pt','dp_pt', 'de_dsh', 'ug_dsh'):
     356            return self.PT_AND_DSH_PAYMENT_CATS.items()
    341357        if self.context.student.current_mode == 'ijmbe':
    342358            return sorted(self.IJMBE_PAYMENT_CATS.items())
Note: See TracChangeset for help on using the changeset viewer.