Changeset 16144 for main


Ignore:
Timestamp:
5 Jul 2020, 21:01:00 (4 years ago)
Author:
Henrik Bettermann
Message:

Configure DESTINATION_COST.

Location:
main/waeup.uniben/trunk/src/waeup/uniben/applicants
Files:
3 edited

Legend:

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

    r16131 r16144  
    134134    'date_of_birth',
    135135    'sex',
    136     'place_of_birth',
    137136    'nationality',
    138137    'entry_mode',
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/interfaces.py

    r16131 r16144  
    8080
    8181DESTINATION_COST = {
    82     'none': ('To the moon', 1000000000.0, 1),
    83     #'nigeria': ('Nigeria', 2000.0, 1),
    84     #'africa': ('Africa ', 3000.0, 2),
    85     #'eurasia': ('Europe/Asia ', 3000.0, 3),
     82    #'none': ('To the moon', 1000000000.0, 1),
     83    'nigeria': ('Within Nigeria', 20000.0, 1),
     84    'africa': ('Within Africa ', 30000.0, 2),
     85    'inter': ('International', 35000.0, 3),
    8686    }
    8787
     
    275275        )
    276276
    277     place_of_birth = schema.TextLine(
    278         title = _(u'Place of Birth'),
    279         readonly = False,
    280         required = False,
    281         )
    282 
    283277    nationality = schema.Choice(
    284278        vocabulary = nats_vocab,
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/utils.py

    r16131 r16144  
    123123            for cat in applicant.registration_cats:
    124124                payment.amount_auth += REGISTRATION_CATS[cat][1]
     125            return
    125126        elif applicant.container_code.startswith('trans'):
    126127            cost = DESTINATION_COST[applicant.charge][1]
    127128            payment.amount_auth = applicant.no_copies * cost
    128129            payment.p_category = 'transcript'
     130            return
    129131        else:
    130132            payment.p_category = 'application'
Note: See TracChangeset for help on using the changeset viewer.