insert into formulare (typ,system,erstellt,geaendert,user_1,user_2,name,formular) values (14,1,
'2004-05-01 00:00:00','2004-05-01','system','system',
'Inventur (nach Steuerlager-mit Steuerdaten)','
 

 
<!-- Inventur (nach Steuerlager-mit Steuerdaten) -->
 
<!--

Der Report unterstÃ¼tzt folgende Datenfelder
               "user","datum",
               "inventur_titel",
               "summe_la","summe_liter20","z_tanknummer"
               "z_datum","z_typ","z_raum","z_inhalt",
               "z_staerke","z_liter20","z_la",
               "z_liter","z_tt","z_tafel3",
               "z_brutto","z_tara","z_netto",
               "z_extrakt","z_tafel2","z_litergewicht"
               "z_lager","z_steuer_artikel","z_sorte",z_steuerlager"
 -->
  
<report name="Inventur" orientation="$options.report.inventur.orientation$"
  pageformat="$options.report.general.pageformat$" topmargin="$options.report.landscape.margin.top$" leftmargin="$options.report.landscape.margin.left$" 
  bottommargin="$options.report.landscape.margin.bottom$" rightmargin="$options.report.landscape.margin.right$">

 <reportheader height="32" >
    <rectangle  x="0" y="0" width="100%" height="100%" color="$options.report.general.reportheader.background$" weight="0" draw="false" fill="true"/>
    <rectangle  x="0" y="0" width="100%" height="100%" color="#000000" weight="1" draw="true" fill="false"/>
    <date-field fontstyle="plain" fontsize="7" fieldname="datum" x="5" y="11" width="20%" height="10" alignment="left" format="d.MMM yyyy H.mm"></date-field>
    <label fontstyle="plain" fontsize="7" x="75%" y="11" width="14%" height="10" alignment="right" >$locale.report.user$</label>   
    <string-field fontstyle="plain" fontsize="7" x="90%" y="11" height="10" width="10%" alignment="left" fieldname="user"></string-field>
    <label fontstyle="bold" fontsize="12" x="0%" y="11" width="100%" height="14" alignment="center" >$locale.report.inventur.titel$</label>    
    <string-field fontstyle="plain" fontsize="10" x="0%" y="28" height="10" width="100%" alignment="center" fieldname="inventur_titel"></string-field>
  
   
</reportheader>

  <pageheader height="32" onfirstpage="false">
    <rectangle  x="0" y="0" width="100%" height="100%" color="$options.report.general.reportheader.background$" weight="0" draw="false" fill="true"/>
    <rectangle  x="0" y="0" width="100%" height="100%" color="#000000" weight="1" draw="true" fill="false"/>
    <date-field fontstyle="plain" fontsize="7" fieldname="datum" x="5" y="11" width="20%" height="10" alignment="left" format="d.MMM yyyy H.mm"></date-field>
    <label fontstyle="plain" fontsize="7" x="75%" y="11" width="14%" height="10" alignment="right" >$locale.report.user$</label>   
    <string-field fontstyle="plain" fontsize="7" x="90%" y="11" height="10" width="10%" alignment="left" fieldname="user"></string-field>
    <label fontstyle="bold" fontsize="12" x="0%" y="11" width="100%" height="14" alignment="center" >$locale.report.inventur.titel$</label>    
    <string-field fontstyle="plain" fontsize="10" x="0%" y="28" height="10" width="100%" alignment="center" fieldname="inventur_titel"></string-field>  
   </pageheader>
  
  <pagefooter height="20">
    <rectangle  x="0" y="1" width="100%" height="100%" color="$options.report.general.pagefooter.background$" weight="0" draw="false" fill="true"/>
    <rectangle  x="0" y="1" width="100%" height="100%" color="#000000" weight="1" draw="true" fill="false"/>
    <number-field fieldname="PageNumber" x="40%" y="10"  width="90" height="20" alignment="left" format="$locale.seite$ #0"></number-field>    
    <number-field fieldname="PageTotal" x="50%" y="10"  width="90" height="20" alignment="left" format="$locale.von$ #0"></number-field>

  </pagefooter>

 
  <groups>
   <group>
	<groupheader height="20" >
	    <rectangle  x="0" y="0" width="100%" height="100%" color="$options.report.general.reportheader.background$" weight="0" draw="false" fill="true"/>
    	<rectangle  x="0" y="0" width="100%" height="100%" color="#000000" weight="1" draw="true" fill="false"/>
 		<string-field fontstyle="plain" fontsize="12" x="0" y="13" height="14" width="100%" alignment="center" fieldname="z_steuerlager" /> 
 		
	</groupheader>

	<groupfooter height="24" >
	    <rectangle  x="0" y="0" width="100%" height="100%" color="$options.report.general.reportheader.background$" weight="0" draw="false" fill="true"/>
     	<rectangle  x="0" y="0" width="100%" height="100%" color="#000000" weight="1" draw="true" fill="false"/>
 
   	     <label fontstyle="plain" fontsize="8" x="0%" y="10" width="49%" height="8" alignment="right" >$locale.report.inventur.summe_inhalt$</label>    
 	     <string-field fontstyle="plain" fontsize="8" x="51%" y="10" height="8" width="48%" alignment="left" fieldname="z_steuerlager"></string-field>
 
   	     <label fontstyle="bold" fontsize="10" x="26%" y="20" width="24%" height="10" alignment="left" >$locale.report.inventur.liter20$</label>    
   	     <number-field format="$options.report.zahlen_inventur$" fontsize="10" fontstyle="bold" x="0%" y="20" width="24%" height="10" alignment="right" fieldname="GroupSumLiter20"/>
  
   	     <label fontstyle="bold" fontsize="10" x="76%" y="20" width="24%" height="10" alignment="left" >$locale.string_la$</label>    
   	     <number-field format="$options.report.zahlen_inventur$" fontsize="10" fontstyle="bold" x="51%" y="20" width="24%" height="10" alignment="right" fieldname="GroupSumLa"/>
 
  
	</groupfooter>
	<fields>
		<field>z_steuerlager</field>
	</fields>
	</group>
	
  </groups>
  
  
  <items height="34">
  
    	<band layout-cachable="false"  name="typ_leer" x="0" y="0" width="100%" height="34">
 	     <label fontstyle="bold" fontsize="8" x="0" y="10" width="10%" height="10" alignment="right" >$locale.report.inventur.tanknummer$</label>    
 	     <label fontstyle="bold" fontsize="8" x="0" y="20" width="10%" height="10" alignment="right" >$locale.report.inventur.raum$</label>    
         <string-field fontstyle="bold" fontsize="9" x="11%" y="10" height="10" width="39%" alignment="right" fieldname="z_inhalt"></string-field>
         <string-field fontstyle="plain" fontsize="8" x="11%" y="10" height="10" width="19%" alignment="left" fieldname="z_tanknummer"></string-field>
         <string-field fontstyle="plain" fontsize="8" x="11%" y="20" height="10" width="19%" alignment="left" fieldname="z_raum"></string-field>
 	     <date-field fontstyle="plain" fontsize="8" fieldname="z_datum" x="0" y="30" width="10%" height="10" alignment="left" format="d.MMM yyyy"></date-field>
  
 		 
  
	    <rectangle  x="0" y="33" width="100%" height="1" color="#000000" weight="0" draw="true" fill="false"/>
      </band>
  
 	  <band layout-cachable="false"  name="typ_liter" x="0" y="0" width="100%" height="52">
 	     <label fontstyle="bold" fontsize="8" x="0" y="10" width="10%" height="10" alignment="right" >$locale.report.inventur.tanknummer$</label>    
 	     <label fontstyle="bold" fontsize="8" x="0" y="20" width="10%" height="10" alignment="right" >$locale.report.inventur.raum$</label>    
         <string-field fontstyle="bold" fontsize="9" x="11%" y="10" height="10" width="39%" alignment="right" fieldname="z_inhalt"></string-field>
 	     <number-field format="$options.report.zahlen_inventur$" fontsize="9" fontstyle="bold" x="51%" y="10" width="9%" height="10" alignment="right" fieldname="z_staerke"/>
 	     <label fontstyle="bold" fontsize="9" x="61%" y="10" width="9%" height="10" alignment="left" >$locale.string_prozentvol$</label>    
         <string-field fontstyle="plain" fontsize="8" x="11%" y="10" height="10" width="19%" alignment="left" fieldname="z_tanknummer"></string-field>
         <string-field fontstyle="plain" fontsize="8" x="11%" y="20" height="10" width="19%" alignment="left" fieldname="z_raum"></string-field>
 	     <date-field fontstyle="plain" fontsize="8" fieldname="z_datum" x="0" y="30" width="10%" height="10" alignment="left" format="d.MMM yyyy"></date-field>
   	     <number-field format="$options.report.zahlen_inventur$" fontsize="12" fontstyle="bold" x="80%" y="20" width="12%" height="12" alignment="right" fieldname="z_la"/>
  	     <label fontstyle="bold" fontsize="12" x="93%" y="20" width="6%" height="12" alignment="left" >$locale.string_la$</label>    
 		 
   	     <label fontstyle="plain" fontsize="8" x="41%" y="20" width="9%" height="10" alignment="left" >$locale.report.inventur.liter$</label>    
   	     <number-field format="$options.report.zahlen_inventur$" fontsize="8" fontstyle="bold" x="30%" y="20" width="9%" height="8" alignment="right" fieldname="z_liter"/>
  	     <label fontstyle="plain" fontsize="8" x="61%" y="20" width="9%" height="10" alignment="left" >$locale.report.inventur.tt$</label>    
   	     <number-field format="$options.report.zahlen_inventur$" fontsize="8" fontstyle="bold" x="50%" y="20" width="9%" height="8" alignment="right" fieldname="z_tt"/>
 
   	     <label fontstyle="plain" fontsize="8" x="41%" y="30" width="9%" height="10" alignment="left" >$locale.report.inventur.liter20$</label>    
   	     <number-field format="$options.report.zahlen_inventur$" fontsize="8" fontstyle="bold" x="30%" y="30" width="9%" height="8" alignment="right" fieldname="z_liter20"/>
  	     <label fontstyle="plain" fontsize="8" x="50%" y="30" width="9%" height="10" alignment="right" >$locale.report.inventur.tafel3$</label>    
   	     <number-field format="$options.report.zahlen_inventur$" fontsize="8" fontstyle="bold" x="61%" y="30" width="9%" height="8" alignment="left" fieldname="z_tafel3"/>
 		
  	     <label fontstyle="plain" fontsize="8" x="0%" y="40" width="5%" height="10" alignment="right" >$locale.report.inventur.lager$</label>    
   	     <string-field fontsize="8" fontstyle="plain" x="6%" y="40" width="15%" height="8" alignment="left" fieldname="z_lager"/> 		
  	     <label fontstyle="plain" fontsize="8" x="22%" y="40" width="5%" height="10" alignment="right" >$locale.report.inventur.steuer_artikel$</label>    
   	     <string-field fontsize="8" fontstyle="plain" x="28%" y="40" width="15%" height="8" alignment="left" fieldname="z_steuer_artikel"/>
   	     <label fontstyle="plain" fontsize="8" x="44%" y="40" width="5%" height="10" alignment="right" >$locale.report.inventur.sorte$</label>    
   	     <string-field fontsize="8" fontstyle="plain" x="50%" y="40" width="15%" height="8" alignment="left" fieldname="z_sorte"/> 	 	
   	     <label fontstyle="plain" fontsize="8" x="66%" y="40" width="10%" height="10" alignment="right" >$locale.report.inventur.steuerlager$</label>    
   	     <string-field fontsize="8" fontstyle="plain" x="77%" y="40" width="15%" height="8" alignment="left" fieldname="z_steuerlager"/> 	
  
	    <rectangle  x="0" y="50" width="100%" height="1" color="#000000" weight="0" draw="true" fill="false"/>
      </band>

 	  <band layout-cachable="false"  name="typ_gewicht" x="0" y="0" width="100%" height="52">
 	     <label fontstyle="bold" fontsize="8" x="0" y="10" width="10%" height="10" alignment="right" >$locale.report.inventur.tanknummer$</label>    
 	     <label fontstyle="bold" fontsize="8" x="0" y="20" width="10%" height="10" alignment="right" >$locale.report.inventur.raum$</label>    
         <string-field fontstyle="bold" fontsize="9" x="11%" y="10" height="10" width="39%" alignment="right" fieldname="z_inhalt"></string-field>
 	     <number-field format="$options.report.zahlen_inventur$" fontsize="9" fontstyle="bold" x="51%" y="10" width="9%" height="10" alignment="right" fieldname="z_staerke"/>
 	     <label fontstyle="bold" fontsize="9" x="61%" y="10" width="9%" height="10" alignment="left" >$locale.string_prozentvol$</label>    
         <string-field fontstyle="plain" fontsize="8" x="11%" y="10" height="10" width="19%" alignment="left" fieldname="z_tanknummer"></string-field>
         <string-field fontstyle="plain" fontsize="8" x="11%" y="20" height="10" width="19%" alignment="left" fieldname="z_raum"></string-field>
 	     <date-field fontstyle="plain" fontsize="8" fieldname="z_datum" x="0" y="30" width="10%" height="10" alignment="left" format="d.MMM yyyy"></date-field>
   	     <number-field format="$options.report.zahlen_inventur$" fontsize="12" fontstyle="bold" x="80%" y="20" width="12%" height="12" alignment="right" fieldname="z_la"/>
  	     <label fontstyle="bold" fontsize="12" x="93%" y="20" width="6%" height="12" alignment="left" >$locale.string_la$</label>    
 
  	     <label fontstyle="plain" fontsize="8" x="31%" y="20" width="8%" height="10" alignment="right" >$locale.report.inventur.brutto$</label>    
   	     <number-field format="$options.report.zahlen_inventur$" fontsize="8" fontstyle="bold" x="40%" y="20" width="8%" height="8" alignment="left" fieldname="z_brutto"/>
  	     <label fontstyle="plain" fontsize="8" x="41%" y="20" width="8%" height="10" alignment="right" >$locale.report.inventur.tara$</label>    
   	     <number-field format="$options.report.zahlen_inventur$" fontsize="8" fontstyle="bold" x="50%" y="20" width="8%" height="8" alignment="left" fieldname="z_tara"/>
  	     <label fontstyle="plain" fontsize="8" x="51%" y="20" width="8%" height="10" alignment="right" >$locale.report.inventur.netto$</label>    
   	     <number-field format="$options.report.zahlen_inventur$" fontsize="8" fontstyle="bold" x="60%" y="20" width="8%" height="8" alignment="left" fieldname="z_netto"/>
      
 
   	     <label fontstyle="plain" fontsize="8" x="41%" y="30" width="9%" height="10" alignment="left" >$locale.report.inventur.liter20$</label>    
   	     <number-field format="$options.report.zahlen_inventur$" fontsize="8" fontstyle="bold" x="30%" y="30" width="9%" height="8" alignment="right" fieldname="z_liter20"/>
  	     <label fontstyle="plain" fontsize="8" x="50%" y="30" width="9%" height="10" alignment="right" >$locale.report.inventur.tafel2$</label>    
   	     <number-field format="$options.report.zahlen_inventur$" fontsize="8" fontstyle="bold" x="61%" y="30" width="9%" height="8" alignment="left" fieldname="z_tafel2"/>
   	     
   	     
   	     <label fontstyle="plain" fontsize="8" x="0%" y="40" width="5%" height="10" alignment="right" >$locale.report.inventur.lager$</label>    
   	     <string-field fontsize="8" fontstyle="plain" x="6%" y="40" width="15%" height="8" alignment="left" fieldname="z_lager"/> 		
  	     <label fontstyle="plain" fontsize="8" x="22%" y="40" width="5%" height="10" alignment="right" >$locale.report.inventur.steuer_artikel$</label>    
   	     <string-field fontsize="8" fontstyle="plain" x="28%" y="40" width="15%" height="8" alignment="left" fieldname="z_steuer_artikel"/>
   	     <label fontstyle="plain" fontsize="8" x="44%" y="40" width="5%" height="10" alignment="right" >$locale.report.inventur.sorte$</label>    
   	     <string-field fontsize="8" fontstyle="plain" x="50%" y="40" width="15%" height="8" alignment="left" fieldname="z_sorte"/> 	 	
   	     <label fontstyle="plain" fontsize="8" x="66%" y="40" width="10%" height="10" alignment="right" >$locale.report.inventur.steuerlager$</label>    
   	     <string-field fontsize="8" fontstyle="plain" x="77%" y="40" width="15%" height="8" alignment="left" fieldname="z_steuerlager"/> 	
 
 
	    <rectangle  x="0" y="50" width="100%" height="1" color="#000000" weight="0" draw="true" fill="false"/>

      </band>      

 	  <band layout-cachable="false"  name="typ_gewicht_ex" x="0" y="0" width="100%" height="52">
 	     <label fontstyle="bold" fontsize="8" x="0" y="10" width="10%" height="10" alignment="right" >$locale.report.inventur.tanknummer$</label>    
 	     <label fontstyle="bold" fontsize="8" x="0" y="20" width="10%" height="10" alignment="right" >$locale.report.inventur.raum$</label>    
         <string-field fontstyle="bold" fontsize="9" x="11%" y="10" height="10" width="39%" alignment="right" fieldname="z_inhalt"></string-field>
 	     <number-field format="$options.report.zahlen_inventur$" fontsize="9" fontstyle="bold" x="51%" y="10" width="9%" height="10" alignment="right" fieldname="z_staerke"/>
 	     <label fontstyle="bold" fontsize="9" x="61%" y="10" width="9%" height="10" alignment="left" >$locale.string_prozentvol$</label>    
         <string-field fontstyle="plain" fontsize="8" x="11%" y="10" height="10" width="19%" alignment="left" fieldname="z_tanknummer"></string-field>
         <string-field fontstyle="plain" fontsize="8" x="11%" y="20" height="10" width="19%" alignment="left" fieldname="z_raum"></string-field>
 	     <date-field fontstyle="plain" fontsize="8" fieldname="z_datum" x="0" y="30" width="10%" height="10" alignment="left" format="d.MMM yyyy"></date-field>
   	     <number-field format="$options.report.zahlen_inventur$" fontsize="12" fontstyle="bold" x="80%" y="20" width="12%" height="12" alignment="right" fieldname="z_la"/>
  	     <label fontstyle="bold" fontsize="12" x="93%" y="20" width="6%" height="12" alignment="left" >$locale.string_la$</label>    
 
   	     <label fontstyle="plain" fontsize="8" x="31%" y="20" width="8%" height="10" alignment="right" >$locale.report.inventur.brutto$</label>    
   	     <number-field format="$options.report.zahlen_inventur$" fontsize="8" fontstyle="bold" x="40%" y="20" width="8%" height="8" alignment="left" fieldname="z_brutto"/>
  	     <label fontstyle="plain" fontsize="8" x="41%" y="20" width="8%" height="10" alignment="right" >$locale.report.inventur.tara$</label>    
   	     <number-field format="$options.report.zahlen_inventur$" fontsize="8" fontstyle="bold" x="50%" y="20" width="8%" height="8" alignment="left" fieldname="z_tara"/>
  	     <label fontstyle="plain" fontsize="8" x="51%" y="20" width="8%" height="10" alignment="right" >$locale.report.inventur.netto$</label>    
   	     <number-field format="$options.report.zahlen_inventur$" fontsize="8" fontstyle="bold" x="60%" y="20" width="8%" height="8" alignment="left" fieldname="z_netto"/>
   
 
  	     <label fontstyle="plain" fontsize="8" x="41%" y="30" width="9%" height="10" alignment="left" >$locale.report.inventur.liter20$</label>    
   	     <number-field format="$options.report.zahlen_inventur$" fontsize="8" fontstyle="bold" x="30%" y="30" width="9%" height="8" alignment="right" fieldname="z_liter20"/>
  	     <label fontstyle="plain" fontsize="8" x="50%" y="30" width="9%" height="10" alignment="right" >$locale.report.inventur.litergewicht$</label>    
   	     <number-field format="$options.report.zahlen_litergewicht$" fontsize="8" fontstyle="bold" x="61%" y="30" width="9%" height="8" alignment="left" fieldname="z_litergewicht"/>
 
 
 		 <label fontstyle="plain" fontsize="8" x="0%" y="40" width="5%" height="10" alignment="right" >$locale.report.inventur.lager$</label>    
   	     <string-field fontsize="8" fontstyle="plain" x="6%" y="40" width="15%" height="8" alignment="left" fieldname="z_lager"/> 		
  	     <label fontstyle="plain" fontsize="8" x="22%" y="40" width="5%" height="10" alignment="right" >$locale.report.inventur.steuer_artikel$</label>    
   	     <string-field fontsize="8" fontstyle="plain" x="28%" y="40" width="15%" height="8" alignment="left" fieldname="z_steuer_artikel"/>
   	     <label fontstyle="plain" fontsize="8" x="44%" y="40" width="5%" height="10" alignment="right" >$locale.report.inventur.sorte$</label>    
   	     <string-field fontsize="8" fontstyle="plain" x="50%" y="40" width="15%" height="8" alignment="left" fieldname="z_sorte"/> 	 	
   	     <label fontstyle="plain" fontsize="8" x="66%" y="40" width="10%" height="10" alignment="right" >$locale.report.inventur.steuerlager$</label>    
   	     <string-field fontsize="8" fontstyle="plain" x="77%" y="40" width="15%" height="8" alignment="left" fieldname="z_steuerlager"/> 	
 
 	    <rectangle  x="0" y="50" width="100%" height="1" color="#000000" weight="0" draw="true" fill="false"/>

      </band>   

  </items>

  <reportfooter height="34" dynamic="true" fontname="SansSerif">
   	     <label fontstyle="bold" fontsize="14" x="0%" y="14" width="100%" height="16" alignment="center" >$locale.report.inventur.summe_gesamt$</label>    
 
   	     <label fontstyle="bold" fontsize="12" x="26%" y="24" width="24%" height="12" alignment="left" >$locale.report.inventur.liter20$</label>    
   	     <number-field format="$options.report.zahlen_inventur$" fontsize="12" fontstyle="bold" x="0%" y="24" width="24%" height="12" alignment="right" fieldname="summe_liter20"/>
  
   	     <label fontstyle="bold" fontsize="12" x="76%" y="24" width="24%" height="12" alignment="left" >$locale.string_la$</label>    
   	     <number-field format="$options.report.zahlen_inventur$" fontsize="12" fontstyle="bold" x="51%" y="24" width="24%" height="12" alignment="right" fieldname="summe_la"/>
 
 </reportfooter>

  <functions>
	<function name="GroupSumLa" class="de.lunqual.rzpro.ausgabe.ItemSumFunction">
		<properties>
			<property name="field">z_la</property>
		</properties>
	</function>
	<function name="GroupSumLiter20" class="de.lunqual.rzpro.ausgabe.ItemSumFunction">
		<properties>
			<property name="field">z_liter20</property>
		</properties>
	</function>	
    <function name="PageNumber" class="org.jfree.report.function.PageFunction"/>  
    <function name="PageTotal" class="org.jfree.report.function.PageTotalFunction" deplevel="1"/> 
    <function name="SetVisible" class="de.lunqual.rzpro.ausgabe.VisibleInventurBandFunction"/>
  </functions>
  
  
</report>






');
