Changeset 13678


Ignore:
Timestamp:
11 Feb 2016, 10:45:59 (9 years ago)
Author:
Henrik Bettermann
Message:

Parttime and fulltime postgrad students pay different acceptance fees.

Location:
main/waeup.aaue/trunk/src/waeup/aaue
Files:
4 edited

Legend:

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

    r13525 r13678  
    4949        )
    5050
    51     clearance_fee_pt = schema.Float(
    52         title = _(u'PT Acceptance Fee'),
     51    clearance_fee_pg = schema.Float(
     52        title = _(u'FT PG Acceptance Fee'),
     53        default = 0.0,
     54        required = True,
     55        )
     56
     57    clearance_fee_ug_pt = schema.Float(
     58        title = _(u'PT UG Acceptance Fee'),
     59        default = 0.0,
     60        required = True,
     61        )
     62
     63    clearance_fee_pg_pt = schema.Float(
     64        title = _(u'PT PG Acceptance Fee'),
    5365        default = 0.0,
    5466        required = True,
     
    5769    clearance_fee_med = schema.Float(
    5870        title = _(u'Medical Acceptance Fee'),
    59         default = 0.0,
    60         required = True,
    61         )
    62 
    63     clearance_fee_pg = schema.Float(
    64         title = _(u'Postgraduate Acceptance Fee'),
    6571        default = 0.0,
    6672        required = True,
  • main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py

    r13652 r13678  
    197197    def test_interswitch_form_pt_acceptance_fees(self):
    198198        self.certificate.study_mode = 'ug_pt'
    199         self.app['configuration']['2004'].clearance_fee_pt = 40250.0
     199        self.app['configuration']['2004'].clearance_fee_ug_pt = 40250.0
    200200        self.app['configuration']['2004'].matric_gown_fee = 2000.0
    201201        self.app['configuration']['2004'].lapel_fee = 800.0
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py

    r13647 r13678  
    549549
    550550        self.certificate.study_mode = 'special_pg_ft'
     551        self.student.matric_number = u'AAU/SPS/FLW/LAW/15/PHD/09504'
    551552        self.browser.open(self.student_path + '/studycourse/100')
    552553        self.browser.getLink("Download course registration slip").click()
  • main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py

    r13664 r13678  
    174174                amount = academic_session.clearance_fee_fp
    175175            elif student.current_mode.endswith('_pt'):
    176                 amount = academic_session.clearance_fee_pt
     176                if student.is_postgrad:
     177                    amount = academic_session.clearance_fee_pg_pt
     178                else:
     179                    amount = academic_session.clearance_fee_ug_pt
    177180            elif student.faccode == 'FCS':
    178181                # Students in clinical medical sciences pay the medical
    179182                # acceptance fee
    180183                amount = academic_session.clearance_fee_med
    181             elif student.is_postgrad:
     184            elif student.is_postgrad:  # and not part-time
    182185                amount = academic_session.clearance_fee_pg
    183186            else:
Note: See TracChangeset for help on using the changeset viewer.