Ignore:
Timestamp:
13 Aug 2018, 06:14:51 (6 years ago)
Author:
Henrik Bettermann
Message:

Add payment category.

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

Legend:

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

    r15002 r15106  
    124124        )
    125125
     126    development_fee = schema.Float(
     127        title = _(u'Development Fee'),
     128        default = 0.0,
     129        required = False,
     130        )
     131
    126132    remita_enabled = schema.Bool(
    127133        title = _(u'Remita integration enabled'),
  • main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py

    r15002 r15106  
    251251        self.browser.open(self.payments_path)
    252252        self.browser.getLink("Add current session payment ticket").click()
     253        self.browser.getControl(name="form.p_category").value = ['schoolfee']
    253254        self.browser.getControl("Create ticket").click()
    254255        self.assertMatches('...Amount could not be determined...',
  • main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py

    r15094 r15106  
    231231            and student.current_mode == 'special_ft':
    232232            amount = 80000.0
     233        elif category == 'develop' and student.is_postgrad:
     234            amount = academic_session.development_fee
    233235        elif category == 'bed_allocation':
    234236            p_item = self.getAccommodationDetails(student)['bt']
  • main/waeup.uniben/trunk/src/waeup/uniben/utils/utils.py

    r14971 r15106  
    8989        #'pharmd_1':'Clerkship Fee',
    9090        'pharmd_2':'Module 1 Fee',
     91        'develop':'Development Fee',
    9192        }
    9293
     
    108109        #'pharmd_1':'PharmD Clerkship Fee (1st school fee prepayment)',
    109110        'pharmd_2':'PharmD Module 1 Fee (school fee prepayment)',
     111        'develop':'Development Fee',
    110112        }
    111113
Note: See TracChangeset for help on using the changeset viewer.