Changeset 15181


Ignore:
Timestamp:
2 Oct 2018, 15:03:19 (6 years ago)
Author:
Henrik Bettermann
Message:

See ticket #513.

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

Legend:

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

    r15180 r15181  
    243243
    244244    library_fee = schema.Float(
    245         title = _(u'Library Development Fee'),
     245        title = _(u'Library Development Fee UG'),
     246        default = 0.0,
     247        required = True,
     248        )
     249
     250    library_fee_pg = schema.Float(
     251        title = _(u'Library Development Fee PG'),
    246252        default = 0.0,
    247253        required = True,
  • main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py

    r15180 r15181  
    244244                library_amt = gateway_net_amt(
    245245                    academic_session.library_fee)
     246                library_amt_pg = gateway_net_amt(
     247                    academic_session.library_fee_pg)
    246248                xmldict['student_union_bank_id'] = '31'
    247249                xmldict['student_union_acct'] = '0051005007'
     
    267269                library_amt = gateway_net_amt(
    268270                    academic_session.library_fee)
     271                library_amt_pg = gateway_net_amt(
     272                    academic_session.library_fee_pg)
    269273                xmldict['student_union_bank_id'] = '7'
    270274                xmldict['student_union_acct'] = '1019763348'
     
    293297                xmldict['student_welfare_assurance_amt'] = 100 * student_welfare_assurance_amt
    294298                xmldict['sports_amt'] = 100 * sports_amt
    295                 xmldict['library_amt'] = 100 * library_amt
     299                if student.is_postgrad:
     300                    xmldict['library_amt'] = 100 * library_amt_pg
     301                else:
     302                    xmldict['library_amt'] = 100 * library_amt
    296303                xmldict['institution_amt'] = 100 * (
    297304                    gateway_net_amt(self.context.amount_auth)
  • main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py

    r15180 r15181  
    438438                    amount += gateway_net_amt(academic_session.welfare_fee) + \
    439439                        gateway_net_amt(academic_session.union_fee)
    440                 gateway_net_amt(academic_session.sports_fee)
    441                 gateway_net_amt(academic_session.library_fee)
     440                amount += gateway_net_amt(academic_session.sports_fee)
     441                if student.is_postgrad:
     442                    amount += gateway_net_amt(academic_session.library_fee_pg)
     443                else:
     444                    amount += gateway_net_amt(academic_session.library_fee)
    442445                if student.entry_session == 2016 \
    443446                    and student.entry_mode == 'ug_ft' \
  • main/waeup.aaue/trunk/src/waeup/aaue/utils/utils.py

    r15180 r15181  
    6565        'fac_dep': 'Faculty and Departmental Dues',
    6666        'restitution': 'Restitution Fee',
    67         'sports_develop': 'Sports Development Fee',
    68         'library_develop': 'Library Development Fee',
    6967        }
    7068
Note: See TracChangeset for help on using the changeset viewer.