Ignore:
Timestamp:
21 Feb 2022, 11:58:38 (3 years ago)
Author:
Henrik Bettermann
Message:

Add payment categories.

Location:
main/kofacustom.edopoly/trunk/src/kofacustom/edopoly
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/interfaces.py

    r16342 r16820  
    165165        )
    166166
     167    cyber_fee = schema.Float(
     168        title = _(u'Cyber Security Fee'),
     169        default = 0.0,
     170        required = False,
     171        )
     172
     173    ispon_fee = schema.Float(
     174        title = _(u'ISPON Safety Fee'),
     175        default = 0.0,
     176        required = False,
     177        )
     178
    167179    def getSessionString():
    168180        """Returns the session string from the vocabulary.
  • main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/interswitch/browser.py

    r15949 r16820  
    9898        if self.context.p_category == 'nhis':
    9999            xmldict['institution_acct'] = '0075379404'
     100        if self.context.p_category == 'cyber':
     101            xmldict['institution_acct'] = '1220055070'
     102            xmldict['institution_bank_id'] = '117'
     103        if self.context.p_category == 'ispon':
     104            xmldict['institution_acct'] = '1220055104'
     105            xmldict['institution_bank_id'] = '117'
    100106        xmldict['institution_amt'] = '0.0'
    101107        self.pay_item_id = '101' # must be provided by Interswitch
  • main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/students/tests/test_export.py

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

    r16341 r16820  
    6767        'project_bind': 'Project Binding Fee',
    6868        'maintenance':'Maintenance and Utility Fees',
     69        'cyber': 'Cyber Security',
     70        'ispon': 'ISPON Safety',
    6971        }
    7072
     
    9395        'project_bind': 'Project Binding Fee',
    9496        'maintenance':'Maintenance and Utility Fees',
     97        'cyber': 'Cyber Security',
     98        'ispon': 'ISPON Safety',
    9599        }
    96100
Note: See TracChangeset for help on using the changeset viewer.