Show
Ignore:
Timestamp:
07/27/05 15:17:28 (19 years ago)
Author:
jerome
Message:

Fixed an LDAP filtering problem when several billing codes were passed on pkbcodes' command line.
The unknown_billingcode directive now works as expected.
The billing code's page counter and balance are updated when printing.
Severity : If you need full management of billing codes, this is for you.

Files:
1 modified

Legend:

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

    r2342 r2388  
    304304                    upq.PageCounter = int(upq.PageCounter or 0) + jobsize 
    305305                    upq.LifePageCounter = int(upq.LifePageCounter or 0) + jobsize 
    306                 # TODO : consume from the billing code as well 
    307306            except PyKotaStorageError, msg :     
    308307                self.parent.rollbackTransaction() 
     
    433432    def reset(self, balance=0.0, pagecounter=0) :     
    434433        """Resets the pagecounter and balance for this billing code.""" 
    435         self.parent.setBillingCodeValues(self, balance, pagecounter) 
     434        self.parent.setBillingCodeValues(self, pagecounter, balance) 
    436435        self.Balance = balance 
    437436        self.PageCounter = pagecounter