Changeset 2064
- Timestamp:
- 02/15/05 14:13:27 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/reporter.py
r2054 r2064 22 22 # 23 23 # $Log$ 24 # Revision 1.12 2005/02/15 13:13:27 jalet 25 # Fixes output when user has got a negative or nul overcharging factor. 26 # 24 27 # Revision 1.11 2005/02/13 22:02:29 jalet 25 28 # Big database structure changes. Upgrade script is now included as well as … … 127 130 #balance 128 131 if entry.LimitBy and (entry.LimitBy.lower() == "balance") : 129 if balance <= 0 : 132 if balance == 0.0 : 133 if entry.OverCharge > 0 : 134 datelimit = "DENY" 135 reached = "+B" 136 else : 137 # overcharging by a negative or nul factor means user is always allowed to print 138 # TODO : do something when printer prices are negative as well ! 139 datelimit = "" 140 reached = "-B" 141 elif balance < 0 : 130 142 datelimit = "DENY" 131 143 reached = "+B"