Changeset 15685


Ignore:
Timestamp:
15 Oct 2019, 20:13:06 (5 years ago)
Author:
Henrik Bettermann
Message:

Set payment.p_combi but do not display it. We need this list for posting split payment data to Nigerian the payment gateways.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r15664 r15685  
    20002000        form = self.request.form
    20012001        p_category = form.get('form.p_category', None)
    2002         p_combi = form.get('form.p_combi', None)
     2002        p_combi = form.get('form.p_combi', [])
    20032003        if isinstance(form.get('form.p_combi', None), unicode):
    20042004            p_combi = [p_combi,]
     
    21172117    grok.name('index')
    21182118    grok.require('waeup.viewStudent')
    2119     form_fields = grok.AutoFields(IStudentOnlinePayment).omit('p_item')
     2119    form_fields = grok.AutoFields(IStudentOnlinePayment).omit(
     2120        'p_item', 'p_combi')
    21202121    form_fields[
    21212122        'creation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
     
    21702171    grok.name('payment_slip.pdf')
    21712172    grok.require('waeup.viewStudent')
    2172     form_fields = grok.AutoFields(IStudentOnlinePayment).omit('p_item')
     2173    form_fields = grok.AutoFields(IStudentOnlinePayment).omit(
     2174        'p_item', 'p_combi')
    21732175    form_fields['creation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
    21742176    form_fields['payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r15664 r15685  
    403403
    404404    def setPaymentDetails(self, category, student,
    405             previous_session, previous_level, combi):
     405            previous_session, previous_level, combi=[]):
    406406        """Create a payment ticket and set the payment data of a
    407407        student for the payment category specified.
     
    521521        payment.p_current = p_current
    522522        payment.amount_auth = amount
     523        payment.p_combi = combi
    523524        return None, payment
    524525
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py

    r15664 r15685  
    184184        'transcript': 'Transcript Fee',
    185185        'late_registration': 'Late Course Registration Fee',
    186         'combi': 'Combi Payments',
     186        'combi': 'Combi Payment',
    187187        }
    188188
Note: See TracChangeset for help on using the changeset viewer.