Changeset 3243

Show
Ignore:
Timestamp:
08/03/07 13:57:12 (17 years ago)
Author:
jerome
Message:

Fixed a problem with old payments and/or payments with no description.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storages/ldapstorage.py

    r3184 r3243  
    780780                            else :     
    781781                                description = self.databaseToUserCharset(base64.decodestring(description)) 
     782                            if amount.endswith(" #") :     
     783                                amount = amount[:-2] # TODO : should be catched earlier, the bug is above I think 
    782784                            user.Payments.append((date, float(amount), description)) 
    783785                    user.Exists = True