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

Job price added to history

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r1200 r1203  
    2424# 
    2525# $Log$ 
     26# Revision 1.13  2003/11/23 19:01:35  jalet 
     27# Job price added to history 
     28# 
    2629# Revision 1.12  2003/11/21 14:28:43  jalet 
    2730# More complete job history. 
     
    357360    # update the quota for the current user on this printer  
    358361    if printer.Exists : 
     362        jobprice = (float(printer.PricePerPage or 0.0) * jobsize) + float(printer.PricePerJob or 0.0) 
    359363        if jobsize : 
    360364            userquota = thebackend.storage.getUserPQuota(user, printer) 
     
    363367         
    364368        # adds the current job to history     
    365         printer.addJobToHistory(thebackend.jobid, user, thebackend.accounter.getLastPageCounter(), action, jobsize, thebackend.preserveinputfile, thebackend.title, thebackend.copies, thebackend.options) 
     369        printer.addJobToHistory(thebackend.jobid, user, thebackend.accounter.getLastPageCounter(), action, jobsize, jobprice, thebackend.preserveinputfile, thebackend.title, thebackend.copies, thebackend.options) 
    366370     
    367371    return retcode # return (retcode or gotSigTerm) shouldn't be needed