Changeset 18207 for main


Ignore:
Timestamp:
11 Nov 2025, 18:21:32 (13 months ago)
Author:
Henrik Bettermann
Message:

…on student payment slips not on applicant payment slips.

Location:
main/waeup.aaue/trunk/src/waeup/aaue
Files:
2 edited

Legend:

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

    r18206 r18207  
    745745        students_utils = getUtility(IStudentsUtils)
    746746        return students_utils.renderPDF(self,'payment_slip.pdf',
    747             self.context.__parent__, applicantview, note=self.note,
    748             topMargin=1.2,)
     747            self.context.__parent__, applicantview, note=self.note,)
    749748
    750749class CustomApplicantCheckStatusPage(ApplicantCheckStatusPage):
  • main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py

    r18187 r18207  
    344344
    345345        return text
     346
     347    def render(self):
     348        #if self.context.p_state != 'paid':
     349        #    self.flash('Ticket not yet paid.')
     350        #    self.redirect(self.url(self.context))
     351        #    return
     352        studentview = StudentBasePDFFormPage(self.context.student,
     353            self.request, self.omit_fields)
     354        students_utils = getUtility(IStudentsUtils)
     355        return students_utils.renderPDF(self,
     356            'payment_slip_%s_%s.pdf' % (
     357                self.context.student.student_id, self.context.p_id),
     358            self.context.student, studentview, note=self.note,
     359            omit_fields=self.omit_fields,
     360            topMargin=1.2,)
    346361
    347362class CustomStudyCourseManageFormPage(StudyCourseManageFormPage):
Note: See TracChangeset for help on using the changeset viewer.