BonPrinter v1.2.0
Thermal Printer tool
Loading...
Searching...
No Matches
calculator.py
Go to the documentation of this file.
1"""!
2********************************************************************************
3@file calculator.py
4@brief Calculator of items
5********************************************************************************
6"""
7
8import logging
9
10from Source.version import __title__
11
12log = logging.getLogger(__title__)
13
14
15class Calculator: # pylint: disable=too-few-public-methods
16 """!
17 @brief Class Calculator: Hold actual data to calculate
18 @todo Funktionalitäten mit aufnehmen und pylint disable entfernen
19 """
20
21 def __init__(self) -> None:
22 self.s_text_total = "" # TODO wird teilweise als string und int verwendet und für multi
23 self.i_multi = 0 # multiple items
24 self.f_back: float | None = None # back cash None for not entered
25 self.f_total = 0.0 # total price at last print/save
26 self.f_payed = 0.0 # payed value to calculate back
27 self.b_hold_last_print = False
Class Calculator: Hold actual data to calculate.
Definition calculator.py:15