<?xml version="1.0" encoding="UTF-8" ?>
<report name="co1200a" orientation="2" lpi="6" command="ve1 -3">
 <description>STAMPA CONFERIMENTI</description>
 <font face="Courier New" size="8" />
 <section type="Head">
  <field x="133.08" y="0.18" type="Testo" valign="bottom" width="6" pattern="1" text="Data" />
  <field x="139.08" y="0.18" type="Data" valign="bottom" align="right" width="12" pattern="1">
   <source>#SYSTEM.DATE</source>
  </field>
  <field x="157.08" y="0.18" type="Testo" valign="bottom" width="5" pattern="1" text="Pag." />
  <field x="165.08" y="0.18" type="Numero" valign="bottom" align="right" width="4" pattern="1">
   <source>#REPORT.PAGE</source>
  </field>
  <field x="71.18" y="0.62" type="Testo" valign="center" align="center" width="42" height="2" pattern="1" text="STAMPA CONFERIMENTI">
   <font face="Courier New" bold="1" size="14" />
  </field>
  <field border="2" x="0.18" y="2.62" type="Linea" width="170" height="0" pattern="1" />
  <field x="3.18" y="3.62" type="Testo" width="6" pattern="1" text="Ditta" />
  <field x="10.18" y="3.62" type="Stringa" width="60" pattern="1">
   <source>#SYSTEM.RAGSOC</source>
  </field>
  <field x="3.18" y="4.62" type="Testo" valign="bottom" width="12" pattern="1" text="Dalla data" />
  <field x="15.18" y="4.62" type="Data" valign="bottom" align="right" width="12" pattern="1">
   <source>#DADATA</source>
  </field>
  <field x="28.18" y="4.62" type="Testo" valign="bottom" align="center" width="10" pattern="1" text="alla data" />
  <field x="40.18" y="4.62" type="Data" valign="bottom" align="right" width="12" pattern="1">
   <source>#ADATA</source>
  </field>
  <field border="2" x="0.18" y="6.62" type="Linea" width="170" height="0" pattern="1" />
  <field x="2" y="7" type="Testo" width="12" pattern="1" text="Data">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field x="18" y="7" type="Testo" width="27" pattern="1" text="Codice socio">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field x="50" y="7" type="Testo" align="right" width="12" pattern="1" text="N.f.asta ">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field x="63" y="7" type="Testo" width="55" pattern="1" text="Tipo movimento">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field x="118" y="7" type="Testo" width="37" pattern="1" text="Codice mercato">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field x="160" y="7" type="Testo" align="right" width="8" pattern="1" text="N.reg.">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field x="12" y="8" type="Testo" valign="bottom" align="right" width="10" pattern="1" text="Quantit&#E0;" />
  <field x="25" y="8" type="Testo" valign="bottom" align="right" width="8" pattern="1" text="Prezzo" />
  <field x="37" y="8" type="Testo" valign="bottom" align="right" width="10" pattern="1" text="Importo" />
  <field x="55" y="8" type="Testo" valign="bottom" align="right" width="15" pattern="1" text="Spese varie" />
  <field x="75" y="8" type="Testo" valign="bottom" align="right" width="15" pattern="1" text="Totale ricavo" />
  <field x="100" y="8" type="Testo" valign="bottom" align="right" width="8" pattern="1" text="A.iva" />
  <field x="116" y="8" type="Testo" valign="bottom" align="right" width="8" pattern="1" text="Imposta" />
  <field x="130" y="8" type="Testo" valign="bottom" align="right" width="18" pattern="1" text="Detr. su quantita" />
  <field x="153" y="8" type="Testo" valign="bottom" align="right" width="15" pattern="1" text="Rit.acc.spese" />
  <field border="2" y="10" type="Linea" width="170" height="0" pattern="1" />
 </section>
 <section type="Head" level="1">
  <prescript description="H1 PRESCRIPT">MESSAGE RESET,F1.101|RESET,F1.102|RESET,F1.103|RESET,F1.104|RESET,F1.105|RESET,F1.106|RESET,F1.107|RESET,F1.108</prescript>
 </section>
 <section type="Body" />
 <section type="Body" level="1" />
 <section type="Head" level="11" />
 <section type="Body" level="11">
  <sql>USE RDOC 
SELECT BETWEEN(CODART,#PARENT.#DACODART,#PARENT.#ACODART)&#26;&#26;(TIPORIGA=="CO")
JOIN ANAMAG INTO CODART==CODARTMAG
FROM PROVV=#PARENT.PROVV ANNO=#PARENT.ANNO CODNUM=#PARENT.CODNUM NDOC=#PARENT.NDOC
TO PROVV=#PARENT.PROVV ANNO=#PARENT.ANNO CODNUM=#PARENT.CODNUM NDOC=#PARENT.NDOC
</sql>
  <field x="2" y="1" type="Data" width="14" pattern="1">
   <font face="Courier New" bold="1" size="10" />
   <source>#PARENT.DATADOC</source>
  </field>
  <field x="50" y="1" type="Numero" align="right" width="12" pattern="1">
   <font face="Courier New" bold="1" size="10" />
   <source>#PARENT.NFASTA</source>
  </field>
  <field x="63" y="1" type="Stringa" width="3" pattern="1">
   <font face="Courier New" bold="1" size="10" />
   <source>RDOC.CODARTMAG</source>
  </field>
  <field x="67" y="1" type="Stringa" width="51" pattern="1">
   <font face="Courier New" bold="1" size="10" />
   <source>DESCR</source>
  </field>
  <field x="118" y="1" type="Numero" align="right" width="4" pattern="1">
   <font face="Courier New" bold="1" size="10" />
   <source>#PARENT.MERCATO</source>
  </field>
  <field x="123" y="1" type="Stringa" width="37" pattern="1">
   <font face="Courier New" bold="1" size="10" />
   <prescript description="B11.0 PRESCRIPT">MESSAGE _ISAMREAD,CLIFO,TIPOCF='C'!CODCF=#PARENT.MERCATO,RAGSOC</prescript>
  </field>
  <field x="160" y="1" type="Numero" align="right" width="8" pattern="1">
   <font face="Courier New" bold="1" size="10" />
   <source>RDOC.NDOC</source>
  </field>
  <field x="2" y="2" type="Testo" valign="bottom" width="12" pattern="1" text="Cooperativa:">
   <source>#PARENT.101@.CODCF</source>
  </field>
  <field x="12" y="2" type="Numero" valign="bottom" align="right" width="10" pattern="1" hide_zero="1" text="#######,@@">
   <source>RDOC.QTAGG1</source>
   <prescript description="B11.0 PRESCRIPT">MESSAGE ADD,F1.101</prescript>
  </field>
  <field x="25" y="2" type="Prezzo" valign="bottom" align="right" width="8" pattern="1" hide_zero="1" text="###.###.###,@@">
   <prescript description="B11.0 PRESCRIPT">"RDOC.PREZZONN" @
"ANAMAG.USER1" @
"X"
=
IF
  "QTA" @
  DUP
  0
  &#3C;&#3E;
  IF
    &#2F;
  THEN
THEN
#THIS !
</prescript>
  </field>
  <field x="37" y="2" type="Valuta" valign="bottom" align="right" width="10" pattern="1" text="###.###.###,@@">
   <source>RDOC.IMPCNN</source>
   <prescript description="B11.0 PRESCRIPT">MESSAGE ADD,F1.103</prescript>
  </field>
  <field x="55" y="2" type="Valuta" valign="bottom" align="right" width="15" pattern="1" hide_zero="1" text="###.###.###,@@">
   <source>#PARENT.SPESMER</source>
   <prescript description="B11.0 PRESCRIPT">#THIS @
-1 *
#THIS !
</prescript>
   <postscript description="B11.0 POSTSCRIPT">MESSAGE COPY,F11.109</postscript>
  </field>
  <field x="80" y="2" type="Testo" valign="bottom" width="15" pattern="1" text="Numero casse:">
   <source>N1</source>
  </field>
  <field x="93" y="2" type="Numero" valign="bottom" align="right" width="7" pattern="1" hide_zero="1" text="###,@@">
   <source>RDOC.NCOLLI</source>
   <prescript description="B11.0 PRESCRIPT">MESSAGE ADD,F1.108</prescript>
  </field>
  <field x="2" y="3" type="Testo" valign="bottom" width="10" pattern="1" text="Pescatore:">
   <source>#PARENT.101@.CODCF</source>
  </field>
  <field x="12" y="3" type="Numero" valign="bottom" align="right" width="10" pattern="1" hide_zero="1" text="#######,@@">
   <source>RDOC.QTA</source>
   <prescript description="B11.0 PRESCRIPT">MESSAGE ADD,F1.102</prescript>
  </field>
  <field x="25" y="3" type="Prezzo" valign="bottom" align="right" width="8" pattern="1" hide_zero="1" text="###.###.###,@@">
   <prescript description="B11.0 PRESCRIPT">"RDOC.PREZZONS" @
"ANAMAG.USER1" @
"X"
=
IF
  "QTA" @
  DUP
  0
  &#3C;&#3E;
  IF
    &#2F;
  THEN
THEN
#THIS !
</prescript>
  </field>
  <field x="37" y="3" type="Valuta" valign="bottom" align="right" width="10" pattern="1" text="###.###.###,@@">
   <source>RDOC.IMPCNS</source>
   <prescript description="B11.0 PRESCRIPT">MESSAGE ADD,F1.104</prescript>
  </field>
  <field x="55" y="3" type="Valuta" valign="bottom" align="right" width="15" pattern="1" hide_zero="1" text="###.###.###,@@">
   <source>#PARENT.SPESMER</source>
   <prescript description="B11.0 PRESCRIPT">#THIS @
-1 *
#THIS !
</prescript>
   <postscript description="B11.0 POSTSCRIPT">MESSAGE COPY,F11.110</postscript>
  </field>
  <field x="75" y="3" type="Valuta" valign="bottom" align="right" width="15" pattern="1" hide_zero="1" text="###.###.###,@@">
   <source>#PARENT.NETCRED</source>
   <prescript description="B11.0 PRESCRIPT">MESSAGE COPY,F11.105</prescript>
  </field>
  <field x="100" y="3" type="Stringa" valign="bottom" align="right" width="8" pattern="1">
   <source>RDOC.CODIVA</source>
   <prescript description="B11.0 PRESCRIPT">MESSAGE TABLEREAD,%IVA,#THIS,S1</prescript>
  </field>
  <field x="116" y="3" type="Valuta" valign="bottom" align="right" width="8" pattern="1" hide_zero="1" text="###.###.###,@@">
   <source>RDOC.IMPOSTA</source>
  </field>
  <field x="130" y="3" type="Valuta" valign="bottom" align="right" width="18" pattern="1" hide_zero="1" text="###.###.###,@@">
   <source>(RDOC.QTAGG1-RDOC.QTA)*RDOC.PREZZO</source>
   <prescript description="B11.0 PRESCRIPT">MESSAGE ADD,F1.106</prescript>
  </field>
  <field x="155" y="3" type="Valuta" valign="bottom" align="right" width="13" pattern="1" hide_zero="1" text="###.###.###,@@">
   <source>RDOC.SCONTOR</source>
   <prescript description="B11.0 PRESCRIPT">MESSAGE ADD,F1.107</prescript>
  </field>
  <field x="18" y="1" type="Stringa" width="4" id="100" pattern="1">
   <font face="Courier New" bold="1" size="10" />
   <source>#PARENT.CODCF</source>
  </field>
  <field x="23" y="1" type="Stringa" width="27" id="102" pattern="1">
   <font face="Courier New" bold="1" size="10" />
   <source>TRIM(20.RAGSOC[1,30])+' '+TRIM(20.RAGSOC[31,50])</source>
  </field>
 </section>
 <section type="Foot" level="11">
  <field x="46" type="Valuta" valign="bottom" hidden="1" align="right" width="15" id="105" pattern="1" hide_zero="1" text="###.###.###,@@">
   <prescript description="F11.105 PRESCRIPT">MESSAGE ADD,F1.105</prescript>
  </field>
  <field x="10" type="Valuta" valign="bottom" hidden="1" align="right" width="15" id="109" pattern="1" text="###.###.###,@@">
   <postscript description="F11.109 POSTSCRIPT">MESSAGE ADD,F1.109</postscript>
  </field>
  <field x="27" type="Valuta" valign="bottom" hidden="1" align="right" width="15" id="110" pattern="1" hide_zero="1" text="###.###.###,@@">
   <postscript description="F11.110 POSTSCRIPT">MESSAGE ADD,F1.110</postscript>
  </field>
 </section>
 <section type="Foot" />
 <section type="Foot" level="1">
  <field border="2" y="1" type="Linea" width="170" height="0" pattern="1" />
  <field x="2" y="2" type="Testo" valign="bottom" width="10" pattern="1" text="Totali   :">
   <source>RDOC.IMPCNS</source>
  </field>
  <field x="80" y="2" type="Testo" valign="bottom" width="15" pattern="1" text="Numero casse  :">
   <source>RDOC.IMPCNS</source>
  </field>
  <field x="12" y="2" type="Numero" valign="bottom" align="right" width="10" id="101" pattern="1" hide_zero="1" text="###.###,@@" />
  <field x="12" y="3" type="Numero" valign="bottom" align="right" width="10" id="102" pattern="1" hide_zero="1" text="###.###,@@" />
  <field x="37" y="2" type="Valuta" valign="bottom" align="right" width="10" id="103" pattern="1" hide_zero="1" text="###.###.###,@@" />
  <field x="37" y="3" type="Valuta" valign="bottom" align="right" width="10" id="104" pattern="1" hide_zero="1" text="###.###.###,@@" />
  <field x="75" y="3" type="Valuta" valign="bottom" align="right" width="15" id="105" pattern="1" hide_zero="1" text="###.###.###,@@" />
  <field x="130" y="3" type="Valuta" align="right" width="18" id="106" pattern="1" hide_zero="1" text="###.###.###,@@" />
  <field x="155" y="3" type="Valuta" align="right" width="13" id="107" pattern="1" hide_zero="1" text="###.###.###,@@" />
  <field x="93" y="2" type="Numero" valign="bottom" align="right" width="7" id="108" pattern="1" hide_zero="1" />
  <field x="55" y="2" type="Valuta" valign="bottom" align="right" width="15" id="109" pattern="1" hide_zero="1" text="###.###.###,@@" />
  <field x="55" y="3" type="Valuta" valign="bottom" align="right" width="15" id="110" pattern="1" hide_zero="1" text="###.###.###,@@" />
 </section>
 <sql>USE DOC 
SELECT (BETWEEN(DATADOC,#DADATA,#ADATA))&#26;&#26;(BETWEEN(G1:MERCATO,#DAMERCATO,#AMERCATO))&#26;&#26;(BETWEEN(CODCF,#DASOCIO,#ASOCIO))
JOIN 20 TO 33 INTO TIPOCF==TIPOCF CODCF==CODCF
FROM PROVV=D ANNO=#ANNO CODNUM=#CODNUM 
TO PROVV=D ANNO=#ANNO CODNUM=#CODNUM

</sql>
</report>