Changeset 16821 for main


Ignore:
Timestamp:
21 Feb 2022, 13:22:51 (3 years ago)
Author:
Henrik Bettermann
Message:

Allow import of duplicate payments if paid.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/batching.py

    r16819 r16821  
    913913        p_id = row['p_id'].strip('#')
    914914        # Requirement added on 19/02/2015: same payment must not exist.
    915         if obj.p_item != 'Balance' and self.samePaymentMade(
     915        if obj.p_item != 'Balance' and obj.p_state != 'paid' and self.samePaymentMade(
    916916            student, obj.p_category, obj.p_session):
    917917            student.__parent__.logger.info(
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/sample_create_payment_data.csv

    r12623 r16821  
    1313paid,schoolfee,1,2014,19500,BTECHBDT,19500,942,0,2010/11/26 19:59:33.744 GMT+1,online
    1414paid,schoolfee,1,2015,19500,BTECHBDT,19500,942,0,2010/11/26 19:59:33.744 GMT+1,online
    15 paid,schoolfee,1,2015,19500,BTECHBDT,19500,942,0,2010/11/26 19:59:33.744 GMT+1,online
     15unpaid,schoolfee,1,2015,19500,BTECHBDT,19500,942,0,2010/11/26 19:59:33.744 GMT+1,online
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_batching.py

    r16819 r16821  
    13581358        self.assertTrue(
    13591359            '1,942,online,BTECHBDT,2010/11/26 19:59:33.744 GMT+1,0,'
    1360             '19500,schoolfee,19500,2015,paid,'
     1360            '19500,schoolfee,19500,2015,unpaid,'
    13611361            'Same payment has already been made.'
    13621362            in content)
Note: See TracChangeset for help on using the changeset viewer.