Changeset 1285 for pykota/trunk/bin/pykotme
- Timestamp:
- 01/12/04 23:43:40 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/pykotme
r1257 r1285 24 24 # 25 25 # $Log$ 26 # Revision 1.7 2004/01/12 22:43:40 jalet 27 # New formula to compute a job's price 28 # 26 29 # Revision 1.6 2004/01/08 14:10:32 jalet 27 30 # Copyright year changed. … … 157 160 print _("Job size : %i pages") % nbpages 158 161 for printer in printers : 159 cost = (nbpages * float(printer.PricePerPage or 0)) + float(printer.PricePerJob or 0) 162 userpquota = self.storage.getUserPQuota(user, printer) 163 cost = userpquota.computeJobPrice(nbpages) 160 164 print _("Cost on printer %s : %.2f") % (printer.Name, cost) 161 165