62 |
frame.grid(padx=10, pady=10) |
frame.grid(padx=10, pady=10) |
63 |
|
|
64 |
# Steuern Ein/Ausgabe |
# Steuern Ein/Ausgabe |
65 |
Label(frame, text="Lohn:").grid(row=0, sticky=E) |
Label(frame, text="Lohn (monatlich):").grid(row=0, sticky=E) |
66 |
self.lohn = Entry(frame) |
self.lohn = Entry(frame) |
67 |
self.lohn.bind("<Return>", self.NewInput) |
self.lohn.bind("<Return>", self.NewInput) |
68 |
self.lohn.grid(row=0, column=1, sticky=W) |
self.lohn.grid(row=0, column=1, sticky=W) |
298 |
return round(self.sozv.get() * PV, 2) |
return round(self.sozv.get() * PV, 2) |
299 |
|
|
300 |
def GetKV(self): |
def GetKV(self): |
301 |
|
# KVsoli should be setable by the UI |
302 |
|
self.KVsoli = 1 |
303 |
lohn = self.GetLohn() |
lohn = self.GetLohn() |
304 |
if lohn > self.BMG1 : lohn = self.BMG1 |
if lohn > self.BMG1 : lohn = self.BMG1 |
305 |
return round(self.sozv.get() * self.KVsatz * lohn / 2, 2) |
if self.KVsoli : |
306 |
|
return round(self.sozv.get() * ((self.KVsatz / 2) + 0.009) * lohn, 2) |
307 |
|
else : |
308 |
|
return round(self.sozv.get() * self.KVsatz * lohn / 2, 2) |
309 |
|
|
310 |
|
|
311 |
if __name__ == "__main__": |
if __name__ == "__main__": |