Ignore:
Timestamp:
11 Oct 2016, 08:58:17 (8 years ago)
Author:
Henrik Bettermann
Message:

Remove restrictions for adding balance payment tickets.

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  
    831831        p_id = row['p_id'].strip('#')
    832832        # 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):
    834835            student.__parent__.logger.info(
    835836                '%s - %s - previous update cancelled'
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r14159 r14213  
    504504        if amount in (0.0, None) or amount < 0:
    505505            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.'), None
    508506        payment = createObject(u'waeup.StudentOnlinePayment')
    509507        timestamp = ("%d" % int(time()*10000))[1:]
Note: See TracChangeset for help on using the changeset viewer.