Ignore:
Timestamp:
2 Nov 2019, 08:07:06 (5 years ago)
Author:
Henrik Bettermann
Message:

Configure fac_dep fee.

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

Legend:

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

    r15458 r15742  
    230230        )
    231231
    232     fac_dep_fee = schema.Float(
    233         title = _(u'Faculty and Departmental Dues'),
    234         default = 0.0,
    235         required = True,
    236         )
     232    #fac_dep_fee = schema.Float(
     233    #    title = _(u'Faculty and Departmental Dues'),
     234    #    default = 0.0,
     235    #    required = True,
     236    #    )
    237237
    238238    restitution_fee = schema.Float(
  • main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py

    r15735 r15742  
    602602        # Faculty and Departmental Dues
    603603        elif self.context.p_category == 'fac_dep':
     604            xmldict['institution_acct'] = '1016425386'
     605            xmldict['institution_bank_id'] = '117'
    604606            self.pay_item_id = '117'
    605607            xmldict['institution_amt'] = 100 * (
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_export.py

    r15667 r15742  
    111111        result = open(self.outfile, 'rb').read()
    112112        self.assertMatches(
    113             'ac,amount_auth,creation_date,gateway_amt,p_category,p_combi,p_current,'
     113            'ac,amount_auth,creation_date,gateway_amt,net_amt,p_category,p_combi,p_current,'
    114114            'p_id,p_item,p_level,p_session,p_split_data,p_state,payment_date,provider_amt,'
    115115            'r_amount_approved,r_card_num,r_code,r_company,r_desc,'
    116116            'r_pay_reference,thirdparty_amt,student_id,state,'
    117117            'current_session\r\n'
    118             '666,12.12,%s-04-01 13:12:01#,,schoolfee,[],1,my-id,p-item,'
     118            '666,12.12,%s-04-01 13:12:01#,,,schoolfee,[],1,my-id,p-item,'
    119119            '100,%s,,paid,%s-04-01 14:12:01#,,12.12,'
    120120            '789,r-code,interswatch,,,,A111111,created,2012\r\n'
  • main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py

    r15714 r15742  
    462462            else:
    463463                amount += academic_session.penalty_ug
     464        elif category == ('fac_dep'):
     465            if student.faccode in ('FAT', 'FED', 'FLW', 'FMS', 'FSS'):
     466                amount = 4000.0
     467            elif student.faccode in ('FAG', 'FBM', 'FCS',
     468                                     'FES', 'FET', 'FLS', 'FPS'):
     469                amount = 5000.0
     470            elif student.faccode == 'AGR' and student.current_level == 400:
     471                amount = 10000.0
     472            elif student.depcode == 'VAT':
     473                amount = 5000.0
    464474        elif not student.is_postgrad:
    465475            fee_name = category + '_fee'
Note: See TracChangeset for help on using the changeset viewer.