Example #1
0
 def create_ecf_printer(self):
     printer = ECFPrinter(
         store=self.store,
         station=get_current_station(self.store),
         brand=u'virtual',
         model=u'Simple',
         device_name=u'',
         device_serial=u'',
         baudrate=9600,
         is_active=True,
     )
     printer.create_fiscal_printer_constants()
     return printer
Example #2
0
 def create_ecf_printer(self):
     printer = ECFPrinter(
         store=self.store,
         station=get_current_station(self.store),
         brand=u'virtual',
         model=u'Simple',
         device_name=u'',
         device_serial=u'',
         baudrate=9600,
         is_active=True,
     )
     # This might load state from disk that says that
     # the printer is closed, we don't care about that,
     # so override whatever state was loaded from disk so that
     # the tests can pass.
     printer.till_closed = False
     printer.create_fiscal_printer_constants()
     return printer
Example #3
0
 def create_ecf_printer(self):
     printer = ECFPrinter(
         store=self.store,
         station=get_current_station(self.store),
         brand=u'virtual',
         model=u'Simple',
         device_name=u'',
         device_serial=u'',
         baudrate=9600,
         is_active=True,
     )
     # This might load state from disk that says that
     # the printer is closed, we don't care about that,
     # so override whatever state was loaded from disk so that
     # the tests can pass.
     printer.till_closed = False
     printer.create_fiscal_printer_constants()
     return printer