Ignore:
Timestamp:
12 Feb 2017, 19:58:35 (8 years ago)
Author:
Henrik Bettermann
Message:

Hide all data if remark is set (requestd by AAUE, Nigeria).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/reports/level_report.py

    r14529 r14536  
    7171        remark = getattr(level_obj, 'remark', '')
    7272        end_level = getattr(stud['studycourse'].certificate, 'end_level', None)
     73        credits_counted = level_obj.gpa_params[1]
     74        credits_passed = passed_params[2]
     75        level_gpa = format_float(level_obj.gpa, 3)
     76        cum_credits_taken = level_obj.cumulative_params[1]
     77        cum_credits_passed = level_obj.cumulative_params[4]
    7378        if end_level and level >= end_level:
    7479            cgpa = format_float(level_obj.cumulative_params[0], 2)
    75             #cgpa = '%.2f' % (int(100*level_obj.cumulative_params[0])/100.0)
    7680        else:
    7781            cgpa = format_float(level_obj.cumulative_params[0], 3)
    78             #cgpa = '%.3f' % (int(1000*level_obj.cumulative_params[0])/1000.0)
    79         if remark in ('FRNS', 'NER'):  # requestd by AAUE, Nigeria
     82        if remark in ('FRNS', 'NER'):
     83            # hide all data (requestd by AAUE, Nigeria)
    8084            cgpa = ''
     85            credits_counted = ''
     86            credits_passed = ''
     87            level_gpa = ''
     88            failed_courses = ''
     89            not_taken_courses = ''
     90            cum_credits_taken = ''
     91            cum_credits_passed = ''
    8192        line = (
    82                 #stud.student_id,
    8393                stud.matric_number,
    8494                fullname,
    85                 level_obj.gpa_params[1],
    86                 passed_params[2],
    87                 format_float(level_obj.gpa, 3),
    88                 #'%.3f' % (int(1000*level_obj.gpa)/1000.0),
     95                credits_counted,
     96                credits_passed,
     97                level_gpa,
    8998                failed_courses,
    9099                not_taken_courses,
    91                 level_obj.cumulative_params[1],
    92                 level_obj.cumulative_params[4],
     100                cum_credits_taken,
     101                cum_credits_passed,
    93102                cgpa,
    94103                remark,
     
    128137    result = []
    129138    col_names = (
    130             #'Student Id',
    131139            'S/N',
    132140            'Matric No.',
Note: See TracChangeset for help on using the changeset viewer.