56 |
self.instance = instance |
self.instance = instance |
57 |
self.__dict__.update(params) |
self.__dict__.update(params) |
58 |
self.output = None |
self.output = None |
59 |
|
self.totals = {} |
60 |
self.width = hasattr(self,'width') and self.width or 40 |
self.width = hasattr(self,'width') and self.width or 40 |
61 |
|
|
62 |
self.totalFields = ( ('subtotal',_('Subtotal')), |
self.totalFields = ( ('subtotal',_('Subtotal')), |
134 |
def _CancelTicketItem(self, event): |
def _CancelTicketItem(self, event): |
135 |
pass |
pass |
136 |
|
|
137 |
|
|
138 |
def _UpdateTotal(self, event): |
def _UpdateTotal(self, event): |
139 |
self.totals[event.field] = event.amount |
self.totals[event.field] = event.amount |
140 |
|
|
141 |
|
|
142 |
def write(self, text, double=0, color=0, alignment=0): |
def write(self, text, double=0, color=0, alignment=0): |
|
pass |
|
143 |
|
pass |