Ignore:
Timestamp:
28 Dec 2022, 09:56:45 (2 years ago)
Author:
Henrik Bettermann
Message:

Save p_option.

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

Legend:

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

    r17200 r17245  
    823823            self.redirect(self.url(self.context))
    824824            return
    825         if getattr(self.context, 'p_option', None):
    826             payment.p_option = self.context.p_option
    827825        self.context[payment.p_id] = payment
    828826        self.context.writeLogMessage(self, 'added: %s' % payment.p_id)
     
    855853    def createTicket(self, **data):
    856854        p_category = data['p_category']
    857         p_option = data.get('p_option', None)
     855        form = self.request.form
     856        p_option = form.get('form.p_option', None)
    858857        balance_amount = data.get('balance_amount', None)
    859858        applicants_utils = getUtility(IApplicantsUtils)
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py

    r17205 r17245  
    716716        required = True,
    717717        readonly = False,
    718         description = _(
    719             u'Balance in Naira'),
     718        #description = _(
     719        #    u'Balance in Naira'),
    720720        )
    721721
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r17182 r17245  
    23272327    def createTicket(self, **data):
    23282328        p_category = data['p_category']
    2329         p_option = data.get('p_option', None)
     2329        form = self.request.form
     2330        p_option = form.get('form.p_option', None)
    23302331        previous_session = data.get('p_session', None)
    23312332        previous_level = data.get('p_level', None)
     
    23712372    def createTicket(self, **data):
    23722373        p_category = data['p_category']
    2373         p_option = data.get('p_option', None)
     2374        form = self.request.form
     2375        p_option = form.get('form.p_option', None)
    23742376        balance_session = data.get('balance_session', None)
    23752377        balance_level = data.get('balance_level', None)
  • main/waeup.kofa/trunk/src/waeup/kofa/students/interfaces.py

    r16671 r17245  
    932932        required = True,
    933933        readonly = False,
    934         description = _(
    935             u'Balance in Naira '),
     934        #description = _(
     935        #    u'Balance in Naira '),
    936936        )
    937937
Note: See TracChangeset for help on using the changeset viewer.