[POS-commit] r6382 - in stoqlib/trunk/stoqlib/drivers: . test
george at async.com.br
george at async.com.br
Tue Apr 17 15:00:23 BRT 2007
Author: george
Date: Tue Apr 17 15:00:23 2007
New Revision: 6382
Modified:
stoqlib/trunk/stoqlib/drivers/fiscalprinter.py
stoqlib/trunk/stoqlib/drivers/test/test_fiscalprinter.py
Log:
#3254: Criar no menu opção para emissão de leitura X. r=jdahlin
Modified: stoqlib/trunk/stoqlib/drivers/fiscalprinter.py
==============================================================================
--- stoqlib/trunk/stoqlib/drivers/fiscalprinter.py (original)
+++ stoqlib/trunk/stoqlib/drivers/fiscalprinter.py Tue Apr 17 15:00:23 2007
@@ -208,6 +208,13 @@
"""
return FiscalCoupon(self._driver, self._settings, sale)
+ def summarize(self):
+ """sends a summarize (leituraX) command to the printer"""
+ try:
+ self._driver.summarize()
+ except DriverError, details:
+ warning(_("Could not print summary"),
+ str(details))
#
Modified: stoqlib/trunk/stoqlib/drivers/test/test_fiscalprinter.py
==============================================================================
--- stoqlib/trunk/stoqlib/drivers/test/test_fiscalprinter.py (original)
+++ stoqlib/trunk/stoqlib/drivers/test/test_fiscalprinter.py Tue Apr 17 15:00:23 2007
@@ -67,6 +67,9 @@
def testCancel(self):
self.printer.cancel()
+ def testSummarize(self):
+ self.printer.summarize()
+
class TestFiscalCoupon(DomainTest):
def setUp(self):
DomainTest.setUp(self)
More information about the POS-commit
mailing list