/[lohnrechner]/trunk/lohnrechner2007.py
ViewVC logotype

Diff of /trunk/lohnrechner2007.py

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

revision 33 by wilde, Fri Feb 4 13:25:36 2005 UTC revision 34 by wilde, Wed Feb 9 14:17:21 2005 UTC
# Line 27  class Lohnrechner(LST2005.LStRechner2005 Line 27  class Lohnrechner(LST2005.LStRechner2005
27      def __init__(self, root):      def __init__(self, root):
28          LST2005.LStRechner2005.__init__(self)          LST2005.LStRechner2005.__init__(self)
29    
30          # Land, Kirchensteuersatz          # Land, Kirchensteuersatz, Pflegeversicherung AG-Anteil
31          self.laender = [("Baden-W�rttemberg", 8),          self.laender = [("Baden-W�rttemberg", 8, 0.0085),
32                          ("Bayern", 8),                          ("Bayern", 8, 0.0085),
33                          ("Berlin", 9),                          ("Berlin", 9, 0.0085),
34                          ("Brandenburg", 9),                          ("Brandenburg", 9, 0.0085),
35                          ("Bremen", 9),                          ("Bremen", 9, 0.0085),
36                          ("Bremerhaven", 9),                          ("Bremerhaven", 9, 0.0085),
37                          ("Hamburg", 9),                          ("Hamburg", 9, 0.0085),
38                          ("Hessen", 9),                          ("Hessen", 9, 0.0085),
39                          ("Mecklenburg-Vorpommern", 9),                          ("Mecklenburg-Vorpommern", 9, 0.0085),
40                          ("Niedersachsen" ,9),                          ("Niedersachsen" ,9, 0.0085),
41                          ("Nordrhein-Westfalen", 9),                          ("Nordrhein-Westfalen", 9, 0.0085),
42                          ("Rheinland-Pfalz", 9),                          ("Rheinland-Pfalz", 9, 0.0085),
43                          ("Saarland", 9),                          ("Saarland", 9, 0.0085),
44                          ("Sachsen", 9),                          ("Sachsen", 9, 0.0135),
45                          ("Sachsen-Anhalt", 9),                          ("Sachsen-Anhalt", 9, 0.0085),
46                          ("Schleswig-Holstein", 9),                          ("Schleswig-Holstein", 9, 0.0085),
47                          ("Th�ringen", 9)]                          ("Th�ringen", 9, 0.0085)]
   
         self.InitSozv()  
48                    
49          self.root = root          self.root = root
50    
51          self.root.title("Lohnrechner 2005 - v%s" % _release_version)          self.root.title("Lohnrechner 2005 - v%s" % _release_version)
52    
53          self.SetupUI()          self.SetupUI()
54            self.UpdateLand()
55            self.InitSozv()
56          self.ResetInput()          self.ResetInput()
57    
58      def SetupUI(self):      def SetupUI(self):
# Line 266  Dieses Programm verwendet LST2005 %s" % Line 266  Dieses Programm verwendet LST2005 %s" %
266      #      #
267    
268      def InitSozv(self):      def InitSozv(self):
269          self.AVsatz = 0.065          self.AVsatz = 0.065 / 2
270          self.RVsatz = 0.195          self.RVsatz = 0.195 / 2
271          self.PVsatz = 0.017          # PVsatz ist in self.laender definiert!
272          self.PVkinderlose = 0.0025          self.PVkinderlose = 0.0025
273          self.BMG1 = 3525          self.BMG1 = 3525
274          self.BMG2 = 5200          self.BMG2 = 5200
# Line 281  Dieses Programm verwendet LST2005 %s" % Line 281  Dieses Programm verwendet LST2005 %s" %
281      def GetAV(self):      def GetAV(self):
282          lohn = self.GetLohn()          lohn = self.GetLohn()
283          if lohn > self.BMG2 : lohn = self.BMG2          if lohn > self.BMG2 : lohn = self.BMG2
284          return round(self.sozv.get() * self.AVsatz * lohn / 2, 2)          return round(self.sozv.get() * self.AVsatz * lohn, 2)
285    
286      def GetRV(self):      def GetRV(self):
287          lohn = self.GetLohn()          lohn = self.GetLohn()
288          if lohn > self.BMG2 : lohn = self.BMG2          if lohn > self.BMG2 : lohn = self.BMG2
289          return round(self.sozv.get() * self.RVsatz * lohn / 2, 2)          return round(self.sozv.get() * self.RVsatz * lohn, 2)
290    
291      def GetPV(self):      def GetPV(self):
292            self.PVsatz = self.laender[self.land][2]
293          lohn = self.GetLohn()          lohn = self.GetLohn()
294          if lohn > self.BMG1 : lohn = self.BMG1          if lohn > self.BMG1 : lohn = self.BMG1
295          PV =  self.PVsatz * lohn / 2          PV =  self.PVsatz * lohn
296          if float(self.kfb.get()) == 0.0 :          if float(self.kfb.get()) == 0.0 :
297              PV += lohn * self.PVkinderlose              PV += lohn * self.PVkinderlose
298          return round(self.sozv.get() * PV, 2)          return round(self.sozv.get() * PV, 2)

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26