Ignore:
Timestamp:
13 Jul 2024, 08:43:56 (2 months ago)
Author:
Henrik Bettermann
Message:

Show NYSC request info on fee payment history slip.

File:
1 edited

Legend:

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

    r17835 r17845  
    1919import os
    2020import csv
     21import pytz
    2122from datetime import datetime
    2223from zope.i18n import translate
     
    2425from zope.schema.interfaces import ConstraintNotSatisfied
    2526from zope.formlib.textwidgets import BytesDisplayWidget
    26 from zope.component import getUtility
     27from zope.component import getUtility, queryUtility
    2728from hurry.workflow.interfaces import IWorkflowInfo
    2829from waeup.kofa.interfaces import (
     
    6465    NigeriaAccommodationDisplayFormPage,
    6566    NigeriaStudentBaseDisplayFormPage,
     67    NigeriaExportPDFFinancialClearancePage,
    6668    )
    6769from waeup.uniben.students.interfaces import (
     
    11271129        msave(self, **data)
    11281130        return
     1131
     1132class CustomNigeriaExportPDFFinancialClearancePage(NigeriaExportPDFFinancialClearancePage):
     1133    """Deliver a PDF financial clearance slip.
     1134    """
     1135
     1136    @property
     1137    def note(self):
     1138        if self.context.nysc and self.context.nysc_updated:
     1139            nysc_updated = self.context.nysc_updated.strftime('%d/%m/%Y')
     1140            return """
     1141NYSC requested on %s.
     1142
     1143Senate Info: %s
     1144""" % (nysc_updated, self.context.nysc_senate_info)
     1145        else:
     1146            return
Note: See TracChangeset for help on using the changeset viewer.