/[lohnrechner]/lohnrechner.py
ViewVC logotype

Diff of /lohnrechner.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/RCS/lohnrechner.py revision 34 by wilde, Wed Feb 9 14:17:21 2005 UTC lohnrechner.py revision 41 by wilde, Wed Nov 2 08:56:13 2005 UTC
# Line 62  class Lohnrechner(LST2005.LStRechner2005 Line 62  class Lohnrechner(LST2005.LStRechner2005
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)
# Line 298  Dieses Programm verwendet LST2005 %s" % Line 298  Dieses Programm verwendet LST2005 %s" %
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__":

Legend:
Removed from v.34  
changed lines
  Added in v.41

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26