<!-- Lagerbestand 2 -->

<!--
Der Report unterstützt folgende Datenfelder
               "user","datum",
               "bezeichnung","liter","kg","la"
 -->

<report name="Lagerbestand" orientation="$options.report.lagerbestand.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="50" >
    <rectangle  x="0" y="0" width="100%" height="24" color="$options.report.general.reportheader.background$" weight="0" draw="false" fill="true"/>
    <rectangle  x="0" y="0" width="100%" height="24" 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="16" x="0%" y="16" width="49%" height="20" alignment="right" >$locale.report.lagerbestand.titel$</label>    
     <string-field fontstyle="bold" fontsize="16" x="50%" y="16" width="49%" height="20" alignment="left" fieldname="lager" ></string-field>    
     
      
     <label fontstyle="bold" fontsize="8" x="0%" y="32" width="24%" height="10" alignment="center" >$locale.lager.tableheader_bezeichnung$</label>  
     <label fontstyle="bold" fontsize="8" x="25%" y="32" width="14%" height="10" alignment="right" >$locale.lager.tableheader_liter$</label>  
     <label fontstyle="bold" fontsize="8" x="40%" y="32" width="14%" height="10" alignment="right" >$locale.lager.tableheader_kg$</label>  
     <label fontstyle="bold" fontsize="8" x="55%" y="32" width="14%" height="10" alignment="right" >$locale.lager.tableheader_la$</label>  
     <label fontstyle="bold" fontsize="8" x="70%" y="32" width="14%" height="10" alignment="right" >$locale.lager.tableheader_grundpreis$</label>  
     <label fontstyle="bold" fontsize="8" x="85%" y="32" width="14%" height="10" alignment="right" >$locale.lager.tableheader_preis$</label>  
  
          <line x1="0" y1="44" x2="0" y2="44" weight="0.5"/>
 </reportheader>

  <pageheader height="50" onfirstpage="false">
    <rectangle  x="0" y="0" width="100%" height="24" color="$options.report.general.reportheader.background$" weight="0" draw="false" fill="true"/>
    <rectangle  x="0" y="0" width="100%" height="24" 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="16" x="0%" y="16" width="49%" height="20" alignment="right" >$locale.report.lagerbestand.titel$</label>    
     <string-field fontstyle="bold" fontsize="16" x="50%" y="16" width="49%" height="20" alignment="left" fieldname="lager" ></string-field>    
     
      
     <label fontstyle="bold" fontsize="8" x="0%" y="32" width="24%" height="10" alignment="center" >$locale.lager.tableheader_bezeichnung$</label>  
     <label fontstyle="bold" fontsize="8" x="25%" y="32" width="14%" height="10" alignment="right" >$locale.lager.tableheader_liter$</label>  
     <label fontstyle="bold" fontsize="8" x="40%" y="32" width="14%" height="10" alignment="right" >$locale.lager.tableheader_kg$</label>  
     <label fontstyle="bold" fontsize="8" x="55%" y="32" width="14%" height="10" alignment="right" >$locale.lager.tableheader_la$</label>  
     <label fontstyle="bold" fontsize="8" x="70%" y="32" width="14%" height="10" alignment="right" >$locale.lager.tableheader_grundpreis$</label>  
     <label fontstyle="bold" fontsize="8" x="85%" y="32" width="14%" height="10" alignment="right" >$locale.lager.tableheader_preis$</label>  
  
          <line x1="0" y1="44" x2="0" y2="44" weight="0.5"/>
      </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>

  <items>
    <band name="bestand" height="21" x="0" y="0" width="100%">
  	<string-field fontstyle="plain" fontsize="8" x="0" y="11" width="24%" height="10" alignment="left" fieldname="bezeichnung" ></string-field>
    <number-field format="$options.report.zahlen_normal$" fontstyle="plain" fontsize="8" x="25%" y="11" height="10" width="14%" alignment="right" fieldname="liter"/>
    <number-field format="$options.report.zahlen_normal$" fontstyle="plain" fontsize="8" x="40%" y="11" height="10" width="14%" alignment="right" fieldname="kg"/>
    <number-field format="$options.report.zahlen_normal$" fontstyle="plain" fontsize="8" x="55%" y="11" height="10" width="14%" alignment="right" fieldname="la"/>
   	<string-field fontstyle="plain" fontsize="8" x="70%" y="11" width="14%" height="10" alignment="left" fieldname="grundpreis" ></string-field>
   	<string-field fontstyle="plain" fontsize="8" x="85%" y="11" width="14%" height="10" alignment="left" fieldname="preis" ></string-field>
   	<string-field fontstyle="plain" fontsize="8" x="0" y="20" width="50%" height="10" alignment="left" fieldname="artikelnummer" ></string-field>
   	<string-field fontstyle="plain" fontsize="8" x="50%" y="20" width="50%" height="10" alignment="right" fieldname="tank" ></string-field>  
  
        <line x1="0" y1="0" x2="0" y2="0" weight="0.5"/>
    </band>
    <band name="kein_bestand" height="0" x="0" y="0" widht="100%">
    </band>      
  </items>

<reportfooter height="40" fontname="SansSerif">
    <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="bold" fontsize="10" x="0%" y="11" width="100%" height="10" alignment="center" >$locale.string_summe$</label>  
  
   <number-field format="$options.report.zahlen_normal$" fontstyle="plain" fontsize="8" x="24%" y="22" height="10" width="12%" alignment="left" fieldname="summe_liter"/>
   <label fontstyle="bold" fontsize="8" x="25%" y="22" width="12%" height="10" alignment="right" >$locale.string_liter$</label>  
   
   <number-field format="$options.report.zahlen_normal$" fontstyle="plain" fontsize="8" x="49%" y="22" height="10" width="12%" alignment="left" fieldname="summe_kg"/>
   <label fontstyle="bold" fontsize="8" x="51%" y="22" width="12%" height="10" alignment="right" >$locale.string_kg$</label>  

   <number-field format="$options.report.zahlen_normal$" fontstyle="plain" fontsize="8" x="74%" y="22" height="10" width="12%" alignment="left" fieldname="summe_la"/>
   <label fontstyle="bold" fontsize="8" x="75%" y="22" width="12%" height="10" alignment="right" >$locale.string_la$</label>  
          
    <label fontstyle="bold" fontsize="8" x="0%" y="36" width="49%" height="10" alignment="right" >$locale.string_wert$</label>  
   <string-field fontstyle="bold" fontsize="8" x="50%" y="36" width="49%" height="20" alignment="left" fieldname="summe_kalkulation" ></string-field>    
  
  </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.VisibleLagerBestandBandFunction"/>
  </functions>
  
  
</report>

