Example #1
0
    def __init__(self, port, consts):
        SerialBase.__init__(self, port)
        BaseChequePrinter.__init__(self)
        self._consts = consts or EP375Constants
        self.coupon_discount = Decimal("0.0")
        self.coupon_surcharge = Decimal("0.0")
        self._command_id = self._item_counter = -1
        self.items_dict = {}
        self._is_coupon_open = False

        # The printer needs a little delay to shutdown/startup. Add this
        # number as a guard to make sure that the printer doesn't freeze
        # if we start up too fast.
        time.sleep(0.2)
Example #2
0
    def __init__(self, port, consts):
        SerialBase.__init__(self, port)
        BaseChequePrinter.__init__(self)
        self._consts = consts or EP375Constants
        self.coupon_discount = Decimal("0.0")
        self.coupon_surcharge = Decimal("0.0")
        self._command_id = self._item_counter = -1
        self.items_dict = {}
        self._is_coupon_open = False

        # The printer needs a little delay to shutdown/startup. Add this
        # number as a guard to make sure that the printer doesn't freeze
        # if we start up too fast.
        time.sleep(0.2)
Example #3
0
 def __init__(self, port, consts=None):
     SerialBase.__init__(self, port)
     BaseChequePrinter.__init__(self)
Example #4
0
 def __init__(self, port, consts=None):
     FiscNetECF.__init__(self, port, consts)
     BaseChequePrinter.__init__(self)
Example #5
0
 def __init__(self, port, consts=None):
     SerialBase.__init__(self, port)
     BaseChequePrinter.__init__(self)
Example #6
0
 def __init__(self, port, consts=None):
     FiscNetECF.__init__(self, port, consts)
     BaseChequePrinter.__init__(self)