Changeset 3036 for pykota/trunk/bin/cupspykota
- Timestamp:
- 10/13/06 23:51:14 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/cupspykota
r3023 r3036 574 574 """Precomputes the job price with a software method.""" 575 575 self.logdebug("Precomputing job's price...") 576 self.softwareJobPrice = self.UserPQuota.computeJobPrice(self.softwareJobSize )576 self.softwareJobPrice = self.UserPQuota.computeJobPrice(self.softwareJobSize, self.preaccounter.inkUsage) 577 577 self.logdebug("Precomputed job's price is %.3f credits." \ 578 578 % self.softwareJobPrice) … … 1270 1270 # update the quota for the current user on this printer 1271 1271 self.printInfo(_("Updating user %s's quota on printer %s") % (self.UserName, self.PrinterName)) 1272 self.JobPrice = self.UserPQuota.increasePagesUsage(self.JobSize )1272 self.JobPrice = self.UserPQuota.increasePagesUsage(self.JobSize, self.accounter.inkUsage) 1273 1273 1274 1274 # adds the current job to history