Changeset 17979


Ignore:
Timestamp:
31 Dec 2024, 13:53:46 (5 days ago)
Author:
Henrik Bettermann
Message:

NUGA LEVY TO BE ADDED TO SCHOOL CHARGES (#1387)

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

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/locales/en/LC_MESSAGES/waeup.kofa.po

    r17872 r17979  
    5555#: waeup/kofa/university/interfaces.py:298
    5656msgid "Foreigner Initial School Fee"
    57 msgstr "School Fee 3 (not used)"
     57msgstr "Additional Initial School Fee"
    5858
    5959#: waeup/kofa/university/interfaces.py:304
    6060msgid "Foreigner Returning School Fee"
    61 msgstr "School Fee 4 (not used)"
     61msgstr "Additional Returning School Fee"
    6262
    6363msgid ""
  • main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py

    r17963 r17979  
    605605        self.assertTrue(payment.p_current)
    606606
     607        # Add additional fee
     608        self.certificate.school_fee_3 = 1000.0
     609        error, payment = utils.setPaymentDetails('schoolfee',
     610            self.student, None, None, None)
     611        self.assertEqual(payment.amount_auth, 64000.0)
     612        self.assertEqual(error, None)
     613        self.assertTrue(payment.p_current)
     614
    607615        # Add penalty fee ...
    608616        # ... for cleared
     
    612620        error, payment = utils.setPaymentDetails('schoolfee',
    613621            self.student, None, None, None)
    614         self.assertEqual(payment.amount_auth, 63099.0)
     622        self.assertEqual(payment.amount_auth, 64099.0)
    615623
    616624        IWorkflowState(self.student).setState('returning')
     
    662670        self.assertEqual(payment.p_level, 100)
    663671        self.assertEqual(payment.p_session, 2004)
    664         self.assertEqual(payment.amount_auth, 300099.0)
     672        self.assertEqual(payment.amount_auth, 301099.0)
    665673        self.assertEqual(payment.p_item, u'CERT1')
    666674        self.assertEqual(error, None)
  • main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py

    r17975 r17979  
    592592            if student.is_staff:
    593593                amount /= 2
     594            # Add additional school fees
     595            if student.state == CLEARED and getattr(certificate, 'school_fee_3'):
     596                amount += getattr(certificate, 'school_fee_3')
     597            elif student.state == PAID and student.is_postgrad and getattr(
     598                                                    certificate, 'school_fee_4'):
     599                amount += getattr(certificate, 'school_fee_4')
     600            elif student.state == RETURNING and getattr(
     601                                                    certificate, 'school_fee_4'):
     602                amount += getattr(certificate, 'school_fee_4')
    594603        else:
    595604            fee_name = category + '_fee'
Note: See TracChangeset for help on using the changeset viewer.