Ignore:
Timestamp:
13 Apr 2019, 20:44:24 (6 years ago)
Author:
Henrik Bettermann
Message:

Set ug_dsh and de_dsh acceptance fee.

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

Legend:

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

    r15373 r15393  
    6161
    6262    clearance_fee_ug_pt = schema.Float(
    63         title = _(u'PT UG Acceptance Fee'),
     63        title = _(u'PT and DSH UG Acceptance Fee'),
    6464        default = 0.0,
    6565        required = True,
  • main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py

    r15382 r15393  
    342342            elif student.faccode == 'FP':
    343343                amount = academic_session.clearance_fee_fp
    344             elif student.current_mode.endswith('_pt'):
    345                 if student.is_postgrad:
    346                     amount = academic_session.clearance_fee_pg_pt
    347                 else:
    348                     amount = academic_session.clearance_fee_ug_pt
     344            elif student.current_mode in ('ug_pt', 'de_pt', 'ug_dsh', 'de_dsh'):
     345                amount = academic_session.clearance_fee_ug_pt
     346            elif student.current_mode == 'special_pg_pt':
     347                amount = academic_session.clearance_fee_pg_pt
    349348            elif student.faccode == 'FCS':
    350349                # Students in clinical medical sciences pay the medical
    351350                # acceptance fee
    352351                amount = academic_session.clearance_fee_med
    353             elif student.is_postgrad:  # and not part-time
     352            elif student.current_mode == 'special_pg_ft':
    354353                if category != 'clearance':
    355354                    return _("No additional fees required."), None
Note: See TracChangeset for help on using the changeset viewer.