Changeset 3101

Show
Ignore:
Timestamp:
12/01/06 17:10:39 (18 years ago)
Author:
jerome
Message:

Fixed a bug in ink accounting, thx to Netzwerkler.

Location:
pykota/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/NEWS

    r3099 r3101  
    2424    - 1.25beta (2006-11-30) : 
    2525     
     26        - Fixed a bug wrt ink accounting, thanks to Netzwerkler. 
     27     
    2628        - Updated all message catalogs and manual pages. 
    2729         
  • pykota/trunk/pykota/storage.py

    r3064 r3101  
    344344                                    inkprice = coefprice * value 
    345345                                    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)) 
    346                                     totalprice += coefprice 
     346                                    totalprice += inkprice 
    347347        if self.User.OverCharge != 1.0 : # TODO : beware of rounding errors 
    348348            overcharged = totalprice * self.User.OverCharge