Ignore:
Timestamp:
24 Apr 2012, 15:37:51 (12 years ago)
Author:
Henrik Bettermann
Message:

Remove surcharge configuration completely.

Implement application fee and school fee payments via Interswitch (part 3)

File:
1 edited

Legend:

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

    r8259 r8263  
    2929    ApplicantManageFormPage, ApplicantEditFormPage,
    3030    ApplicantRegistrationPage, ApplicantAddFormPage,
    31     OnlinePaymentDisplayFormPage, AcceptanceFeePaymentAddPage,
     31    OnlinePaymentDisplayFormPage, ApplicationFeePaymentAddPage,
    3232    OnlinePaymentBreadcrumb, ExportPDFPaymentSlipPage,
    3333    ApplicantBaseDisplayFormPage)
     
    127127    """
    128128    grok.context(ICustomApplicantOnlinePayment)
    129     form_fields = grok.AutoFields(ICustomApplicantOnlinePayment).omit(
    130         'surcharge_1', 'surcharge_2', 'surcharge_3', 'ac')
     129    form_fields = grok.AutoFields(ICustomApplicantOnlinePayment).omit('ac')
    131130    form_fields[
    132131        'creation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
     
    140139        return tcode[len(tcode)-8:len(tcode)]
    141140
    142 class CustomAcceptanceFeePaymentAddPage(AcceptanceFeePaymentAddPage):
     141class CustomApplicationFeePaymentAddPage(ApplicationFeePaymentAddPage):
    143142    """ Page to add an online payment ticket
    144143    """
     
    146145
    147146    def _fillCustomFields(self, payment, session_config):
    148         payment.surcharge_1 = session_config.surcharge_1
    149         payment.surcharge_2 = session_config.surcharge_2
    150         payment.surcharge_3 = session_config.surcharge_3
     147        # No custom fields at the moment
    151148        return payment
    152149
Note: See TracChangeset for help on using the changeset viewer.