Ignore:
Timestamp:
24 Apr 2012, 15:27:00 (13 years ago)
Author:
Henrik Bettermann
Message:

The payment receipt is now called payment slip and can be downloaded even if not paid. This is necessary for eTranzact payments.

File:
1 edited

Legend:

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

    r8260 r8262  
    544544    """
    545545    grok.context(IApplicantOnlinePayment)
    546     grok.name('payment_receipt.pdf')
     546    grok.name('payment_slip.pdf')
    547547    grok.require('waeup.viewApplication')
    548548    form_fields = grok.AutoFields(IApplicantOnlinePayment)
     
    561561    def label(self):
    562562        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    563         return translate(_('Online Payment Receipt'),
     563        return translate(_('Online Payment Slip'),
    564564            'waeup.kofa', target_language=portal_language) \
    565565            + ' %s' % self.context.p_id
    566566
    567567    def render(self):
    568         if self.context.p_state != 'paid':
    569             self.flash(_('Ticket not yet paid.'))
    570             self.redirect(self.url(self.context))
    571             return
     568        #if self.context.p_state != 'paid':
     569        #    self.flash(_('Ticket not yet paid.'))
     570        #    self.redirect(self.url(self.context))
     571        #    return
    572572        applicantview = ApplicantBaseDisplayFormPage(self.context.__parent__,
    573573            self.request)
    574574        students_utils = getUtility(IStudentsUtils)
    575         return students_utils.renderPDF(self,'payment_receipt.pdf',
     575        return students_utils.renderPDF(self,'payment_slip.pdf',
    576576            self.context.__parent__, applicantview, note=self.note)
    577577
Note: See TracChangeset for help on using the changeset viewer.