Comments (2)
You should consider validating the results using the official BMF service: https://www.bmf-steuerrechner.de/interface/einganginterface.xhtml
from lstgen.
With the proper inputs, the example works now exactly as desired! :-)
def test_lohnexample1(self):
# source: https://www.lohnexperte.de/files/root-pdfs/pdf/Muster.pdf
brutto = 4926.59 * 100 # Brutto in ¢ent
l = Lohnsteuer2018()
l.setRe4(brutto) # cent
l.setStkl(1) # Steuerklasse
l.setLzz(2) # Lohnzahlungszeitraum, 2 = Monat
l.setZkf(1) # Kinder
l.setPkv(0) # GKV (default)
l.setKvz(1.5) # Krankenkassenzusatzbeitrag (1.50%)
l.setKrv(0) # RV-WEST (default)
l.setAlter1(0) # setze 1, wenn das 64. Lebensjahr zu Beginn des Kalenderjahres vollendet wurde
l.setAf(0) # # 1, wenn die Anwendung des Faktorverfahrens gewählt wurden (nur in Steuerklasse IV)
l.setF(1) # Faktor
l.setPvs(0) # Nur wenn in Sachsen
l.setR(0) # Religion ja/nein
l.setLzzhinzu(0) # Hinzurechnungsbetrag auf der Lohnsteuerkarte
l.setPvz(0) # 1, wenn Zuschlag zur sozialen Pflegeversicherung
l.MAIN()
print("results lohnexample1:")
print_lst(l)
steuer = math.floor(float(l.getLstlzz()) + float(l.getStv()) + float(l.getSts())) / 100.0
soli = math.floor(float(l.getSolzlzz()) + float(l.getSolzs()) + float(l.getSolzv())) / 100
stges = steuer + soli
assert steuer == 1000.75
assert soli == 42.20
from lstgen.
Related Issues (19)
- Ergebnisse der generierten py-Datei entsprechen nicht Validierungstests HOT 5
- Decimal._rescale missing in python3
- Clarification about generator external dependency HOT 2
- Startup errors with Python3
- Incomplete --pap-versions output
- CLI examples from readme seem to be missing arguments HOT 1
- possible to add Golang as output? HOT 8
- Javascript output use BigDecimal unknown HOT 2
- Very small precision problem HOT 5
- Naming of PAP versions HOT 1
- 2010 generator: AttributeError: 'NoneType' object has no attribute 'replace' HOT 4
- AttributeError: 'Name' object has no attribute 'value' HOT 3
- Abweichende Berechnung der Lohnsteuer im vergleich zur BMF Schnittstelle
- Rounding in go code HOT 2
- PAP for 2022 HOT 1
- SSL error HOT 1
- Error Message Fatal error: Uncaught Error: Call to undefined method BigDecimal::toFloat() in ... HOT 2
- Old XML-Files HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lstgen.