Ignore:
Timestamp:
3 Mar 2022, 22:41:55 (3 years ago)
Author:
Henrik Bettermann
Message:

Remove net_amt from pages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/browser.py

    r16842 r16857  
    4141    NigeriaExportPDFClearanceSlip,
    4242    )
    43 
    4443from kofacustom.unidel.students.interfaces import (
    4544    ICustomStudentOnlinePayment,
     
    6261    """ View to edit student clearance data by student
    6362    """
    64 
    6563    @property
    6664    def form_fields(self):
     
    7775            form_fields['lga'].for_display = True
    7876        return form_fields
     77
     78class CustomOnlinePaymentDisplayFormPage(NigeriaOnlinePaymentDisplayFormPage):
     79    """ Page to view an online payment ticket
     80    """
     81    form_fields = grok.AutoFields(ICustomStudentOnlinePayment).omit(
     82        'provider_amt', 'gateway_amt', 'thirdparty_amt', 'p_item','p_combi',
     83        'net_amt')
     84    form_fields[
     85        'creation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
     86    form_fields[
     87        'payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
     88
     89class CustomExportPDFPaymentSlip(NigeriaExportPDFPaymentSlip):
     90    """Deliver a PDF slip of the context.
     91    """
     92    form_fields = grok.AutoFields(ICustomStudentOnlinePayment).omit(
     93        'provider_amt', 'gateway_amt', 'thirdparty_amt', 'p_item',
     94        'p_split_data','p_combi', 'net_amt')
     95    form_fields['creation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
     96    form_fields['payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
     97
Note: See TracChangeset for help on using the changeset viewer.