<?xml version="1.0" encoding="UTF-8" ?>
<report name="lv1200d" lpi="6">
 <description>Stampa a kg per itinerario</description>
 <font face="Courier New" size="10" />
 <section type="Head" height="2" />
 <section type="Head" level="1">
  <prescript description="H1 PRESCRIPT">0 #F1.101 !
0 #F1.102 !
0 #F1.103 !</prescript>
  <field x="22" y="0.5" type="Testo" align="center" width="55" height="2" pattern="1" text="Stampa Consegnato per Autista">
   <font face="Times New Roman" bold="1" size="14" />
  </field>
  <field x="30" y="2.75" type="Testo" width="4" height="1.5" pattern="1" text="Dal">
   <font face="Times New Roman" size="10" />
  </field>
  <field x="35" y="2.75" type="Data" width="12" height="1.5" pattern="1">
   <font face="Times New Roman" size="10" />
   <source>#DADATA</source>
  </field>
  <field x="57" y="2.75" type="Testo" width="4" height="1.5" pattern="1" text="Al">
   <font face="Times New Roman" size="10" />
  </field>
  <field x="62" y="2.75" type="Data" width="12" height="1.5" pattern="1">
   <font face="Times New Roman" size="10" />
   <source>#ADATA</source>
  </field>
  <field y="3.25" type="Testo" width="12" height="1.5" pattern="1" text="Data elab. :">
   <font face="Times New Roman" size="10" />
  </field>
  <field x="12.5" y="3.25" type="Stringa" width="12" height="1.5" pattern="1">
   <font face="Times New Roman" size="10" />
   <prescript description="H1.0 PRESCRIPT">MESSAGE _TODAY</prescript>
  </field>
  <field x="85" y="3.25" type="Testo" width="5" height="1.5" pattern="1" text="Pag.">
   <font face="Times New Roman" size="10" />
  </field>
  <field x="90.13" y="3.25" type="Stringa" width="10" height="1.5" pattern="1">
   <font face="Times New Roman" size="10" />
   <prescript description="H1.0 PRESCRIPT">MESSAGE _PAGENO</prescript>
  </field>
 </section>
 <section type="Head" level="2" height="6">
  <groupby>NUM(DOC.CODAG)</groupby>
  <prescript description="H2 PRESCRIPT">0 #F2.101 !
0 #F2.102 !
0 #F2.103 !</prescript>
  <field y="2" type="Testo" width="6" pattern="1" text="Aut.:">
   <font face="Times New Roman" size="10" />
  </field>
  <field x="17" y="2" type="Stringa" width="50" height="0" pattern="1">
   <prescript description="H2.0 PRESCRIPT">MESSAGE ISAMREAD,20,TIPOCF='C'!CODCF=#99,RAGSOC</prescript>
   <postscript description="H2.0 POSTSCRIPT">MESSAGE RESET,F3.101
MESSAGE RESET,F2.101
MESSAGE RESET,F3.102
MESSAGE RESET,F2.102
MESSAGE RESET,F3.103
MESSAGE RESET,F2.103

</postscript>
  </field>
  <field y="4" type="Testo" width="10" pattern="1" text="Codice">
   <font face="Times New Roman" size="10" />
   <source>RDOC.CODART</source>
  </field>
  <field x="11" y="4" type="Testo" width="50" pattern="1" text="Descrizione articolo">
   <font face="Times New Roman" size="10" />
   <source>ANAMAG.DESCR</source>
  </field>
  <field border="2" y="5" type="Linea" width="105" height="0" pattern="1" />
  <field x="6" y="2" type="Stringa" align="right" width="10" id="99" pattern="1">
   <font face="Times New Roman" size="10" />
   <source>DOC.CODAG</source>
  </field>
  <field x="17" y="2" type="Stringa" width="50" id="100" pattern="1">
   <font face="Times New Roman" size="10" />
   <source>"0" +DOC.CODAG</source>
   <prescript description="H2.100 PRESCRIPT">MESSAGE TABLEREAD,&#26;LVAUT,#THIS,S0</prescript>
  </field>
  <field x="65" y="4" type="Testo" align="right" width="15" id="101" pattern="1" text="Quantita">
   <font face="Times New Roman" size="10" />
   <source>RDOC.QTA</source>
  </field>
  <field x="84.5" y="4" type="Testo" align="right" width="10" id="102" pattern="1" text="Importo">
   <font face="Times New Roman" size="10" />
   <source>RDOC.IMPORTO</source>
  </field>
 </section>
 <section type="Head" level="3">
  <groupby>CODART</groupby>
  <prescript description="H3 PRESCRIPT">0 #F3.101 !
0 #F3.102 !
0 #F3.103 !</prescript>
 </section>
 <section type="Body" />
 <section type="Body" level="1" hidden="1">
  <field x="71" type="Numero" align="right" width="8" id="101" pattern="1">
   <source>RDOC.QTA</source>
   <postscript description="B1.101 POSTSCRIPT">MESSAGE ADD,F3.101
MESSAGE ADD,F2.101
MESSAGE ADD,F1.101</postscript>
  </field>
  <field x="80" type="Valuta" align="right" width="10" id="102" pattern="1" text="#########,@@">
   <source>RDOC.IMPNS</source>
   <postscript description="B1.102 POSTSCRIPT">MESSAGE ADD,F3.102
MESSAGE ADD,F2.102
MESSAGE ADD,F1.102</postscript>
  </field>
  <field x="90" type="Numero" align="right" width="10" id="103" pattern="1" text="#####,@@@">
   <source>#PESO</source>
   <prescript description="B1.103 PRESCRIPT">MESSAGE ADD,F3.103
</prescript>
  </field>
  <field type="Stringa" width="20" id="201" pattern="1">
   <source>RDOC.CODART</source>
  </field>
  <field x="21" type="Stringa" width="50" id="202" pattern="1">
   <source>ANAMAG.DESCR</source>
  </field>
 </section>
 <section type="Foot" />
 <section type="Foot" level="1">
  <field border="2" y="1" type="Linea" width="105" height="0" pattern="1" />
  <field x="60" y="2" type="Testo" hidden="1" width="10" pattern="1" text="Totali" />
  <field y="3" type="Testo" width="15" pattern="1" text="Peso totale">
   <font face="Times New Roman" size="10" />
  </field>
  <field x="71" y="2" type="Numero" hidden="1" align="right" width="15" id="101" pattern="1" />
  <field x="86.5" y="2" type="Valuta" hidden="1" align="right" width="10" id="102" pattern="1" text="#########,@@" />
  <field x="16" y="3" type="Numero" align="right" width="15" id="103" pattern="1" text="#####,@@@">
   <font face="Times New Roman" size="10" />
  </field>
 </section>
 <section type="Foot" level="2">
  <field border="2" type="Linea" width="105" height="0" pattern="1" />
  <field x="54" y="1" type="Testo" width="10" pattern="1" text="Totali">
   <font face="Times New Roman" size="10" />
  </field>
  <field y="2" type="Testo" width="20" pattern="1" text="Tot. peso per autista">
   <font face="Times New Roman" size="10" />
  </field>
  <field x="65" y="1" type="Numero" align="right" width="15" id="101" pattern="1">
   <font face="Times New Roman" size="10" />
  </field>
  <field x="84.5" y="1" type="Valuta" align="right" width="10" id="102" pattern="1" text="#########,@@">
   <font face="Times New Roman" size="10" />
  </field>
  <field x="22" y="2" type="Numero" align="right" width="15" id="103" pattern="1" text="#####,@@@">
   <font face="Times New Roman" size="10" />
   <prescript description="F2.103 PRESCRIPT">MESSAGE ADD,F1.103</prescript>
  </field>
 </section>
 <section type="Foot" level="3">
  <condition>#201!=""</condition>
  <field x="11" type="Stringa" width="50" pattern="1">
   <font face="Times New Roman" size="10" />
   <source>B1.202</source>
  </field>
  <field x="65" type="Numero" align="right" width="15" id="101" pattern="1">
   <font face="Times New Roman" size="10" />
  </field>
  <field x="84.5" type="Valuta" align="right" width="10" id="102" pattern="1" text="#########,@@">
   <font face="Times New Roman" size="10" />
  </field>
  <field x="96.5" type="Numero" hidden="1" align="right" width="15" id="103" pattern="1" text="#####,@@@">
   <prescript description="F3.103 PRESCRIPT">MESSAGE ADD,F2.103
</prescript>
  </field>
  <field type="Stringa" width="10" id="201" pattern="1">
   <font face="Times New Roman" size="10" />
   <source>B1.201</source>
  </field>
 </section>
 <sql>USE RDOC
JOIN DOC INTO CODNUM==CODNUM ANNO==ANNO PROVV==PROVV NDOC==NDOC</sql>
</report>