Changeset 13007


Ignore:
Timestamp:
27 May 2015, 15:55:13 (9 years ago)
Author:
Henrik Bettermann
Message:

Non-imported payment tickets must not be submitted to Interswitch if they
are older than 1 day

Location:
main/kofacustom.nigeria/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/CHANGES.txt

    r12973 r13007  
    55================
    66
    7 - Tickets must not be submitted to Interswitch if they are older than 1 day.
     7- Non-imported payment tickets must not be submitted to Interswitch if they
     8  are older than 1 day.
    89
    910- Ensure that lga and nationality are not contradictory.
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/browser.py

    r12973 r13007  
    168168        tz = getUtility(IKofaUtils).tzinfo
    169169        time_delta = datetime.utcnow() - self.context.creation_date
    170         if time_delta.seconds > 3600:
     170        if self.context.created_online and time_delta.seconds > 3600:
    171171            return _("This payment ticket is too old. Please create a new ticket.")
    172172        student = self.context.student
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_export.py

    r12875 r13007  
    118118        result = open(self.outfile, 'rb').read()
    119119        self.assertMatches(
    120             'ac,amount_auth,creation_date,gateway_amt,p_category,p_current,'
     120            'ac,amount_auth,created_online,creation_date,gateway_amt,p_category,p_current,'
    121121            'p_id,p_item,p_level,p_session,p_state,payment_date,provider_amt,'
    122122            'r_amount_approved,r_card_num,r_code,r_company,r_desc,'
    123123            'r_pay_reference,thirdparty_amt,student_id,state,'
    124124            'current_session\r\n'
    125             '666,12.12,2012-04-01 13:12:01#,,schoolfee,1,my-id,p-item,'
     125            '666,12.12,0,2012-04-01 13:12:01#,,schoolfee,1,my-id,p-item,'
    126126            '100,2012,paid,2012-04-01 14:12:01#,,12.12,'
    127127            '789,r-code,interswatch,,,,A111111,created,2012\r\n',
Note: See TracChangeset for help on using the changeset viewer.