Changeset 10812


Ignore:
Timestamp:
29 Nov 2013, 09:22:16 (11 years ago)
Author:
Henrik Bettermann
Message:

Customize CustomExportPDFPaymentSlipPage.

Further customize customer workflow.

Location:
main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/locales/en/LC_MESSAGES/waeup.kofa.po

    r10806 r10812  
    309309msgstr "Main Contract"
    310310
    311 msgid "admitted"
    312 msgstr "contract approved"
    313 
    314311msgid "Start new session"
    315312msgstr "Start new subscription period"
     
    321318msgstr "First Subscription Period"
    322319
     320msgid "Entry Session:"
     321msgstr "First Subscription Period:"
     322
    323323msgid "Application Slip"
    324324msgstr "Subscription Slip"
     
    330330msgstr "meter fee paid"
    331331
     332msgid "Add current session payment ticket"
     333msgstr "Add subscription period payment ticket"
     334
     335msgid "Session started."
     336msgstr "New subscription period started."
     337
     338msgid "${a}: Study Course"
     339msgstr "${a}: Main Contract"
     340
     341msgid "Study Course:"
     342msgstr "Main Contract:"
     343
  • main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/students/browser.py

    r10809 r10812  
    3131    CourseTicketDisplayFormPage, StudentTriggerTransitionFormPage,
    3232    msave, emit_lock_message, StudyCourseDisplayFormPage,
    33     StudyCourseManageFormPage)
     33    StudyCourseManageFormPage,
     34    ExportPDFPaymentSlipPage,
     35    )
    3436from waeup.kofa.students.interfaces import (
    3537    IStudentsUtils, ICourseTicket)
     
    7274
    7375
    74 
    75 
    76 
    77 
    7876class CustomStudyCourseDisplayFormPage(StudyCourseDisplayFormPage):
    7977    """ Page to display the student study course data
     
    9694                'certificate', 'entry_session', 'current_session',
    9795                'service_address')
     96
     97class CustomExportPDFPaymentSlipPage(ExportPDFPaymentSlipPage):
     98    """Deliver a PDF slip of the context.
     99    """
     100    omit_fields = (
     101        'password', 'suspended', 'phone', 'date_of_birth',
     102        'adm_code', 'sex', 'suspended_comment', 'current_mode')
  • main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/students/viewlets.py

    r10804 r10812  
    1919from waeup.kofa.students.viewlets import (
    2020    StudentsTab, AdmissionSlipActionButton, StudentManageClearanceLink,
    21     StudentManagePersonalLink, StudentManageAccommodationLink)
     21    StudentManagePersonalLink, StudentManageAccommodationLink,
     22    AddBalancePaymentActionButton,
     23    AddPreviousPaymentActionButton)
    2224
    2325from kofacustom.ekodisco.interfaces import MessageFactory as _
     
    4244class CustomStudentManageAccommodationLink(StudentManageAccommodationLink):
    4345    link = ''
     46
     47class CustomAddBalancePaymentActionButton(AddBalancePaymentActionButton):
     48    target = ''
     49
     50class CustomAddPreviousPaymentActionButton(AddPreviousPaymentActionButton):
     51    target = ''
  • main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/students/workflow.py

    r10806 r10812  
    3030        msg = _('Contract approved'),
    3131        source = CREATED,
    32         destination = ADMITTED),
     32        destination = CLEARED),
    3333
    3434    Transition(
     
    3636        title = _('Reset customer to initial state'),
    3737        msg = _('Reset to initial state'),
    38         source = ADMITTED,
     38        source = CLEARED,
    3939        destination = CREATED),
    4040
    4141    Transition(
    42         transition_id = 'pay_meter_fee',
    43         title = _('Pay meter fee'),
    44         msg = _('Meter fee paid'),
    45         source = ADMITTED,
     42        transition_id = 'pay_first_school_fee',
     43        title = _('Pay first meter fee'),
     44        msg = _('First meter fee payment made'),
     45        source = CLEARED,
    4646        destination = PAID),
    4747
    4848    Transition(
    49         transition_id = 'approve_meter_fee_payment',
     49        transition_id = 'approve_first_school_fee',
     50        title = _('Approve first meter payment'),
     51        msg = _('First meter fee payment approved'),
     52        source = CLEARED,
     53        destination = PAID),
     54
     55    # The pg fee payment has proper handlers which suit
     56    # customer payments.
     57
     58    Transition(
     59        transition_id = 'pay_pg_fee',
     60        title = _('Pay meter fee'),
     61        msg = _('Meter fee paid'),
     62        source = PAID,
     63        destination = PAID),
     64
     65    Transition(
     66        transition_id = 'approve_pg_fee',
    5067        title = _('Approve meter fee payment'),
    5168        msg = _('Meter fee payment approved'),
    52         source = ADMITTED,
     69        source = PAID,
    5370        destination = PAID),
    5471
     
    5875        msg = _("Reset to state 'contract approved'"),
    5976        source = PAID,
    60         destination = ADMITTED),
     77        destination = CLEARED),
    6178    )
    6279
Note: See TracChangeset for help on using the changeset viewer.