<report name="vestspp" lpi="6">
 <font face="Courier New" size="10" />
 <section keep_with_next="1" type="Head">
  <field type="Stringa" width="50">
   <font italic="1" face="Courier New" bold="1" size="10" />
   <source>#SYSTEM.RAGSOC</source>
  </field>
  <field y="1" type="Testo" valign="center" align="center" width="96" height="2" text="Tabella Spese">
   <font face="Courier New" bold="1" size="14" />
  </field>
  <field border="2" x="1" y="3.5" type="Linea" width="93" height="0" />
  <field x="2" y="4" type="Testo" width="6" text="Codice">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field x="11" y="4" type="Testo" width="12" text="Descrizione">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field x="62" y="4" type="Testo" width="3" text="IVA">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field x="67" y="4" type="Testo" width="6" text="Valuta">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field x="85" y="4" type="Testo" width="6" text="Prezzo">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field x="6" y="5" type="Testo" width="9" text="Quantita'">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field x="17" y="5" type="Testo" width="5" text="Perc.">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field x="24" y="5" type="Testo" width="2" text="UM">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field x="28" y="5" type="Testo" width="9" text="Cod.form.">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field x="39" y="5" type="Testo" width="7" text="Formula">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field x="49" y="6" type="Testo" width="14" text="Conto acquisti">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field x="2" y="6" type="Testo" width="13" text="Conto vendite">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field border="2" x="1" y="7.5" type="Linea" width="93" height="0" />
 </section>
 <section keep_with_next="1" type="Head" level="1" />
 <section keep_with_next="1" type="Body" />
 <section keep_with_next="1" type="Body" level="1">
  <field x="2" type="Stringa" link="SPP.CODTAB[1,8]" width="8">
   <source>CODTAB[1,8]</source>
  </field>
  <field x="11" type="Stringa" width="50">
   <source>S0</source>
  </field>
  <field x="62" type="Stringa" width="4">
   <source>S3[1,4]</source>
  </field>
  <field x="68" type="Stringa" width="4">
   <source>S4[1,4]</source>
  </field>
  <field x="78" type="Numero" align="right" width="13">
   <source>R0[1,13]</source>
  </field>
  <field x="2" y="1" type="Numero" align="right" width="13">
   <source>R1[1,13]</source>
  </field>
  <field x="17" y="1" type="Numero" align="right" width="5">
   <source>R2[1,5]</source>
  </field>
  <field x="24" y="1" type="Stringa" width="2">
   <source>S7[1,2]</source>
  </field>
  <field x="28" y="1" type="Stringa" width="10">
   <source>S5[1,10]</source>
  </field>
  <field x="39" y="1" type="Stringa" width="50">
   <source>200@.S1</source>
  </field>
  <field x="3" y="2" type="Numero" align="right" width="3">
   <source>I0[1,3]</source>
  </field>
  <field x="7" y="2" type="Numero" align="right" width="3">
   <source>I1[1,3]</source>
  </field>
  <field x="10" y="2" type="Numero" align="right" width="6">
   <source>I2[1,6]</source>
  </field>
  <field x="17" y="2" type="Stringa" dynamic_height="1" width="30" height="2">
   <source>200@.DESCR</source>
  </field>
  <field x="49" y="2" type="Numero" align="right" width="3">
   <source>I3[1,3]</source>
  </field>
  <field x="53" y="2" type="Numero" align="right" width="3">
   <source>I4[1,3]</source>
  </field>
  <field x="57" y="2" type="Numero" align="right" width="6">
   <source>I5[1,6]</source>
  </field>
  <field x="64" y="2" type="Stringa" dynamic_height="1" width="30" height="2">
   <source>300@.DESCR</source>
  </field>
  <field border="1" y="4" type="Linea" width="93" height="0" />
 </section>
 <section keep_with_next="1" type="Foot" height="3">
  <field border="2" x="1" y="0.5" type="Linea" width="93" height="0" />
  <field x="2" y="1" type="Data" width="10">
   <source>#SYSTEM.DATE</source>
  </field>
  <field x="90" y="1" type="Numero" align="right" width="3">
   <source>#PAGE</source>
  </field>
  <field border="2" x="1" y="2.5" type="Linea" width="93" height="0" />
 </section>
 <section keep_with_next="1" type="Foot" level="1" />
 <sql>USE SPP
JOIN %FRD ALIAS 200 INTO CODTAB==S5
JOIN PCON ALIAS 200 INTO GRUPPO==I0 CONTO==I1 SOTTOCONTO==I2
JOIN PCON ALIAS 300 INTO GRUPPO==I3 CONTO==I4 SOTTOCONTO==I5</sql>
</report>