Changeset 3060
- Timestamp:
- 11/16/06 21:50:05 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storage.py
r3057 r3060 128 128 self.isDirty = False 129 129 130 def refund(self, amount ) :130 def refund(self, amount, reason) : 131 131 """Refunds a number of credits to an user.""" 132 132 self.consumeAccountBalance(-amount) 133 self.parent.writeNewPayment(self, -amount, reason) 133 134 134 135 … … 482 483 raise AttributeError, name 483 484 484 def refund(self ) :485 def refund(self, reason) : 485 486 """Refund a particular print job.""" 486 487 if (not self.JobSize) or (self.JobAction in ("DENY", "CANCEL", "REFUND")) : … … 493 494 494 495 if self.User.Exists : 495 self.User.refund(self.JobPrice )496 self.User.refund(self.JobPrice, reason) 496 497 if self.Printer.Exists : 497 498 upq = self.parent.getUserPQuota(self.User, self.Printer)