Changeset 14355


Ignore:
Timestamp:
19 Dec 2016, 11:00:36 (8 years ago)
Author:
Henrik Bettermann
Message:

Revert r14348.

Add gst_text_book_fee_0.

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

Legend:

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

    r14348 r14355  
    158158        )
    159159
     160    gst_text_book_0_fee = schema.Float(
     161        title = _(u'Text Book Fee GST101 GST102 GST111 GST112'),
     162        default = 0.0,
     163        required = True,
     164        )
     165
    160166    gst_text_book_1_fee = schema.Float(
    161167        title = _(u'Text Book Fee GST101 and GST102'),
     
    176182        )
    177183
    178     ent_text_book_4_fee = schema.Float(
     184    ent_text_book_1_fee = schema.Float(
    179185        title = _(u'Text Book Fee ENT201'),
    180         default = 0.0,
    181         required = True,
    182         )
    183 
    184     gst_text_book_5_fee = schema.Float(
    185         title = _(u'Text Book Fee GST101'),
    186         default = 0.0,
    187         required = True,
    188         )
    189 
    190     gst_text_book_6_fee = schema.Float(
    191         title = _(u'Text Book Fee GST102'),
    192         default = 0.0,
    193         required = True,
    194         )
    195 
    196     gst_text_book_7_fee = schema.Float(
    197         title = _(u'Text Book Fee GST111'),
    198         default = 0.0,
    199         required = True,
    200         )
    201 
    202     gst_text_book_8_fee = schema.Float(
    203         title = _(u'Text Book Fee GST112'),
    204186        default = 0.0,
    205187        required = True,
     
    218200        )
    219201
    220     ent_registration_3_fee = schema.Float(
     202    ent_registration_1_fee = schema.Float(
    221203        title = _(u'Registration Fee ENT201'),
    222204        default = 0.0,
  • main/waeup.aaue/trunk/src/waeup/aaue/students/studylevel.py

    r14354 r14355  
    183183                return False
    184184            if course.code in ('ENT201',) and \
    185                 not 'gst_registration_3' in paid_cats:
    186                 return False
    187             if course.code == 'GST101'and \
     185                not 'ent_registration_1' in paid_cats:
     186                return False
     187            if course.code in ('GST101', 'GST102') and \
    188188                not 'gst_text_book_1' in paid_cats and \
    189                 not 'gst_text_book_5' in paid_cats:
    190                 return False
    191             if course.code == 'GST102'and \
    192                 not 'gst_text_book_1' in paid_cats and \
    193                 not 'gst_text_book_6' in paid_cats:
    194                 return False
    195             if course.code == 'GST111'and \
     189                not 'gst_text_book_0' in paid_cats:
     190                return False
     191            if course.code in ('GST111', 'GST112') and \
    196192                not 'gst_text_book_2' in paid_cats and \
    197                 not 'gst_text_book_7' in paid_cats:
    198                 return False
    199             if course.code == 'GST112'and \
    200                 not 'gst_text_book_2' in paid_cats and \
    201                 not 'gst_text_book_8' in paid_cats:
     193                not 'gst_text_book_0' in paid_cats:
    202194                return False
    203195            if course.code in ('GST222',) and \
     
    205197                return False
    206198            if course.code in ('ENT201',) and \
    207                 not 'gst_text_book_4' in paid_cats:
     199                not 'ent_text_book_1' in paid_cats:
    208200                return False
    209201            return True
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py

    r14348 r14355  
    865865        configuration_1.gst_registration_1_fee = 3333.0
    866866        configuration_1.gst_text_book_1_fee = 4444.0
    867         configuration_1.gst_text_book_5_fee = 2222.0
     867        configuration_1.gst_text_book_0_fee = 2222.0
    868868        self.app['configuration'].addSessionConfiguration(configuration_1)
    869869        course = createObject('waeup.Course')
     
    908908            in self.browser.contents)
    909909        self.browser.open(self.payments_path + '/addop')
    910         self.browser.getControl(name="form.p_category").value = ['gst_text_book_5']
     910        self.browser.getControl(name="form.p_category").value = ['gst_text_book_0']
    911911        self.browser.getControl("Create ticket").click()
    912912        self.student['payments'].values()[1].approve()
  • main/waeup.aaue/trunk/src/waeup/aaue/utils/utils.py

    r14348 r14355  
    4949        'concessional': 'Concessional Fee',
    5050        'id_card': 'Student ID Card',
    51         'gst_text_book_1': 'Text Book Fee GST101 and GST102',
    52         'gst_text_book_2': 'Text Book Fee GST111 and GST112',
     51        'gst_text_book_0': 'Text Book Fee GST101 GST102 GST111 GST112',
     52        'gst_text_book_1': 'Text Book Fee GST101 GST102',
     53        'gst_text_book_2': 'Text Book Fee GST111 GST112',
    5354        'gst_text_book_3': 'Text Book Fee GST222',
    5455        'ent_text_book_4': 'Text Book Fee ENT201',
    55         'gst_text_book_5': 'Text Book Fee GST101',
    56         'gst_text_book_6': 'Text Book Fee GST102',
    57         'gst_text_book_7': 'Text Book Fee GST111',
    58         'gst_text_book_8': 'Text Book Fee GST112',
    5956        'gst_registration_1': 'Registration Fee GST101 GST102 GST111 GST112',
    6057        'gst_registration_2': 'Registration Fee GST222',
     
    8380        'concessional': 'Concessional Fee',
    8481        #'id_card': 'Student ID Card',
    85         'gst_text_book_1': 'Text Book Fee GST101 and GST102',
    86         'gst_text_book_2': 'Text Book Fee GST111 and GST112',
     82        'gst_text_book_0': 'Text Book Fee GST101 GST102 GST111 GST112',
     83        'gst_text_book_1': 'Text Book Fee GST101 GST102',
     84        'gst_text_book_2': 'Text Book Fee GST111 GST112',
    8785        'gst_text_book_3': 'Text Book Fee GST222',
    8886        'ent_text_book_4': 'Text Book Fee ENT201',
    89         'gst_text_book_5': 'Text Book Fee GST101',
    90         'gst_text_book_6': 'Text Book Fee GST102',
    91         'gst_text_book_7': 'Text Book Fee GST111',
    92         'gst_text_book_8': 'Text Book Fee GST112',
    9387        'gst_registration_1': 'Registration Fee GST101 GST102 GST111 GST112',
    9488        'gst_registration_2': 'Registration Fee GST222',
Note: See TracChangeset for help on using the changeset viewer.