Ignore:
Timestamp:
2 May 2012, 06:58:29 (13 years ago)
Author:
Henrik Bettermann
Message:

Store individual cost when creating access codes after online payment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/accesscodes/accesscode.py

    r8321 r8322  
    588588    return fire_transition(access_code, 'reenable', comment=comment)
    589589
    590 def create_accesscode(batch_prefix, batch_num, owner):
     590def create_accesscode(batch_prefix, batch_num, cost, owner):
    591591    """
    592592    """
     
    598598    rand_num = list(batch.getNewRandomNum())[0]
    599599    num = len(batch) + 1
    600     batch.addAccessCode(num, rand_num, owner)
     600    batch.addAccessCode(num, rand_num, cost, owner)
    601601    batch.entry_num += 1
    602602    pin = u'%s-%s-%s' % (batch_prefix,batch_num,rand_num)
Note: See TracChangeset for help on using the changeset viewer.