27 lines
17 KiB
XML
27 lines
17 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<TfrxReport Version="3.23.9" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.Buttons="2047" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.ShowDialog="False" ReportOptions.CreateDate="38794.5756609375" ReportOptions.Description.Text="" ReportOptions.LastChange="38924.3561991782" ScriptLanguage="PascalScript" ScriptText.Text="var TotalTextZ1:string; totalTextZ2:String; TotalTextZ3:String; TotalTextZ4:String; TotalTextZ5:String; TotalTextZ6:String; TotalTextZ7:String; TotalText:String; TotalWertZ1:double; TotalWertZ2:double; TotalWertZ3:double; TotalWertZ4:double; TotalWertZ5:double; TotalWertZ6:double; TotalWertZ7:double; TotalWert :string; procedure reportOnStartReport(Sender: TfrxComponent); begin // Formatierung Leistungsblock {Leistungen} TotalTextZ1:=''; if totaltextz1='' then if <Rechnung."Total 1000">>0 then totaltextz1:='Total Leistungen'; if totaltextz1='' then if <Rechnung."Total 2000">>0 then totaltextz1:='Total Leistungen'; if totaltextz1='' then if <Rechnung."Total 3000">>0 then totaltextz1:='Total Leistungen'; if totaltextz1='' then if <Rechnung."Total 4000">>0 then totaltextz1:='Total Leistungen'; if totaltextz1='' then if <Rechnung."Total 9000">>0 then totaltextz1:='Total Leistungen'; totalwertZ1:=<Rechnung."Total 1000">+<Rechnung."Total 2000">+<Rechnung."Total 3000">+<Rechnung."Total 4000">+<Rechnung."Total 9000">; {Medikamente und Diverses} if totaltextz2='' then if <Rechnung."Total 5000">>0 then totaltextz2:='Total Medikamente und Diverses'; if totaltextz2='' then if <Rechnung."Total 6000">>0 then totaltextz2:='Total Medikamente und Diverses'; if totaltextz2='' then if <Rechnung."Total 7000">>0 then totaltextz2:='Total Medikamente und Diverses'; totalwertZ2:=<Rechnung."Total 5000"> +<Rechnung."Total 6000">+<Rechnung."Total 7000">; {Labor} if totaltextz3='' then if <Rechnung."Total 8000">>0 then totaltextz3:='Total Labor'; totalwertZ3:=<Rechnung."Total 8000"> ; {Rabatt} if totaltextz4='' then if <Rechnung."Rabattbetrag">>0 then begin totaltextz4:='./. Rabatt'; totaltextz4:=totaltextz4+' ('; totaltextz4:=totaltextz4+ floattostr(<Rechnung."Rabattwert">); totaltextz4:=totaltextz4+'% von '; totaltextz4:=totaltextz4+formatfloat('0.00',<Rechnung."Rabattbetrag">); totaltextz4:=totaltextz4+')'; totalwertz4:=betrag_gerundet(<Rechnung."Rabattbetrag">/100*<Rechnung."Rabattwert">); end; {Vorauszahlungen} if totaltextz5='' then if <Rechnung."Vorauszahlung">>0 then totaltextz5:='./. Vorauszahlungen'; totalwertZ5:=<Rechnung."Vorauszahlung">; {Ratenzuschlag} if totaltextz6='' then if <Rechnung."Ratenzuschlag">>0 then totaltextz6:='Ratenzuschlag'; totalwertZ6:=<Rechnung."Ratenzuschlag">; {Mahnzuschlag} if totaltextz7='' then if <Rechnung."Mahnzuschlag">>0 then totaltextz7:='Mahnzuschlag'; totalwertZ7:=<Rechnung."Mahnzuschlag">; if TotaltextZ1<>'' then begin if totaltext<>'' then begin totaltext:=totaltext+chr(13); totalwert:=totalwert+chr(13); end; totaltext:=totaltext+totaltextZ1; totalwert:=totalwert+formatfloat('0.00',totalwertz1); end; if TotaltextZ2<>'' then begin if totaltext<>'' then begin totaltext:=totaltext+chr(13); totalwert:=totalwert+chr(13); end; totaltext:=totaltext+totaltextZ2; totalwert:=totalwert+formatfloat('0.00',totalwertz2); end; if TotaltextZ3<>'' then begin if totaltext<>'' then begin totaltext:=totaltext+chr(13); totalwert:=totalwert+chr(13); end; totaltext:=totaltext+totaltextZ3; totalwert:=totalwert+formatfloat('0.00',totalwertz3); end; if TotaltextZ4<>'' then begin if totaltext<>'' then begin totaltext:=totaltext+chr(13); totalwert:=totalwert+chr(13); end; totaltext:=totaltext+totaltextZ4; totalwert:=totalwert+formatfloat('0.00',totalwertz4); end; if TotaltextZ5<>'' then begin if totaltext<>'' then begin totaltext:=totaltext+chr(13); totalwert:=totalwert+chr(13); end; totaltext:=totaltext+totaltextZ5; totalwert:=totalwert+formatfloat('0.00',totalwertz5); end; if TotaltextZ6<>'' then begin if totaltext<>'' then begin totaltext:=totaltext+chr(13); totalwert:=totalwert+chr(13); end; totaltext:=totaltext+totaltextZ6; totalwert:=totalwert+formatfloat('0.00',totalwertz6); end; if TotaltextZ7<>'' then begin if totaltext<>'' then begin totaltext:=totaltext+chr(13); totalwert:=totalwert+chr(13); end; totaltext:=totaltext+totaltextZ7; totalwert:=totalwert+formatfloat('0.00',totalwertz7); end; //Anzeige ColumnHeader if <Rechnung."MitDatum">=true then begin Memo54.visible:=true; memo55.visible:=true; memo56.visible:=true; memo51.visible:=true; memo61.visible:=true; memo62.visible:=true; memo63.visible:=true; memo70.visible:=false; memo71.visible:=false; memo72.visible:=false; memo73.visible:=false; memo74.visible:=false; memo75.visible:=false; memo76.visible:=false; memo77.visible:=false; end else begin Memo54.visible:=false; memo55.visible:=false; memo56.visible:=false; memo51.visible:=false; memo61.visible:=false; memo62.visible:=false; memo63.visible:=false; memo70.visible:=true; memo71.visible:=true; memo72.visible:=true; memo73.visible:=true; memo74.visible:=true; memo75.visible:=true; memo76.visible:=true; memo77.visible:=true; end; // Anzeige Detailbereiche detaildata1.visible:=false; detaildata2.visible:=false; detaildata3.visible:=false; if <Rechnung."MitDatum">=true then begin if <Rechnung."Leistungen_Zusammenfassen">=true then begin detaildata1.visible:=true; end else begin detaildata2.visible:=true; end; end else begin detaildata3.visible:=true; end; end; function betrag_gerundet(x:double):double; var z0,z1,z2,z3,z4:double; s1,s2,s3:string; begin x:=x+0.001; z0:=int(x*10); z1:=((x*10)-z0)*100; z3:=int(z1+5); z2:=0; if z3 < 30 then begin z3:=0; end else begin if z3 < 80 then begin z3:=50; end else begin z3:=0; z2:=10; end; end; z4:=(z0/10)+(z3/1000)+(z2/100); result:=z4; end; begin end." OnStartReport="reportOnStartReport" PropData="044C656674022803546F7003D00008446174617365747301010C2D00000020446174615365743D2254626C416273656E6465722220446174615365744E616D653D22416273656E6465722200010C2D00000020446174615365743D2254626C526563686E756E672220446174615365744E616D653D22526563686E756E672200010C3000000020446174615365743D2274624C65697374756E67656E2220446174615365744E616D653D224C65697374756E67656E2200010C3E00000020446174615365743D2274624C65697374756E67656E5F65696E7A656C2220446174615365744E616D653D224C65697374756E67656E5F45696E7A656C2200010C3F00000020446174615365743D2274624C65697374756E67656E5F766572646963687465742220446174615365744E616D653D224C65697374756E67656E5F4C5F52220000095661726961626C657301010C16000000204E616D653D22204E65772043617465676F7279312200010C26000000204E616D653D22546F74616C5F4C65697374756E67656E222056616C75653D2227486F69272200010C15000000204E616D653D224E6577205661726961626C6531220000055374796C650100">
|
|
<TfrxReportPage Name="Page1" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="0" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="" OnBeforePrint="Page1OnBeforePrint">
|
|
<TfrxPageFooter Name="PageFooter1" Height="427.08670937" Left="0" Top="18.89765" Width="718.1107" OnBeforePrint="PageFooter1OnBeforePrint">
|
|
<TfrxMemoView Name="Memo13" ShiftMode="smDontShift" Left="0" Top="302.3624" Width="222.99227" Height="83.14966" DataSet="TblRechnung" DataSetName="Rechnung" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[Rechnung."ES Referenz kurz"] [Rechnung."Empfaenger Z1"] [Rechnung."Empfaenger Z2"] [Rechnung."Empfaenger Z3"] [Rechnung."Empfaenger Z4"] [Rechnung."Empfaenger Z5"] [Rechnung."Empfaenger Z6"]"/>
|
|
<TfrxMemoView Name="Memo19" ShiftMode="smDontShift" Left="445.98454" Top="298.58287" Width="200.31509" Height="83.14966" DataSet="TblRechnung" DataSetName="Rechnung" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[Rechnung."Empfaenger Z1"] [Rechnung."Empfaenger Z2"] [Rechnung."Empfaenger Z3"] [Rechnung."Empfaenger Z4"] [Rechnung."Empfaenger Z5"] [Rechnung."Empfaenger Z6"]"/>
|
|
<TfrxMemoView Name="Memo25" ShiftMode="smDontShift" Left="86.92919" Top="230.55133" Width="128.50402" Height="18.89765" DataField="ES Konto" DataSet="TblRechnung" DataSetName="Rechnung" Text="[Rechnung."ES Konto"]"/>
|
|
<TfrxMemoView Name="Memo26" ShiftMode="smDontShift" Left="313.70099" Top="230.55133" Width="113.3859" Height="18.89765" DataField="ES Konto" DataSet="TblRechnung" DataSetName="Rechnung" Text="[Rechnung."ES Konto"]"/>
|
|
<TfrxMemoView Name="Memo27" ShiftMode="smDontShift" Left="430.86642" Top="196.53556" Width="283.46475" Height="18.89765" DataSet="TblRechnung" DataSetName="Rechnung" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="OCRB" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[IIF(<Page>>1,'XXXXXXXXXXXXXXXXX',<Rechnung."ES Referenz Kurz">)]"/>
|
|
<TfrxMemoView Name="Memo40" ShiftMode="smDontShift" Left="71.81107" Top="257.00793748" Width="41.57483" Height="18.89765" DataSet="TblRechnung" DataSetName="Rechnung" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[IIF(<Page>>1,'XXXXX',<Rechnung."ES Franken">)]"/>
|
|
<TfrxMemoView Name="Memo41" ShiftMode="smDontShift" Left="120.94496" Top="257.00793748" Width="41.57483" Height="18.89765" DataSet="TblRechnung" DataSetName="Rechnung" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2f" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[IIF(<Page>>1,'XXXXX',<Rechnung."ES Rappen">)]"/>
|
|
<TfrxMemoView Name="Memo42" ShiftMode="smDontShift" Left="302.3624" Top="257.00793748" Width="41.57483" Height="18.89765" DataSet="TblRechnung" DataSetName="Rechnung" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[IIF(<Page>>1,'XXXXX',<Rechnung."ES Franken">)]"/>
|
|
<TfrxMemoView Name="Memo43" ShiftMode="smDontShift" Left="351.49629" Top="257.00793748" Width="41.57483" Height="18.89765" DataSet="TblRechnung" DataSetName="Rechnung" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2f" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[IIF(<Page>>1,'XXXXX',<Rechnung."ES Rappen">)]"/>
|
|
<TfrxMemoView Name="Memo28" ShiftMode="smDontShift" Left="162.51979" Top="389.29140937" Width="574.48856" Height="18.89765" DataSet="TblRechnung" DataSetName="Rechnung" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="OCRB" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[IIF(<Page>>1,'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',<Rechnung."ES Referenz lang">)]"/>
|
|
<TfrxMemoView Name="Memo11" ShiftMode="smDontShift" Left="-11.33859" Top="98.26778" Width="173.85838" Height="37.7953" DataSet="TblRechnung" DataSetName="Rechnung" Font.Charset="1" Font.Color="-2147483640" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[Rechnung."BankZeile1"] [Rechnung."BankZeile2"] [Rechnung."BankZeile3"]"/>
|
|
<TfrxMemoView Name="Memo12" Left="-11.33859" Top="147.40167" Width="196.53556" Height="56.69295" DataSet="TblAbsender" DataSetName="Absender" Font.Charset="1" Font.Color="-2147483640" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[Rechnung."ZuGunstenVon1"] [Rechnung."ZuGunstenVon2"] [Rechnung."ZuGunstenVon3"] [Rechnung."ZuGunstenVon4"]"/>
|
|
<TfrxMemoView Name="Memo33" Left="204.09462" Top="147.40167" Width="181.41744" Height="56.69295" DataSet="TblAbsender" DataSetName="Absender" Font.Charset="1" Font.Color="-2147483640" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[Rechnung."ZuGunstenVon1"] [Rechnung."ZuGunstenVon2"] [Rechnung."ZuGunstenVon3"] [Rechnung."ZuGunstenVon4"]"/>
|
|
<TfrxMemoView Name="Memo2" ShiftMode="smDontShift" Left="204.09462" Top="98.26778" Width="173.85838" Height="37.7953" DataSet="TblRechnung" DataSetName="Rechnung" Font.Charset="1" Font.Color="-2147483640" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[Rechnung."BankZeile1"] [Rechnung."BankZeile2"] [Rechnung."BankZeile3"]"/>
|
|
<TfrxMemoView Name="Memo3" Left="0" Top="15.11812" Width="177.63791" Height="30.23624" Font.Charset="1" Font.Color="8421504" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="Dipl. Dentalhygienikerin HF Miglied Swiss Dental Hygienists"/>
|
|
<TfrxMemoView Name="Memo4" Left="0" Top="15.11812" Width="721.89023" Height="30.23624" Font.Charset="1" Font.Color="8421504" Font.Height="-11" Font.Name="Arial" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="Hafenstrasse 6 CH-8820 Wädenswil"/>
|
|
<TfrxMemoView Name="Memo5" Left="540.47279" Top="15.11812" Width="177.63791" Height="30.23624" Font.Charset="1" Font.Color="8421504" Font.Height="-11" Font.Name="Arial" Font.Style="0" HAlign="haRight" ParentFont="False" Text="Telefon 043 / 477 82 90 E-Mail info@dhpraxis-roellin.ch"/>
|
|
<TfrxLineView Name="Line1" Left="0" Top="15.11812" Width="718.1107" Height="0" Frame.Color="8421504" Frame.Typ="4"/>
|
|
<TfrxMemoView Name="Memo1" Left="0" Top="0" Width="177.63791" Height="18.89765" Font.Charset="1" Font.Color="9175277" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="Jolanda Röllin"/>
|
|
</TfrxPageFooter>
|
|
</TfrxReportPage>
|
|
</TfrxReport>
|