campo-sirio/ve/ve1500a.rep

101 lines
4.2 KiB
Plaintext
Raw Normal View History

<report name="ve1500a" lpi="6">
<description>Stampa di controllo documenti contabilizzati</description>
<font face="Courier New" size="8" />
<section type="Head">
<font face="Courier New" bold="1" size="8" />
</section>
<section type="Head" level="1" height="6">
<field border="1" radius="100" x="1" y="0.5" type="Testo" valign="center" align="center" shade_offset="25" width="90" height="2.5" text="STAMPA DI CONTROLLO DOCUMENTI CONTABILIZZATI">
<font face="Courier New" bold="1" size="16" />
</field>
<field border="2" y="4" type="Linea" width="90" height="0" pattern="1" />
<field x="1" y="4.5" type="Stringa" width="50" pattern="1">
<font italic="1" face="Courier New" bold="1" size="9" />
<source>#SYSTEM.RAGSOC</source>
</field>
<field x="79" y="4.5" type="Data" width="10" pattern="1">
<source>#SYSTEM.DATE</source>
</field>
<field x="157" y="4.5" type="Numero" align="right" width="3" pattern="1">
<source>#REPORT.PAGE</source>
</field>
</section>
<section repeat="1" type="Head" level="2">
<groupby>CODCAT</groupby>
<font face="Courier New" bold="1" size="8" />
<field x="1" type="Testo" width="6" pattern="1" text="Anno">
<font face="Courier New" bold="1" size="9" />
</field>
<field x="8" type="Numero" align="right" width="4" pattern="1">
<source>ANNO</source>
</field>
<field x="1" y="1" type="Testo" width="14" pattern="1" text="Numerazione">
<font face="Courier New" bold="1" size="9" />
</field>
<field x="15" y="1" type="Stringa" align="right" width="5" pattern="1">
<font face="Courier New" bold="1" size="9" />
<source>CODNUM</source>
</field>
<field x="21" y="1" type="Stringa" width="50" pattern="1">
<font face="Courier New" bold="1" size="9" />
<prescript description="H2.0 PRESCRIPT">MESSAGE TABLEREAD,%NUM,CODNUM,S0</prescript>
</field>
<field x="34" y="2.5" type="Testo" align="center" width="10" pattern="1" text="DOCUMENTO" />
<field x="62.5" y="2.5" type="Testo" align="center" width="10" pattern="1" text="MOVIMENTI" />
<field x="1" y="3.5" type="Testo" width="5" pattern="1" text="Tipo" />
<field x="7" y="3.5" type="Testo" align="right" width="8" pattern="1" text="Numero" />
<field x="16" y="3.5" type="Testo" align="center" width="10" pattern="1" text="Data" />
<field x="27" y="3.5" type="Testo" align="right" width="10" pattern="1" text="N. reg. CG" />
<field x="39" y="3.5" type="Testo" align="right" width="10" pattern="1" text="N. reg. CA" />
<field x="55.5" y="3.5" type="Testo" align="right" width="10" pattern="1" text="N. reg. CG" />
<field x="67" y="3.5" type="Testo" align="right" width="10" pattern="1" text="N. reg. CA" />
<field border="1" x="1" y="4.5" type="Linea" width="90" height="0" pattern="1" />
</section>
<section type="Body" />
<section type="Body" level="1">
<field x="1" type="Stringa" width="4" pattern="1">
<source>TIPODOC</source>
</field>
<field x="7" type="Numero" align="right" width="7" pattern="1">
<source>NDOC</source>
</field>
<field x="16" type="Data" width="10" pattern="1">
<source>DATADOC</source>
</field>
<field x="30" type="Numero" align="right" width="7" pattern="1" hide_zero="1">
<source>NUMREG</source>
</field>
<field x="42" type="Numero" align="right" width="7" pattern="1" hide_zero="1">
<source>NUMREGCA</source>
</field>
<field x="54.5" type="Stringa" align="right" width="11" pattern="1">
<source>23.NUMREG</source>
<prescript description="B1.0 PRESCRIPT">#THIS @
0 = IF
"Non trovato"
#THIS !
THEN</prescript>
</field>
<field x="66.5" type="Stringa" align="right" width="11" pattern="1">
<source>107.NUMREG</source>
<prescript description="B1.0 PRESCRIPT">#THIS @
0 = IF
"Non trovato"
#THIS !
THEN</prescript>
</field>
</section>
<section type="Foot" />
<section type="Foot" level="1" />
<section type="Foot" level="2" height="1">
<field border="1" x="1" y="0.5" type="Linea" width="90" height="0" pattern="1" />
</section>
<sql>USE DOC
SELECT ((NUMREG!='')||(NUMREGCA!=''))&#26;&#26;((23-&#3E;NUMREG!=NUMREG)||(107-&#3E;NUMREG!=NUMREGCA))
JOIN MOV INTO NUMREG==NUMREG
JOIN MOVANA INTO NUMREG==NUMREGCA
FROM PROVV='D' CODNUM=#CODNUM ANNO=#ANNO
TO PROVV='D' CODNUM=#CODNUM ANNO=#ANNO
</sql>
</report>