Ignore:
Timestamp:
13 Jan 2023, 08:31:28 (21 months ago)
Author:
Henrik Bettermann
Message:

Add IJMB IJMB (Foundation Programme) .

Location:
main/kofacustom.unidel/trunk/src/kofacustom/unidel/students
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/student.py

    r17114 r17278  
    3939    def transcript_enabled(self):
    4040        user = get_current_principal()
    41         if user.id in ('admin', 'isouaba', 'niyi', 'delejason'):
    42             return True
    43         return False
    44 
    45     @property
    46     def is_jupeb(self):
    47         if self.faccode.startswith('JUPEB'):
     41        if user.id in ('admin', ):
    4842            return True
    4943        return False
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/tests/test_export.py

    r16721 r17278  
    104104        self.assertMatches(
    105105            'ac,amount_auth,creation_date,gateway_amt,net_amt,'
    106             'p_category,p_combi,p_current,'
     106            'p_category,p_combi,p_currency,p_current,'
    107107            'p_id,p_item,p_level,p_option,p_session,p_state,payment_date,provider_amt,'
    108108            'r_amount_approved,r_card_num,r_code,r_company,r_desc,'
    109             'r_pay_reference,thirdparty_amt,student_id,state,'
     109            'r_pay_reference,r_payment_link,thirdparty_amt,student_id,state,'
    110110            'current_session\r\n'
    111             '666,12.12,%s-04-01 13:12:01#,,,schoolfee,[],1,my-id,p-item,'
     111            '666,12.12,%s-04-01 13:12:01#,,,schoolfee,[],,1,my-id,p-item,'
    112112            '100,,%s,paid,%s-04-01 14:12:01#,,12.12,'
    113             '789,r-code,interswatch,,,,A111111,created,2012\r\n'
     113            '789,r-code,interswatch,,,,,A111111,created,2012\r\n'
    114114            % (curr_year-6, curr_year-6, curr_year-6), result
    115115            )
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py

    r17202 r17278  
    9090                    amount = getattr(certificate, 'school_fee_2', 0.0)
    9191            else:
    92                 if student.is_jupeb:
     92                if student.faccode == 'JUPEB':
    9393                    if not self._clearancePaymentMade(student):
    9494                        return _(u'Acceptance fee must be paid first.'), None
     
    118118                            ), None
    119119                    amount = getattr(certificate, 'school_fee_2', 0.0)
    120             if amount and not local(student) and not student.is_jupeb \
    121                 and student.faccode != 'PRE':
     120            if amount and not local(student) and not student.faccode in ('PRE', 'JUPEB'):
    122121                amount += 40000
    123122        elif category == 'clearance':
     
    133132            if student.faccode == 'PRE':
    134133                amount = 20000.0
    135             if student.is_jupeb:
     134            if student.faccode == 'JUPEB':
    136135                amount = 25000.0
    137136        elif category == 'bed_allocation':
Note: See TracChangeset for help on using the changeset viewer.