BonPrinter v1.2.0
Thermal Printer tool
Loading...
Searching...
No Matches
Calculator Class Reference

Class Calculator: Hold actual data to calculate. More...

Public Member Functions

None __init__ (self)

Public Attributes

bool b_hold_last_print = False
float|None f_back = None
float f_payed = 0.0
float f_total = 0.0
int i_multi = 0
str s_text_total = ""

Detailed Description

Class Calculator: Hold actual data to calculate.

Todo
Funktionalitäten mit aufnehmen und pylint disable entfernen

Definition at line 15 of file calculator.py.

Constructor & Destructor Documentation

◆ __init__()

None __init__ ( self)

Definition at line 21 of file calculator.py.

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

Member Data Documentation

◆ b_hold_last_print

bool b_hold_last_print = False

Definition at line 27 of file calculator.py.

◆ f_back

float | None f_back = None

Definition at line 24 of file calculator.py.

◆ f_payed

float f_payed = 0.0

Definition at line 26 of file calculator.py.

◆ f_total

float f_total = 0.0

Definition at line 25 of file calculator.py.

◆ i_multi

int i_multi = 0

Definition at line 23 of file calculator.py.

◆ s_text_total

str s_text_total = ""

Definition at line 22 of file calculator.py.


The documentation for this class was generated from the following file: