home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip: 25 Years Anniversary
/
CHIP_25Jahre_Jubilaeum.iso
/
downloads
/
400616
/
data1.cab
/
_lohnauskunft-Formulare
/
gesabzug.lsf
< prev
next >
Wrap
Text File
|
2003-04-01
|
5KB
|
183 lines
Include "DruckNT.int"
Include "Lak_NT.int"
'Descriptions
Description Form_Description as "Gesamtabzugstabelle normal"
Description Form_Code as "Gesamtabzugstabelle"
Description Page_Orientation as PAGE_LANDSCAPE
SetBodyMargin(200,140,200,180)
SetFooterMargin(210,180,210,100)
Dim hNormal as FontType = CreateFont("Arial", 10, FONT_NORMAL, COLOR_BLACK)
Dim hBold as FontType = CreateFont("Arial", 10, FONT_BOLD, COLOR_BLACK)
Dim hMini as FontType = CreateFont("Arial", 8, FONT_NORMAL, COLOR_BLACK)
Dim hTitel as FontType=CreateFont("Arial", 12, FONT_BOLD, COLOR_BLACK)
Dim i as Numeric
Dim NumTmp as Numeric
Dim Datensatz as Bool
Dim LSt as String
Dim SolZ as String
Dim KSt as String
Dim KV as String
Dim PV as String
Dim RV as String
Dim AV as String
Dim Netto as String
Dim Waehrung as String
Dim DiffWaehrg as Numeric
Dim NumJahr as Numeric
NumJahr = GetInt("O",21)
If ( NumJahr <= 2001 ) Then
Waehrung = "DM"
DiffWaehrg = 1000
Else
Waehrung = "EUR"
DiffWaehrg = 500
End If
Function Vordruck()
Dim Steuerklasse as String
Steuerklasse=StrInt("O",10)
If Steuerklasse="0" Then Steuerklasse="0" End If
If Steuerklasse="1" Then Steuerklasse="I" End If
If Steuerklasse="2" Then Steuerklasse="II" End If
If Steuerklasse="3" Then Steuerklasse="III" End If
If Steuerklasse="4" Then Steuerklasse="IV" End If
If Steuerklasse="5" Then Steuerklasse="V" End If
If Steuerklasse="6" Then Steuerklasse="VI" End If
If Steuerklasse="-2" Then Steuerklasse="Pauschal" End If
RemoveAllTabs()
SetTabs("L95 L1800 L2200")
SelectFont(hTitel)
SetPos(0,40)
T( "\tGesamtabzugstabelle " + FormatNumeric( "%0.0f", NumJahr ) )
SelectFont(hNormal)
TL("\tSteuerklasse: "+Steuerklasse+"\tAnzahl Kinder: "+StrKfb("O",11))
RemoveAllTabs()
SelectFont(hNormal)
SetPos(0,GetPosY()+30)
NumTmp=GetPosY()
DrawLineExt(0,NumTmp,2570,NumTmp)
DrawLineExt(0,0,2570,0)
DrawLineExt(0,1780,2570,1780)
DrawLineExt(0,0,0,1780)
DrawLineExt(540,NumTmp,540,1780)
DrawLineExt(720,NumTmp,720,1780)
DrawLineExt(980,NumTmp,980,1780)
DrawLineExt(1230,NumTmp,1230,1780)
DrawLineExt(1480,NumTmp,1480,1780)
' DrawLineExt(1680,NumTmp,1680,1780)
DrawLineExt(1880,NumTmp,1880,1780)
' DrawLineExt(2080,NumTmp,2080,1780)
DrawLineExt(2320,NumTmp,2320,1780)
DrawLineExt(2570,0,2570,1780)
SetTabs("C270 C600 C630 C850 C1105 C1355 C1580 C1780 C1980 C2200 C2445")
SetPos(0,GetPosY()+20)
TL("\t\t\tZusatz-"+"\t\tSolidaritΣts-"+"\tKirchen-"+"\tKranken-"+"\tPflege-"+"\tRenten-"+"\tArbeitslosen-")
Dim NumTmp2 as Numeric
NumTmp2=GetPosY()
DrawLineExt(1680,NumTmp,1680,NumTmp2)
DrawLineExt(2080,NumTmp,2080,NumTmp2)
SetPos(0,NumTmp2+5)
RemoveAllTabs()
SetTabs("C270 C600 C630 C850 C1105 C1355 C1680 C2100 C2400 C2430 C2455")
TL("\t"+StrStr("O",9)+" Bruttolohn"+"\t\tTabelle?"+"\tLohnsteuer"+"\tzuschlag"+"\tsteuer"+"\tversicherung"+"\tversicherung"
+"\t\t\tNettolohn")
NumTmp2=GetPosY()
DrawLineExt(1680,NumTmp2+8,1680,1780)
DrawLineExt(2080,NumTmp2+8,2080,1780)
SetPos(0,NumTmp2+20)
RemoveAllTabs()
SetTabs("C270 C600 C630 C850 C1105 C1355 C1580 C1780 C1980 C2200 C2445")
SelectFont(hMini)
TL("\tin "+Waehrung+"\t\t"+"\tin "+Waehrung+"\tin "+Waehrung+"\t"+StrAmt("O",16)+" %\t"+StrAmt("O",12)+" %\t"+StrAmt("O",18)+" %\t"
+StrAmt("O",13)+" %\t"+StrAmt("O",14)+" %\tin "+Waehrung )
NumTmp=GetPosY()+20
DrawLineExt(0,NumTmp,2570,NumTmp)
SetPos(0,NumTmp+40)
RemoveAllTabs()
SetTabs("R295 R490 C630 R945 R1195 R1435 R1640 R1845 R2045 R2255 R2535")
SelectFont(hNormal)
i=1
End Function
Function GetWerte()
LSt=StrAmt("O",2)
If LSt="0,00" then LSt="-" End If
SolZ=StrAmt("O",19)
If SolZ="0,00" then SolZ="-" End If
KSt=StrAmt("O",4)
If KSt="0,00" then KSt="-" End If
KV=StrAmt("O",5)
If KV="0,00" then KV="-" End If
PV=StrAmt("O",17)
If PV="0,00" then PV="-" End If
RV=StrAmt("O",6)
If RV="0,00" then RV="-" End If
AV=StrAmt("O",7)
If AV="0,00" then AV="-" End If
Netto=StrAmt("O",22)
If Netto="0,00" then Netto="-" End If
End Function
Function PrintFooter()
SelectFont(hMini)
RemoveAllTabs()
SetTabs("C1285 R")
SetPos(0,GetPosY()+15)
T("Lexware lohnauskunft "+GetProgramVersion()+"\t- " +PAGENUMBER+ " -\t"+FormatDate("%d.%m.%Y",Now()))
End Function
SetEventHandler(EVENT_START_PAGE,Vordruck)
SetEventHandler(EVENT_PRINT_FOOTER,PrintFooter)
Vordruck()
RemoveAllTabs()
SetTabs("R295 R490 C630 R945 R1195 R1435 R1640 R1845 R2045 R2255 R2535")
SelectFont(hNormal)
Datensatz=FirstRecord("O")
Dim Zeilenhoehe as Numeric
Zeilenhoehe=GetLineHeight()
While Datensatz Do
GetWerte()
TL("\t"+StrAmt("O",8)+" bis"+"\t"+StrAmt("O",1)+"\t"+StrBool("O",3)+"\t"+LSt+"\t"+SolZ+"\t"+KSt+"\t"+KV+"\t"+PV+"\t"+RV+"\t"+AV+"\t"+Netto)
If i=5 AND (Zeilenhoehe<=1780-GetPosY()) Then
LF
i=0
End If
i=i+1
Datensatz=NextRecord("O")
End While