Show
Ignore:
Timestamp:
01/12/04 23:43:40 (20 years ago)
Author:
jalet
Message:

New formula to compute a job's price

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/accounter.py

    r1272 r1285  
    2222# 
    2323# $Log$ 
     24# Revision 1.13  2004/01/12 22:43:40  jalet 
     25# New formula to compute a job's price 
     26# 
    2427# Revision 1.12  2004/01/11 23:43:31  jalet 
    2528# Bug wrt number of copies with CUPS should be fixed. 
     
    131134         
    132135        # adds the current job to history     
    133         jobprice = (float(userpquota.Printer.PricePerPage or 0.0) * jobsize) + float(userpquota.Printer.PricePerJob or 0.0) 
     136        jobprice = userpquota.computeJobPrice(jobsize) 
    134137        userpquota.Printer.addJobToHistory(self.filter.jobid, userpquota.User, self.getLastPageCounter(), action, jobsize, jobprice, self.filter.preserveinputfile, self.filter.title, self.filter.copies, self.filter.options) 
    135138        self.endJob(userpquota)