Changeset 3245 for pykota/trunk/pykota/storage.py
- Timestamp:
- 08/31/07 09:27:44 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storage.py
r3133 r3245 338 338 totalprice += pageprice 339 339 else : 340 coefficients = self.Printer.Coefficients340 coefficients = upq.Printer.Coefficients 341 341 for (ink, value) in usage.items() : 342 342 coefvalue = coefficients.get(ink, 1.0) 343 343 coefprice = (coefvalue * pageprice) / 100.0 344 344 inkprice = coefprice * value 345 self.parent.tool.logdebug("Applying coefficient %f for color %s (used at %f%% on page %i) to base cost %f gives %f" % (coefvalue, ink, value, pageindex+1, pageprice, inkprice))345 self.parent.tool.logdebug("Applying coefficient %f for color %s (used at %f%% on page %i) to base cost %f on printer %s gives %f" % (coefvalue, ink, value, pageindex+1, pageprice, upq.Printer.Name, inkprice)) 346 346 totalprice += inkprice 347 347 if self.User.OverCharge != 1.0 : # TODO : beware of rounding errors