Changeset 17213


Ignore:
Timestamp:
9 Dec 2022, 10:13:45 (2 years ago)
Author:
Henrik Bettermann
Message:

Remove order field and more conditions depending on order.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.edocons/trunk/src/kofacustom/edocons/applicants/interfaces.py

    r17212 r17213  
    543543        )
    544544
    545     order = schema.Choice(
    546         source = OrderSource(),
    547         title = _(u'Type of Order'),
    548         required = True,
    549         )
     545    #order = schema.Choice(
     546    #    source = OrderSource(),
     547    #    title = _(u'Type of Order'),
     548    #    required = True,
     549    #    )
    550550
    551551    dispatch_address = schema.Text(
     
    593593    #    )
    594594
    595     @invariant
    596     def type_of_order(applicant):
    597         #if not applicant.collected and applicant.order != 'o':
    598         #    raise Invalid(_("If you haven't collected transcript before, type of order must be 'Student Transcript'."))
    599         if applicant.order == 'o' and applicant.charge.startswith('cert_'):
    600             raise Invalid(_("You've selected the wrong transcript charge."))
    601         if applicant.order == 'c' and not applicant.charge.startswith('cert_'):
    602             raise Invalid(_("You've selected the wrong transcript charge."))
     595    #@invariant
     596    #def type_of_order(applicant):
     597    #    if not applicant.collected and applicant.order != 'o':
     598    #        raise Invalid(_("If you haven't collected transcript before, type of order must be 'Student Transcript'."))
     599    #    if applicant.order == 'o' and applicant.charge.startswith('cert_'):
     600    #        raise Invalid(_("You've selected the wrong transcript charge."))
     601    #    if applicant.order == 'c' and not applicant.charge.startswith('cert_'):
     602    #        raise Invalid(_("You've selected the wrong transcript charge."))
    603603
    604604
Note: See TracChangeset for help on using the changeset viewer.