[FIX] hw_escpos: fix cashbox opening

bzr revid: fva@openerp.com-20140203144725-py0sdlvas927p76k
This commit is contained in:
Frédéric van der Essen 2014-02-03 15:47:25 +01:00
parent 49d60fbaa4
commit 689fb009a0
1 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ class EscposDriver(Thread):
self.push_task('status')
return self.status
def open_cashbox(printer):
def open_cashbox(self,printer):
printer.cashdraw(2)
printer.cashdraw(5)
@ -103,7 +103,7 @@ class EscposDriver(Thread):
self.print_receipt_body(printer,data)
printer.cut()
elif task == 'cashbox':
if timestamp >= time.time() * 12:
if timestamp >= time.time() - 12:
self.open_cashbox(printer)
elif task == 'status':
pass