<report libraries="ve1300" name="ca3600a" orientation="2" lpi="8" class="ca3600a">
 <description>Pagato CA</description>
 <font face="Courier New" size="8" />
 <section type="Head" height="5">
  <font italic="1" face="Courier New" bold="1" size="8" />
  <field x="1" type="Stringa" width="50" pattern="1">
   <font italic="1" face="Courier New" bold="1" size="10" />
   <source>#SYSTEM.RAGSOC</source>
  </field>
  <field x="80" type="Data" width="10" pattern="1">
   <source>#SYSTEM.DATE</source>
  </field>
  <field x="155" type="Numero" align="right" width="3" pattern="1">
   <source>#REPORT.PAGE</source>
  </field>
  <field border="2" x="1" y="2" type="Linea" width="160" height="0" pattern="1" />
  <field x="1" y="3.5" type="Testo" align="right" width="7" pattern="1" text="N. Reg." />
  <field x="10" y="3.5" type="Testo" align="center" width="11" pattern="1" text="Data reg." />
  <field x="21" y="3.5" type="Testo" align="center" width="11" pattern="1" text="Data pag." />
  <field x="33" y="3.5" type="Testo" width="25" pattern="1" text="Descrizione pagamento" />
  <field x="79" y="3.5" type="Testo" align="center" width="7" pattern="1" text="N. doc." />
  <field x="94" y="3.5" type="Testo" align="center" width="10" pattern="1" text="Data doc." />
  <field x="107.5" y="3.5" type="Testo" width="5" pattern="1" text="Prot." />
  <field x="114" y="3.5" type="Testo" align="right" width="15" pattern="1" text="Tot. documento" />
  <field x="130" y="3.5" type="Testo" align="right" width="15" pattern="1" text="Tot. pagamento" />
  <field x="146" y="3.5" type="Testo" align="right" width="15" pattern="1" text="Tot. residuo" />
  <field border="1" x="1" y="4.5" type="Linea" width="160" height="0" pattern="1" />
 </section>
 <section type="Head" level="1" height="9">
  <prescript description="H1 PRESCRIPT">MESSAGE RESET,F1.101
MESSAGE RESET,F1.102</prescript>
  <field border="1" radius="100" x="1" type="Testo" valign="center" align="center" shade_offset="25" width="158" height="2.5" text="PAGATO PER COMMESSA &#2F; FORNITORE">
   <font face="Courier New" bold="1" size="16" />
  </field>
  <field x="1" y="3" type="Testo" width="18" pattern="1" text="Centro di Costo:" />
  <field x="14" y="3" type="Stringa" width="23" pattern="1">
   <font face="Courier New" bold="1" size="8" />
   <source>#COSTO</source>
   <prescript description="H1.0 PRESCRIPT">CA_FORMAT_COSTO</prescript>
  </field>
  <field x="38" y="3" type="Stringa" width="50" pattern="1">
   <font face="Courier New" bold="1" size="8" />
   <prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,CDC,CODCOSTO=#COSTO,DESCRIZ</prescript>
  </field>
  <field x="110" y="3" type="Testo" width="14" pattern="1" text="Anno:" />
  <field x="126" y="3" type="Stringa" width="4" pattern="1">
   <font face="Courier New" bold="1" size="8" />
   <prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,ANNO</prescript>
  </field>
  <field x="140" y="3" type="Testo" width="17" pattern="1" text="Regime IVA:" />
  <field x="157" y="3" type="Stringa" width="2" pattern="1">
   <font face="Courier New" bold="1" size="8" />
   <prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,REGIVA</prescript>
  </field>
  <field x="14" y="4.5" type="Stringa" width="23" pattern="1">
   <font face="Courier New" bold="1" size="8" />
   <source>#COMMESSA</source>
   <prescript description="H1.0 PRESCRIPT">CA_FORMAT_COMMESSA</prescript>
  </field>
  <field x="38" y="4.5" type="Stringa" width="50" pattern="1">
   <font face="Courier New" bold="1" size="8" />
   <prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,DESCRIZ</prescript>
  </field>
  <field x="110" y="4.5" type="Testo" width="14" pattern="1" text="Data inizio:" />
  <field x="126" y="4.5" type="Data" width="10" pattern="1">
   <font face="Courier New" bold="1" size="8" />
   <prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,DATAINIZIO</prescript>
  </field>
  <field x="140" y="4.5" type="Testo" width="17" pattern="1" text="Da rendicontare:" />
  <field x="157" y="4.5" type="Stringa" width="1" pattern="1">
   <font face="Courier New" bold="1" size="8" />
   <prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,RENDIC</prescript>
  </field>
  <field x="1" y="4.58" type="Testo" width="9" pattern="1" text="Commessa:" />
  <field x="14" y="6" type="Stringa" width="13" pattern="1">
   <font face="Courier New" bold="1" size="8" />
   <source>#FASE</source>
   <prescript description="H1.0 PRESCRIPT">CA_FORMAT_FASE</prescript>
  </field>
  <field x="38" y="6" type="Stringa" width="50" pattern="1">
   <font face="Courier New" bold="1" size="8" />
   <prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,FASI,CODFASE=#FASE,DESCRIZ</prescript>
  </field>
  <field x="110" y="6" type="Testo" width="14" pattern="1" text="Fine prevista:" />
  <field x="126" y="6" type="Data" width="10" pattern="1">
   <font face="Courier New" bold="1" size="8" />
   <prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,DATAFINE</prescript>
  </field>
  <field x="140" y="6" type="Testo" width="17" pattern="1" text="Chiusa:" />
  <field x="157" y="6" type="Stringa" width="1" pattern="1">
   <font face="Courier New" bold="1" size="8" />
   <prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,CHIUSA</prescript>
  </field>
  <field x="1" y="6.08" type="Testo" width="5" pattern="1" text="Fase:" />
  <field x="1" y="7.5" type="Testo" width="18" pattern="1" text="Cliente principale:" />
  <field x="110" y="7.5" type="Testo" width="14" pattern="1" text="Fine proroga:" />
  <field x="126" y="7.5" type="Data" width="10" pattern="1">
   <font face="Courier New" bold="1" size="8" />
   <prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,DATAPROR</prescript>
  </field>
  <field x="140" y="7.5" type="Testo" width="17" pattern="1" text="Prorogata:" />
  <field x="157" y="7.5" type="Stringa" width="1" pattern="1">
   <font face="Courier New" bold="1" size="8" />
   <prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,PROROGA</prescript>
  </field>
  <field border="2" x="1" y="9" type="Linea" width="159" height="0" pattern="1" />
  <field x="20" y="7.5" type="Stringa" width="6" id="101" pattern="1">
   <font face="Courier New" bold="1" size="8" />
   <prescript description="H1.101 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,CODCF</prescript>
  </field>
  <field x="30" y="7.5" type="Stringa" width="50" id="102" pattern="1">
   <font face="Courier New" bold="1" size="8" />
   <prescript description="H1.102 PRESCRIPT">MESSAGE ISAMREAD,CLIFO,TIPOCF=C!CODCF=#101,RAGSOC</prescript>
  </field>
 </section>
 <section repeat="1" type="Head" level="2" height="2">
  <groupby>CODFORN</groupby>
  <font italic="1" face="Courier New" size="8" />
  <prescript description="H2 PRESCRIPT">MESSAGE RESET,F2.101
MESSAGE RESET,F2.102
MESSAGE RESET,F2.103</prescript>
  <field x="1" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="7" hide_zero="1">
   <font italic="1" face="Courier New" bold="1" size="8" />
   <source>CODFORN</source>
  </field>
  <field x="8" y="0.5" type="Stringa" bg_color="#C0C0C0" width="50">
   <font italic="1" face="Courier New" bold="1" size="8" />
   <source>DESFORN</source>
  </field>
 </section>
 <section type="Head" level="3">
  <groupby>FSC</groupby>
  <font italic="1" face="Courier New" bold="1" size="8" />
  <prescript description="H3 PRESCRIPT">MESSAGE RESET,F3.101
MESSAGE RESET,F3.102
MESSAGE RESET,F3.103</prescript>
  <field x="1" type="Stringa" width="10" pattern="1">
   <source>FSC</source>
   <prescript description="H3.0 PRESCRIPT">MESSAGE RESET,F3.101
MESSAGE RESET,F3.102
MESSAGE RESET,F3.103</prescript>
  </field>
 </section>
 <section type="Body" />
 <section type="Body" level="1">
  <condition>HIDDEN!='X'</condition>
  <field x="9" type="Data" width="10" pattern="1">
   <source>DATAREG</source>
  </field>
  <field x="21" type="Data" width="10" pattern="1">
   <source>DATAPAG</source>
  </field>
  <field x="33" type="Stringa" width="50" pattern="1">
   <source>DESCRPAG</source>
  </field>
  <field x="84" type="Stringa" width="7" pattern="1">
   <source>NDOC</source>
  </field>
  <field x="94" type="Data" width="10" pattern="1">
   <source>DATADOC</source>
  </field>
  <field x="107" type="Numero" align="right" width="5" pattern="1">
   <source>PROT</source>
  </field>
  <field x="114" type="Valuta" align="right" width="15" pattern="1" text="###.###.###,@@">
   <source>TOTDOC</source>
   <postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F2.101
MESSAGE ADD,F3.101</postscript>
  </field>
  <field x="130" type="Valuta" align="right" width="15" pattern="1" text="###.###.###,@@">
   <source>TOTPAG</source>
   <postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F2.102
MESSAGE ADD,F3.102</postscript>
  </field>
  <field x="146" type="Valuta" align="right" width="15" pattern="1" hide_zero="1" text="###.###.###,@@">
   <source>TOTRES</source>
   <postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F2.103
MESSAGE ADD,F3.103</postscript>
  </field>
  <field type="Numero" hidden="1" align="right" width="1" id="100" pattern="1">
   <prescript description="B1.100 PRESCRIPT">#THIS @
  0 &#3E;
  IF
    #101 DISABLE
    #102 DISABLE
    #103 DISABLE
    #104 DISABLE
    #105 DISABLE
  ELSE
    #101 ENABLE
    #102 ENABLE
    #103 ENABLE
    #104 ENABLE
    #105 ENABLE
  THEN
#THIS @ 
1 +
#THIS !</prescript>
  </field>
  <field x="1" type="Stringa" align="right" width="7" id="105" pattern="1">
   <source>NREG</source>
  </field>
 </section>
 <section type="Foot" />
 <section type="Foot" level="1">
  <field border="2" x="1" y="0.5" type="Linea" width="160" height="0" pattern="1" />
  <field x="73" y="1" type="Testo" width="30" pattern="1" text="TOTALE PER COMMESSA:">
   <font face="Courier New" bold="1" size="8" />
  </field>
  <field x="114" y="1" type="Valuta" align="right" width="15" id="101" pattern="1" text="###.###.###,@@">
   <font face="Courier New" bold="1" size="8" />
  </field>
  <field x="130" y="1" type="Valuta" align="right" width="15" id="102" pattern="1" text="###.###.###,@@">
   <font face="Courier New" bold="1" size="8" />
  </field>
  <field x="146" y="1" type="Valuta" align="right" width="15" id="103" pattern="1" text="###.###.###,@@">
   <font face="Courier New" bold="1" size="8" />
  </field>
 </section>
 <section type="Foot" level="2" height="2.5">
  <field border="1" x="1" y="0.5" type="Linea" width="160" height="0" pattern="1" />
  <field x="80" y="1" type="Testo" width="25" pattern="1" text="Totale per fornitore:">
   <font face="Courier New" bold="1" size="8" />
  </field>
  <field x="114" y="1" type="Valuta" align="right" width="15" id="101" pattern="1" text="###.###.###,@@">
   <font face="Courier New" bold="1" size="8" />
   <postscript description="F2.101 POSTSCRIPT">MESSAGE ADD,F1.101</postscript>
  </field>
  <field x="130" y="1" type="Valuta" align="right" width="15" id="102" pattern="1" text="###.###.###,@@">
   <font face="Courier New" bold="1" size="8" />
   <postscript description="F2.102 POSTSCRIPT">MESSAGE ADD,F1.102</postscript>
  </field>
  <field x="146" y="1" type="Valuta" align="right" width="15" id="103" pattern="1" text="###.###.###,@@">
   <font face="Courier New" bold="1" size="8" />
   <postscript description="F2.103 POSTSCRIPT">MESSAGE ADD,F1.103</postscript>
  </field>
 </section>
 <section type="Foot" level="3">
  <prescript description="F3 PRESCRIPT">0 #B1.100 !</prescript>
  <field x="80" y="0.5" type="Testo" width="20" pattern="1" text="Totale per fase:">
   <font face="Courier New" bold="1" size="8" />
  </field>
  <field x="114" y="0.5" type="Valuta" align="right" width="15" id="101" pattern="1" text="###.###.###,@@">
   <font face="Courier New" bold="1" size="8" />
  </field>
  <field x="130" y="0.5" type="Valuta" align="right" width="15" id="102" pattern="1" text="###.###.###,@@">
   <font face="Courier New" bold="1" size="8" />
  </field>
  <field x="146" y="0.5" type="Valuta" align="right" width="15" id="103" pattern="1" text="###.###.###,@@">
   <font face="Courier New" bold="1" size="8" />
  </field>
 </section>
 <sql>USE 1000</sql>
</report>