- Timestamp:
- 11 Oct 2016, 08:58:17 (8 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/batching.py
r14189 r14213 831 831 p_id = row['p_id'].strip('#') 832 832 # Requirement added on 19/02/2015: same payment must not exist. 833 if self.samePaymentMade(student, obj.p_category, obj.p_session): 833 if obj.p_item != 'Balance' and self.samePaymentMade( 834 student, obj.p_category, obj.p_session): 834 835 student.__parent__.logger.info( 835 836 '%s - %s - previous update cancelled' -
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r14159 r14213 504 504 if amount in (0.0, None) or amount < 0: 505 505 return _('Amount must be greater than 0.'), None 506 if self.samePaymentMade(student, 'balance', p_item, p_session):507 return _('This type of payment has already been made.'), None508 506 payment = createObject(u'waeup.StudentOnlinePayment') 509 507 timestamp = ("%d" % int(time()*10000))[1:]
Note: See TracChangeset for help on using the changeset viewer.