insert into formulare (id,typ,system,erstellt,geaendert,user_1,user_2,name,formular) values (9,3,1,
'2004-05-01 00:00:00','2004-05-01','system','system',
'Berechnung normal 2','

<!--
Der Report unterstützt folgende Datenfelder
                "user","titel","staerke","gesamtLiter","gesamtKg","gesamtLA", 
				"summeLiter","summeKg","summeLA","summeExtraktfreiLiter","summeExtraktfreiKg",
				"summeKalkulation","kurs","euro","waehrung","litergewicht","extraktprozent","extraktgramm",
				"wasserT","wasserTKg","kontraktion","kontraktionKg","wasserP","wasserPKg",
				"wassergrundpreis","wasserpreis","steuergrundpreis","steuerpreis",
				"perLiterEx","perKgEx","perLAEx","perLiterInc","perKgInc","perLAInc",
				"summeOhneSteuer","summeMitSteuer","kgPerLiter","gr100ml",
                "kalkulation_warnung","datum"

Felder für Items:
                "zMenge","zEinheit","zTitel","zStaerke","zLiter","zKg","zLA",
                "zLitergewicht", "zArtikelnummer",//3-2
				"zLosnummer","zBestand","zMeldebestand","zBestandsEinheit","zGrundpreis","zPreis","zExtraktfrei","zExtrakt","zTrockenmasse",//4-9
				"zLiterExtraktfrei","zStaerkeExtraktfrei","zKgExtrakfrei",//5-3

 -->

<report name="Berechnung normal" orientation="$options.report.rechnen.orientation$"
  pageformat="$options.report.general.pageformat$" topmargin="$options.report.general.margin.top$" leftmargin="$options.report.general.margin.left$" 
  bottommargin="$options.report.general.margin.bottom$" rightmargin="$options.report.general.margin.right$">
 

 <reportheader height="70" >
   <date-field fontstyle="plain" fontsize="7" fieldname="datum" x="5" y="3" width="20%" height="10" alignment="left" format="d.MMM yyyy H.mm"></date-field>
    <label fontstyle="plain" fontsize="7" x="75%" y="3" width="14%" height="10" alignment="right" >$locale.report.user$</label>   
     <string-field fontstyle="plain" fontsize="7" x="90%" y="3" height="10" width="10%" alignment="left" fieldname="user"></string-field>
     <label fontstyle="bold" fontsize="16" x="0%" y="3" width="100%" height="20" alignment="center" >$locale.report.rechenblatt.titel$</label>    
     <string-field fontstyle="bold" fontsize="14" x="0%" y="25" height="20" width="100%" alignment="center" fieldname="titel"></string-field>

	<!-- staerke-->
	 <number-field format="$options.report.zahlen_staerke$" fontstyle="bold" fontsize="9" x="0%" y="48" height="12" width="24%" alignment="right" fieldname="staerke"/>
     <label fontstyle="bold" fontsize="9" x="25%" y="48" width="24%" height="12" alignment="left" >$locale.string_prozentvol$ </label>    
	
	<!-- liter-->
	 <number-field format="$options.report.zahlen_normal$" fontstyle="bold" fontsize="9" x="51%" y="48" height="12" width="24%" alignment="right" fieldname="gesamtLiter"/>
     <label fontstyle="bold" fontsize="9" x="76%" y="48" width="24%" height="12" alignment="left" >$locale.string_liter$ </label>    

	<!-- kg -->
	 <number-field format="$options.report.zahlen_normal$" fontstyle="bold" fontsize="9" x="0%" y="60" height="14" width="24%" alignment="right" fieldname="gesamtKg"/>
     <label fontstyle="bold" fontsize="9" x="25%" y="60" width="24%" height="12" alignment="left" >$locale.string_kg$ </label>    

	 <number-field format="$options.report.zahlen_normal$" fontstyle="bold" fontsize="9" x="51%" y="60" height="12" width="24%" alignment="right" fieldname="gesamtLA"/>
     <label fontstyle="bold" fontsize="9" x="76%" y="60" width="24%" height="12" alignment="left" >$locale.string_la$ </label>    

 	<line x1="0" x2="0" y1="70" y2="70" weight="0.1"/>
 	
  </reportheader>

  <pageheader height="70" onfirstpage="false">
  <date-field fontstyle="plain" fontsize="7" fieldname="datum" x="5" y="3" width="20%" height="10" alignment="left" format="d.MMM yyyy H.mm"></date-field>
    <label fontstyle="plain" fontsize="7" x="75%" y="3" width="14%" height="10" alignment="right" >$locale.report.user$</label>   
     <string-field fontstyle="plain" fontsize="7" x="90%" y="3" height="10" width="10%" alignment="left" fieldname="user"></string-field>
     <label fontstyle="bold" fontsize="16" x="0%" y="3" width="100%" height="20" alignment="center" >$locale.report.rechenblatt.titel$</label>    
     <string-field fontstyle="bold" fontsize="14" x="0%" y="25" height="20" width="100%" alignment="center" fieldname="titel"></string-field>

	<!-- staerke-->
	 <number-field format="$options.report.zahlen_staerke$" fontstyle="bold" fontsize="9" x="0%" y="48" height="12" width="24%" alignment="right" fieldname="staerke"/>
     <label fontstyle="bold" fontsize="9" x="25%" y="48" width="24%" height="12" alignment="left" >$locale.string_prozentvol$ </label>    
	
	<!-- liter-->
	 <number-field format="$options.report.zahlen_normal$" fontstyle="bold" fontsize="9" x="51%" y="48" height="12" width="24%" alignment="right" fieldname="gesamtLiter"/>
     <label fontstyle="bold" fontsize="9" x="76%" y="48" width="24%" height="12" alignment="left" >$locale.string_liter$ </label>    

	<!-- kg -->
	 <number-field format="$options.report.zahlen_normal$" fontstyle="bold" fontsize="9" x="0%" y="60" height="14" width="24%" alignment="right" fieldname="gesamtKg"/>
     <label fontstyle="bold" fontsize="9" x="25%" y="60" width="24%" height="12" alignment="left" >$locale.string_kg$ </label>    

	 <number-field format="$options.report.zahlen_normal$" fontstyle="bold" fontsize="9" x="51%" y="60" height="12" width="24%" alignment="right" fieldname="gesamtLA"/>
     <label fontstyle="bold" fontsize="9" x="76%" y="60" width="24%" height="12" alignment="left" >$locale.string_la$ </label>    

 	<line x1="0" x2="0" y1="70" y2="70" weight="0.1"/>
 
  </pageheader>
  
  <pagefooter height="20">
   <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>

  <items>
    <band layout-cachable="false"  name="liter" x="0" y="1" width="100%" height="60">
      <!-- Zeile 1   menge,einheit,name,VolProz -->
      <number-field format="$options.report.zahlen_normal$" fontsize="9" x="2%" y="1" width="17%" height="11" alignment="right" fieldname="zMenge"/>
      <string-field fontsize="9" fontstyle="bold" x="20%" y="1" width="5%" height="11" alignment="left" fieldname="zEinheit"/>
      <string-field fontsize="9" fontstyle="bold" x="26%" y="1" width="55%" height="11" alignment="left" fieldname="zTitel"/>
      <number-field format="$options.report.zahlen_normal$" fontsize="9" fontstyle="plain" x="81%" y="1" width="9%" height="11" alignment="right" fieldname="zStaerke"/>
      <label fontsize="9" fontstyle="bold" x="91%" y="1" width="9%" height="11" alignment="left">$locale.string_prozentvol$</label>
      
      <!-- zeile 2 liter,kg,la -->
      <number-field format="$options.report.zahlen_normal$" fontsize="9" fontstyle="plain" x="26%" y="12" width="14%" height="11" alignment="right" fieldname="zKg"/>
      <label fontstyle="bold" fontsize="9" x="41%" y="12" width="14%" height="11" alignment="left" >$locale.string_kg$ </label>   

      <number-field format="$options.report.zahlen_normal$" fontsize="9" fontstyle="plain" x="76%" y="12" width="14%" height="11" alignment="right" fieldname="zLA"/>
      <label fontsize="9" fontstyle="bold" x="91%" y="12" width="9%" height="11" alignment="left">$locale.string_la$</label>

	  <!-- Artikelnummer -->
      <label fontstyle="bold" fontsize="9" x="26%" y="24" width="4%" height="11" alignment="right" ># </label>     	  
      <string-field fontsize="9" fontstyle="plain" x="30%" y="24" width="74%" height="11" alignment="left" fieldname="zArtikelnummer"/>
     
      <label fontstyle="bold" fontsize="9" x="20%" y="36" width="14%" height="11" alignment="right" >$locale.string_losnummer$</label>     	  
      <string-field dynamic="true" fontsize="9" fontstyle="plain" x="35%" y="36" width="64%" height="11" alignment="left" fieldname="zLosnummer"/>
  
    </band>

    <band layout-cachable="false"  name="kg" x="0" y="1" width="100%" height="60">
      <!-- Zeile 1   menge,einheit,name,VolProz -->
      <number-field format="$options.report.zahlen_normal$" fontsize="9" x="2%" y="1" width="17%" height="11" alignment="right" fieldname="zMenge"/>
      <string-field fontsize="9" fontstyle="bold" x="20%" y="1" width="5%" height="11" alignment="left" fieldname="zEinheit"/>
      <string-field fontsize="9" fontstyle="bold" x="26%" y="1" width="55%" height="11" alignment="left" fieldname="zTitel"/>
      <number-field format="$options.report.zahlen_normal$" fontsize="9" fontstyle="plain" x="81%" y="1" width="9%" height="11" alignment="right" fieldname="zStaerke"/>
      <label fontsize="9" fontstyle="bold" x="91%" y="1" width="9%" height="11" alignment="left">$locale.string_prozentvol$</label>
      
      <!-- zeile 2 liter,kg,la -->
      <number-field format="$options.report.zahlen_normal$" fontsize="9" fontstyle="plain" x="26%" y="12" width="14%" height="11" alignment="right" fieldname="zLiter"/>
      <label fontstyle="bold" fontsize="9" x="41%" y="12" width="14%" height="11" alignment="left" >$locale.string_liter$ </label>   

      <number-field format="$options.report.zahlen_normal$" fontsize="9" fontstyle="plain" x="76%" y="12" width="14%" height="11" alignment="right" fieldname="zLA"/>
      <label fontsize="9" fontstyle="bold" x="91%" y="12" width="9%" height="11" alignment="left">$locale.string_la$</label>

	  <!-- Artikelnummer -->
      <label fontstyle="bold" fontsize="9" x="26%" y="24" width="4%" height="11" alignment="right" ># </label>     	  
      <string-field fontsize="9" fontstyle="plain" x="30%" y="24" width="74%" height="11" alignment="left" fieldname="zArtikelnummer"/>
  
      <label fontstyle="bold" fontsize="9" x="20%" y="36" width="14%" height="11" alignment="right" >$locale.string_losnummer$</label>     	  
      <string-field fontsize="9" fontstyle="plain" x="35%" y="36" width="64%" height="11" alignment="left" fieldname="zLosnummer"/>
  

    </band>
    
    <band layout-cachable="false"  name="la" x="0" y="1" width="100%" height="60">
      <!-- Zeile 1   menge,einheit,name,VolProz -->
      <number-field format="$options.report.zahlen_normal$" fontsize="9" x="2%" y="1" width="17%" height="11" alignment="right" fieldname="zLiter"/>
      <label fontsize="9" fontstyle="bold" x="20%" y="1" width="5%" height="11" alignment="left">$locale.string_liter$</label>
      <string-field fontsize="9" fontstyle="bold" x="26%" y="1" width="55%" height="11" alignment="left" fieldname="zTitel"/>
      <number-field format="$options.report.zahlen_normal$" fontsize="9" fontstyle="plain" x="81%" y="1" width="9%" height="11" alignment="right" fieldname="zStaerke"/>
      <label fontsize="9" fontstyle="bold" x="91%" y="1" width="9%" height="11" alignment="left">$locale.string_prozentvol$</label>
      
      <!-- zeile 2 liter,kg,la -->
      <number-field format="$options.report.zahlen_normal$" fontsize="9" fontstyle="plain" x="26%" y="12" width="14%" height="11" alignment="right" fieldname="zKg"/>
      <label fontstyle="bold" fontsize="9" x="41%" y="12" width="14%" height="11" alignment="left" >$locale.string_kg$ </label>   

      <number-field format="$options.report.zahlen_normal$" fontsize="9" fontstyle="plain" x="76%" y="12" width="14%" height="11" alignment="right" fieldname="zLA"/>
      <label fontsize="9" fontstyle="bold" x="91%" y="12" width="9%" height="11" alignment="left">$locale.string_la$</label>

	  <!-- Artikelnummer -->
      <label fontstyle="bold" fontsize="9" x="26%" y="24" width="4%" height="11" alignment="right" ># </label>     	  
      <string-field fontsize="9" fontstyle="plain" x="30%" y="24" width="74%" height="11" alignment="left" fieldname="zArtikelnummer"/>
   
      <label fontstyle="bold" fontsize="9" x="20%" y="36" width="14%" height="11" alignment="right" >$locale.string_losnummer$</label>     	  
      <string-field fontsize="9" fontstyle="plain" x="35%" y="36" width="64%" height="11" alignment="left" fieldname="zLosnummer"/>
  
    </band>


    <band layout-cachable="false"  name="comment" x="0" y="1" width="100%" height="12">
      <string-field fontsize="9" x="26%" y="1" width="74%" height="11" alignment="left" fieldname="zTitel" nullstring=""/>
    </band>


    <band layout-cachable="false" visible="false"  name="commentWarning" x="0" y="1" width="100%" height="13">
  	<imageref scale="true" x="0%" y="1" width="13" height="13" keepAspectRatio="true" src="warnung.png"/>
     	<string-field  fontstyle="bold" fontsize="12" x="6%" y="1" width="74%" height="13" alignment="left" fieldname="zTitel" nullstring=""/>
    </band>
  </items>

  <reportfooter height="85" fontname="SansSerif">
  	<line x1="0" x2="0" y1="0" y2="0" weight="0.1"/>
     <label fontstyle="bold" fontsize="9" x="0%" y="1" width="25%" height="12" alignment="right" >$locale.report.rechenblatt_summe$</label>
     
      <number-field format="$options.report.zahlen_normal$"  fontsize="9" fontstyle="plain" x="26%" y="1" width="14%" height="11" alignment="right" fieldname="summeLiter"/>
      <label fontstyle="bold" fontsize="9" x="41%" y="1" width="14%" height="11" alignment="left" >$locale.string_liter$ </label>   

      <number-field format="$options.report.zahlen_normal$"  fontsize="9" fontstyle="plain" x="60%" y="1" width="14%" height="11" alignment="right" fieldname="summeKg"/>
      <label fontstyle="bold" fontsize="9" x="75%" y="1" width="14%" height="11" alignment="left" >$locale.string_kg$ </label>   
              
      <number-field format="$options.report.zahlen_normal$"  fontsize="9" fontstyle="plain" x="76%" y="1" width="14%" height="11" alignment="right" fieldname="summeLA"/>
      <label fontsize="9" fontstyle="bold" x="91%" y="1" width="9%" height="11" alignment="left" >$locale.string_la$</label>      
     
      <label fontstyle="bold" fontsize="9" x="0%" y="12" width="25%" height="11" alignment="right" >$locale.report.rechenblatt_wassert$ </label>   
      <number-field format="$options.report.zahlen_normal$"  fontsize="9" fontstyle="plain" x="26%" y="12" width="14%" height="11" alignment="right" fieldname="wasserT"/>
      <label fontstyle="bold" fontsize="9" x="41%" y="12" width="14%" height="11" alignment="left" >$locale.string_liter$ </label>   

      <number-field format="$options.report.zahlen_normal$"  fontsize="9" fontstyle="plain" x="60%" y="12" width="14%" height="11" alignment="right" fieldname="wasserTKg"/>
      <label fontstyle="bold" fontsize="9" x="75%" y="12" width="14%" height="11" alignment="left" >$locale.string_kg$ </label>   

      <label fontstyle="bold" fontsize="9" x="0%" y="24" width="25%" height="11" alignment="right" >$locale.report.rechenblatt_kontraktion$ </label>  
      <number-field format="$options.report.zahlen_normal$"  fontsize="9" fontstyle="plain" x="26%" y="24" width="14%" height="11" alignment="right" fieldname="kontraktion"/>
      <label fontstyle="bold" fontsize="9" x="41%" y="24" width="14%" height="11" alignment="left" >$locale.string_liter$ </label>   

      <number-field format="$options.report.zahlen_normal$"  fontsize="9" fontstyle="plain" x="60%" y="24" width="14%" height="11" alignment="right" fieldname="kontraktionKg"/>
      <label fontstyle="bold" fontsize="9" x="75%" y="24" width="14%" height="11" alignment="left" >$locale.string_kg$ </label>   
 
      <label fontstyle="bold" fontsize="9" x="0%" y="36" width="25%" height="11" alignment="right" >$locale.report.rechenblatt_wasserp$ </label>  
      <number-field format="$options.report.zahlen_normal$"  fontsize="9" fontstyle="plain" x="26%" y="36" width="14%" height="11" alignment="right" fieldname="wasserP"/>
      <label fontstyle="bold" fontsize="9" x="41%" y="36" width="14%" height="11" alignment="left" >$locale.string_liter$ </label>   
 
      <number-field format="$options.report.zahlen_normal$"  fontsize="9" fontstyle="plain" x="60%" y="36" width="14%" height="11" alignment="right" fieldname="wasserPKg"/>
      <label fontstyle="bold" fontsize="9" x="75%" y="36" width="14%" height="11" alignment="left" >$locale.string_kg$ </label>  
   
      <label fontstyle="bold" fontsize="9" x="0%" y="48" width="25%" height="11" alignment="right" >$locale.report.rechenblatt_litergewicht$ </label>  
      <number-field format="$options.report.zahlen_litergewicht$"  fontsize="9" fontstyle="plain" x="26%" y="48" width="14%" height="11" alignment="right" fieldname="litergewicht"/>
      <string-field fontstyle="bold" fontsize="9" x="41%" y="48" width="14%" height="11" alignment="left" fieldname="kgPerLiter"/>   


      <label fontstyle="bold" fontsize="9" x="0%" y="60" width="25%" height="11" alignment="right" >$locale.report.rechenblatt_extraktgramm$ </label>  
      <number-field format="$options.report.zahlen_normal$"  fontsize="9" fontstyle="plain" x="26%" y="60" width="14%" height="11" alignment="right" fieldname="extraktgramm"/>
      <string-field fontstyle="bold" fontsize="9" x="41%" y="60" width="24%" height="11" alignment="left" fieldname="gr100ml"/>   

      <label fontstyle="bold" fontsize="9" x="0%" y="72" width="25%" height="11" alignment="right" >$locale.report.rechenblatt_extraktprozent$ </label>  
      <number-field format="$options.report.zahlen_normal$"  fontsize="9" fontstyle="plain" x="26%" y="72" width="14%" height="11" alignment="right" fieldname="extraktprozent"/>
      <label fontstyle="bold" fontsize="9" x="41%" y="72" width="14%" height="11" alignment="left" >$locale.string_prozentmas$</label>  

  </reportfooter>

  <functions>
    <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.VisibleBandFunction"/>
  </functions>
  
  
</report>

');