[Lohnrechner-commits] r41 - /

scm-commit at wald.intevation.de scm-commit at wald.intevation.de
Wed Nov 2 09:56:13 CET 2005


Author: wilde
Date: 2005-11-02 09:56:13 +0100 (Wed, 02 Nov 2005)
New Revision: 41

Modified:
   lohnrechner.py
Log:
Introduced new variable KVsoli, should be setable by the UI.


Modified: lohnrechner.py
===================================================================
--- lohnrechner.py	2005-09-26 14:36:01 UTC (rev 40)
+++ lohnrechner.py	2005-11-02 08:56:13 UTC (rev 41)
@@ -298,9 +298,11 @@
         return round(self.sozv.get() * PV, 2)
 
     def GetKV(self):
+        # KVsoli should be setable by the UI
+        self.KVsoli = 1
         lohn = self.GetLohn()
         if lohn > self.BMG1 : lohn = self.BMG1
-        if 1 :
+        if self.KVsoli :
             return round(self.sozv.get() * ((self.KVsatz / 2) + 0.009) * lohn, 2)
         else :
             return round(self.sozv.get() * self.KVsatz * lohn / 2, 2)



More information about the Lohnrechner-commits mailing list