<?xml version="1.0" encoding="UTF-8" ?>
<report name="ca9400k2" lpi="6">
 <description>Riclassificazione conti da contabile ad analitica</description>
 <font face="Arial" size="8" />
 <section type="Head">
  <font face="Arial" bold="1" size="8" />
  <field x="1" type="Testo" width="4" pattern="1" text="Gr." />
  <field x="6" type="Testo" width="4" pattern="1" text="Co." />
  <field x="13" type="Testo" width="6" pattern="1" text="Sott." />
  <field x="20" y="1" type="Testo" width="20" pattern="1" text="Conto analitico">
   <font italic="1" face="Arial" bold="1" size="8" />
  </field>
  <field border="1" y="2" type="Linea" width="100" height="0" pattern="1" />
 </section>
 <section type="Head" level="1">
  <field type="Stringa" width="50" pattern="1">
   <font face="Arial" bold="1" size="8" />
   <source>#SYSTEM.RAGSOC</source>
  </field>
  <field x="73" type="Testo" width="15" pattern="1" text="Data stampa:">
   <font face="Arial" bold="1" size="8" />
  </field>
  <field x="88" type="Data" width="10" pattern="1">
   <font face="Arial" bold="1" size="8" />
   <source>#SYSTEM.DATE</source>
  </field>
  <field border="1" radius="100" x="4" y="1.5" type="Rettangolo" width="80" height="2" pattern="1" />
  <field x="4" y="2" type="Testo" align="center" width="80" pattern="1" text="RICLASSIFICAZIONE  CONTI  DA  CONTABILI  AD  ANALITICI">
   <font face="Arial" bold="1" size="12" />
  </field>
 </section>
 <section type="Head" level="2">
  <groupby>STR(GRUPPO)+STR(CONTO)+STR(SOTTOCONTO)</groupby>
  <field x="1" type="Numero" align="right" width="3" pattern="1">
   <source>GRUPPO</source>
  </field>
  <field x="6" type="Numero" align="right" width="3" pattern="1" hide_zero="1">
   <source>CONTO</source>
  </field>
  <field x="11" type="Numero" align="right" width="6" pattern="1" hide_zero="1">
   <source>SOTTOCONTO</source>
  </field>
  <field x="19" type="Stringa" width="50" pattern="1">
   <source>PCON.DESCR</source>
   <prescript description="H2.0 PRESCRIPT">#THIS @
EMPTY= IF
"CONTO CONTABILE MANCANTE!"
#THIS !
THEN</prescript>
  </field>
 </section>
 <section type="Body" />
 <section type="Body" level="1">
  <field x="20" type="Stringa" width="20" pattern="1">
   <font italic="1" face="Arial" size="8" />
   <source>CODCONTO</source>
  </field>
  <field x="41" type="Stringa" width="50" pattern="1">
   <font italic="1" face="Arial" size="8" />
   <source>PCONANA.DESCR</source>
   <prescript description="B1.0 PRESCRIPT">#THIS @
EMPTY= IF
"CONTO ANALITICO MANCANTE!"
#THIS !
THEN</prescript>
  </field>
 </section>
 <section type="Foot" height="2">
  <field border="1" y="0.5" type="Linea" width="100" height="0" pattern="1" />
  <field x="89" y="0.75" type="Numero" align="right" width="10" pattern="1" text="Pag.###">
   <source>#REPORT.PAGE</source>
  </field>
 </section>
 <section type="Foot" level="1" />
 <section type="Foot" level="2" />
 <sql>USE PANAPDC KEY 2
JOIN PCONANA INTO CODCONTO==CODCONTO
JOIN PCON INTO GRUPPO==GRUPPO CONTO==CONTO SOTTOCONTO==SOTTOCONTO
FROM GRUPPO=#DAGR CONTO=#DACO SOTTOCONTO=#DASOTT
TO GRUPPO=#AGR CONTO=#ACO SOTTOCONTO=#ASOTT
</sql>
</report>