Show
Ignore:
Timestamp:
11/23/03 20:01:37 (20 years ago)
Author:
jalet
Message:

Job price added to history

Location:
pykota/trunk/pykota/accounters
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/accounters/external.py

    r1200 r1203  
    2222# 
    2323# $Log$ 
     24# Revision 1.10  2003/11/23 19:01:36  jalet 
     25# Job price added to history 
     26# 
    2427# Revision 1.9  2003/11/21 14:28:45  jalet 
    2528# More complete job history. 
     
    107110         
    108111        # adds the current job to history     
    109         printer.addJobToHistory(self.filter.jobid, user, self.getLastPageCounter(), action, jobsize, self.filter.preserveinputfile, self.filter.title, self.filter.copies, self.filter.options) 
     112        jobprice = (float(printer.PricePerPage or 0.0) * jobsize) + float(printer.PricePerJob or 0.0) 
     113        printer.addJobToHistory(self.filter.jobid, user, self.getLastPageCounter(), action, jobsize, jobprice, self.filter.preserveinputfile, self.filter.title, self.filter.copies, self.filter.options) 
    110114         
    111115        self.endJob(printer, user) 
  • pykota/trunk/pykota/accounters/stupid.py

    r1200 r1203  
    2222# 
    2323# $Log$ 
     24# Revision 1.8  2003/11/23 19:01:37  jalet 
     25# Job price added to history 
     26# 
    2427# Revision 1.7  2003/11/21 14:28:46  jalet 
    2528# More complete job history. 
     
    109112         
    110113        # adds the current job to history     
    111         printer.addJobToHistory(self.filter.jobid, user, counterbeforejob, action, jobsize, self.filter.preserveinputfile, self.filter.title, self.filter.copies, self.filter.options) 
     114        jobprice = (float(printer.PricePerPage or 0.0) * jobsize) + float(printer.PricePerJob or 0.0) 
     115        printer.addJobToHistory(self.filter.jobid, user, counterbeforejob, action, jobsize, jobprice, self.filter.preserveinputfile, self.filter.title, self.filter.copies, self.filter.options) 
    112116             
    113117        return action