<?xml version="1.0" encoding="UTF-8" ?>
<report name="co1300a" orientation="2" lpi="6">
 <description>Stampa Estratto Conto Socio</description>
 <font face="Courier New" size="8" />
 <section type="Head">
  <field x="1" y="1" type="Stringa" width="10" pattern="1">
   <source>101@.CODCF</source>
  </field>
  <field x="133" y="1" type="Data" width="12" pattern="1">
   <source>#SYSTEM.DATE</source>
  </field>
  <field x="1" y="2" type="Stringa" width="50" pattern="1">
   <source>101@.RAGSOC</source>
  </field>
  <field x="68" y="2" type="Testo" width="20" pattern="1" text="Estratto conto">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field x="90" y="2" type="Data" width="12" pattern="1">
   <font face="Courier New" bold="1" size="10" />
   <source>#DATAINI</source>
  </field>
  <field x="107" y="2" type="Testo" width="1" pattern="1" text="-">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field x="110" y="2" type="Data" width="12" pattern="1">
   <font face="Courier New" bold="1" size="10" />
   <source>#DATAFIN</source>
  </field>
  <field x="1" y="3" type="Stringa" width="50" pattern="1">
   <source>101@.INDCF+" ,"+101@.CIVCF</source>
  </field>
  <field x="1" y="4" type="Stringa" width="50" pattern="1">
   <source>101@.LOCALITACF</source>
  </field>
  <field x="1" y="5" type="Stringa" width="50" pattern="1">
   <source>101@.CAPCF+" "+COMUNI.DENCOM+" "+COMUNI.PROVCOM</source>
  </field>
  <field x="1" y="8" type="Testo" width="10" pattern="1" text="Data">
   <source>#PARENT.DATADOC</source>
  </field>
  <field x="12" y="8" type="Testo" width="30" pattern="1" text="Articolo">
   <source>DESCR</source>
  </field>
  <field x="43" y="8" type="Testo" width="10" pattern="1" text="N.f.asta">
   <source>#PARENT.NFASTA</source>
  </field>
  <field x="52" y="8" type="Testo" align="right" width="10" pattern="1" text="Q.ta">
   <source>Q.ta</source>
  </field>
  <field x="63" y="8" type="Testo" align="right" width="10" pattern="1" text="Prezzo">
   <source>34.PREZZONN</source>
  </field>
  <field x="74" y="8" type="Testo" align="right" width="10" pattern="1" text="Prz.-acc.">
   <source>PREZZONS</source>
  </field>
  <field x="85" y="8" type="Testo" align="right" width="10" pattern="1" text="Acc.">
   <source>RITENUTA</source>
  </field>
  <field x="96" y="8" type="Testo" align="right" width="15" pattern="1" text="Imp.a credito">
   <source>IMPCNS</source>
  </field>
  <field x="112" y="8" type="Testo" align="right" width="15" pattern="1" text="Imp.a debito">
   <source>IMPCNS</source>
  </field>
  <field x="128" y="8" type="Testo" align="right" width="10" pattern="1" text="Imposta" />
  <field x="140" y="8" type="Testo" width="20" pattern="1" text="Mercato" />
 </section>
 <section type="Head" level="1" />
 <section type="Head" level="2" />
 <section type="Body" />
 <section type="Body" level="1" />
 <section type="Head" level="11" />
 <section type="Body" level="11">
  <sql>USE RDOC 
SELECT (TIPORIGA='CO')||(TIPORIGA='06')
JOIN %SPP ALIAS 201 INTO CODTAB==CODART
FROM CODNUM=#PARENT.CODNUM ANNO=#PARENT.ANNO   PROVV=#PARENT.PROVV NDOC=#PARENT.NDOC
TO CODNUM=#PARENT.CODNUM ANNO=#PARENT.ANNO   PROVV=#PARENT.PROVV NDOC=#PARENT.NDOC
</sql>
  <field type="Data" width="11" pattern="1">
   <source>#PARENT.DATADOC</source>
  </field>
  <field x="12" type="Stringa" width="30" pattern="1">
   <source>DESCR</source>
  </field>
  <field x="43" type="Data" width="8" pattern="1">
   <source>33.NFASTA</source>
  </field>
  <field x="141" type="Stringa" hidden="1" align="right" bg_color="#00FFFF" width="12" id="100" pattern="1">
   <font face="Arial" size="10" />
   <source>34.TIPORIGA</source>
   <prescript description="B11.100 PRESCRIPT">#THIS @ 
"CO" =                \ confronta tiporiga con "CO"
IF       
  #101 ENABLE
  #102 ENABLE
  #103 ENABLE
  #104 ENABLE
  #105 ENABLE
  #106 DISABLE
  #107 ENABLE
ELSE
  #101 DISABLE
  #102 DISABLE
  #103 DISABLE
  #104 DISABLE
  #105 DISABLE
  #106 ENABLE
  #107 ENABLE
THEN</prescript>
  </field>
  <field x="52" type="Numero" align="right" width="10" id="101" pattern="1" hide_zero="1" text="###.###,@@">
   <groups>1</groups>
   <source>QTA</source>
   <postscript description="B11.101 POSTSCRIPT">MESSAGE ADD,F2.101</postscript>
  </field>
  <field x="63" type="Prezzo" align="right" width="10" codval="33.CODVAL" id="102" pattern="1" hide_zero="1" text="#########,@@">
   <groups>1</groups>
   <source>PREZZONN</source>
  </field>
  <field x="74" type="Prezzo" align="right" width="10" id="103" pattern="1" hide_zero="1" text="#########,@@">
   <groups>1</groups>
   <source>PREZZONS</source>
  </field>
  <field x="85" type="Prezzo" align="right" width="10" id="104" pattern="1" hide_zero="1" text="#########,@@">
   <groups>1</groups>
   <source>IMPCNN-IMPCNS</source>
   <postscript description="B11.104 POSTSCRIPT">MESSAGE ADD,F2.104</postscript>
  </field>
  <field x="96" type="Prezzo" align="right" width="15" id="105" pattern="1" hide_zero="1" text="#########,@@">
   <groups>1</groups>
   <source>IMPCNS</source>
   <postscript description="B11.105 POSTSCRIPT">MESSAGE ADD,F2.105
MESSAGE ADD,F2.115</postscript>
  </field>
  <field x="112" type="Prezzo" align="right" width="15" id="106" pattern="1" hide_zero="1" text="#########,@@">
   <groups>2</groups>
   <source>IMPCNS</source>
   <postscript description="B11.106 POSTSCRIPT">MESSAGE ADD,F2.106</postscript>
  </field>
  <field x="128" type="Prezzo" align="right" width="10" id="107" pattern="1" hide_zero="1" text="#########,@@">
   <source>IMPOSTA</source>
   <postscript description="B11.107 POSTSCRIPT">MESSAGE ADD,F2.107</postscript>
  </field>
 </section>
 <section type="Foot" level="11" />
 <section type="Head" level="12" />
 <section deactivated="1" type="Body" level="12" hidden="1">
  <sql>USE RDOC 
SELECT (TIPORIGA='CO')||(TIPORIGA='06')
JOIN %SPP ALIAS 201 INTO CODTAB==CODART
FROM CODNUM=#PARENT.CODNUM ANNO=#PARENT.ANNO   PROVV=#PARENT.PROVV NDOC=#PARENT.NDOC
TO CODNUM=#PARENT.CODNUM ANNO=#PARENT.ANNO   PROVV=#PARENT.PROVV NDOC=#PARENT.NDOC
</sql>
  <field x="13" type="Stringa" width="30" pattern="1">
   <source>DESCR</source>
  </field>
  <field x="142" type="Stringa" hidden="1" align="right" bg_color="#00FFFF" width="12" id="100" pattern="1">
   <font face="Arial" size="10" />
   <source>34.TIPORIGA</source>
   <prescript>#THIS @ 
"CO" =                \ confronta tiporiga con "CO"
IF       
  #101 ENABLE
  #102 ENABLE
  #103 ENABLE
  #104 ENABLE
  #105 ENABLE
  #106 DISABLE
  #107 ENABLE
ELSE
  #101 DISABLE
  #102 DISABLE
  #103 DISABLE
  #104 DISABLE
  #105 DISABLE
  #106 ENABLE
  #107 ENABLE
THEN</prescript>
  </field>
  <field x="53" type="Numero" align="right" width="10" id="101" pattern="1" hide_zero="1" text="###.###.@@">
   <source>QTA</source>
   <postscript>MESSAGE ADD,F2.101</postscript>
  </field>
  <field x="64" type="Prezzo" align="right" width="10" id="102" pattern="1" hide_zero="1" text="#########,@@">
   <source>PREZZONN</source>
  </field>
  <field x="75" type="Prezzo" align="right" width="10" id="103" pattern="1" hide_zero="1" text="#########,@@">
   <source>PREZZONS</source>
  </field>
  <field x="86" type="Prezzo" align="right" width="10" id="104" pattern="1" hide_zero="1" text="#########,@@">
   <source>IMPCNN-IMPCNS</source>
   <prescript>MESSAGE ADD,F2.104</prescript>
  </field>
  <field x="97" type="Prezzo" align="right" width="15" id="105" pattern="1" hide_zero="1" text="#########,@@">
   <source>IMPCNS</source>
   <postscript>MESSAGE ADD,F2.105</postscript>
  </field>
  <field x="113" type="Prezzo" align="right" width="15" id="106" pattern="1" hide_zero="1" text="#########,@@">
   <source>IMPCNS</source>
   <postscript>MESSAGE ADD,F2.106</postscript>
  </field>
  <field x="129" type="Prezzo" align="right" width="10" id="107" pattern="1" hide_zero="1" text="#########,@@">
   <source>IMPOSTA</source>
   <postscript>MESSAGE ADD,F2.107</postscript>
  </field>
 </section>
 <section type="Foot" level="12" />
 <section type="Foot" />
 <section type="Foot" level="1" />
 <section type="Foot" level="2">
  <field x="30" type="Testo" width="10" pattern="1" text="TOTALI" />
  <field x="92" y="3" type="Testo" width="35" pattern="1" text="Progressivo annuo conferimenti" />
  <field x="52" type="Numero" align="right" width="10" id="101" pattern="1" hide_zero="1" text="###.###,@@">
   <postscript description="F2.101 POSTSCRIPT">MESSAGE ADD,F2.101</postscript>
  </field>
  <field x="96" type="Prezzo" align="right" width="15" id="105" pattern="1" hide_zero="1" text="#########,@@" />
  <field x="112" type="Prezzo" align="right" width="15" id="106" pattern="1" hide_zero="1" text="#########,@@" />
  <field x="128" type="Prezzo" align="right" width="15" id="107" pattern="1" hide_zero="1" text="#########,@@" />
  <field x="128" y="3" type="Prezzo" align="right" width="15" id="115" pattern="1" text="###.###.###,@@" />
 </section>
 <sql>USE DOC 
KEY 2
SELECT (NUM(ANSI(DATADOC)&#3E;=ANSI(#DATAINI)))&#26;&#26;(NUM(ANSI(DATADOC)&#3C;=ANSI(#DATAFIN)))
JOIN CLIFO ALIAS 101 INTO TIPOCF==TIPOCF CODCF==CODCF
JOIN COMUNI TO 101@ INTO STATO==STATOCF COM==COMCF
FROM TIPOCF='F' CODCF=#SOCIO PROVV='D' ANNO=#ANNO DATADOC=#DATAINI
TO TIPOCF='F' CODCF=#SOCIO PROVV='D' ANNO=#ANNO DATADOC=#DATAFIN</sql>
</report>