Ignore:
Timestamp:
27 Oct 2016, 07:13:07 (8 years ago)
Author:
Henrik Bettermann
Message:

Change school fees algorithm. Do no longer distinguish between local and foreigner students.

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

Legend:

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

    r14227 r14229  
    141141msgstr ""
    142142"Course ${a} cannot be registered. You have to pay for the 2nd semester first."
     143
     144#: school_fee_1
     145msgid "Initial School Fee"
     146msgstr "School Fees New Students"
     147
     148#: school_fee_2
     149msgid "Returning School Fee"
     150msgstr "School Fees Returning Students (2015)"
     151
     152#: school_fee_3
     153msgid "Foreigner Initial School Fee"
     154msgstr "School Fees Returning Students (<2015)"
     155
     156#: school_fee_4
     157msgid "Foreigner Returning School Fee"
     158msgstr "School Fees 4 (not used):"
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_utils.py

    r14089 r14229  
    5454        self.student['studycourse'].certificate.school_fee_1 = 6666.0
    5555        self.student['studycourse'].certificate.school_fee_2 = 7777.0
     56        self.student['studycourse'].certificate.school_fee_3 = 8888.0
    5657        self.student['studycourse'].certificate.study_mode = 'special_pg_ft'
    5758        self.student.nationality = u'NG'
     
    9293        self.assertEqual(payment.p_level, 200)
    9394        self.assertEqual(payment.p_session, 2005)
    94         self.assertEqual(payment.amount_auth, 7865.0)
     95        self.assertEqual(payment.amount_auth, 8976.0)
    9596        self.assertEqual(payment.p_item, u'CERT1')
    9697        self.assertEqual(error, None)
  • main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py

    r14160 r14229  
    267267                             "are allowed to pay by instalments."), None
    268268            if student.state == CLEARED or category == 'schoolfee_2':
    269                 if student.is_foreigner:
    270                     amount = getattr(certificate, 'school_fee_3', 0.0)
    271                 else:
    272                     amount = getattr(certificate, 'school_fee_1', 0.0)
     269                amount = getattr(certificate, 'school_fee_1', 0.0)
    273270                # Cut school fee by 50%
    274271                if category in ('schoolfee_1', 'schoolfee_2'):
     
    287284                except KeyError:
    288285                    return _(u'Session configuration object is not available.'), None
    289                 if student.is_foreigner:
    290                     amount = getattr(certificate, 'school_fee_4', 0.0)
     286                if student.entry_session == 2015:
     287                    amount = getattr(certificate, 'school_fee_2', 0.0)
    291288                else:
    292                     amount = getattr(certificate, 'school_fee_2', 0.0)
     289                    amount = getattr(certificate, 'school_fee_3', 0.0)
    293290            else:
    294291                return _('Wrong state.'), None
Note: See TracChangeset for help on using the changeset viewer.