campo-sirio/src/ps/LIF/custom/fat_con_an.rep

404 lines
18 KiB
Plaintext
Raw Normal View History

<?xml version="1.0" encoding="UTF-8" ?>
<report name="fat_con_an" orientation="2" lpi="6">
<description>report fatturato per anno con confronto</description>
<font face="Courier New" size="8" />
<section type="Head" pattern="1">
<field type="Stringa" width="40" pattern="1">
<font face="Arial" bold="1" size="10" />
<source>#SYSTEM.RAGSOC</source>
</field>
<field x="119.5" type="Data" width="25.5" pattern="1" text="Data Stampa: ">
<font face="Arial" size="10" />
<source>#SYSTEM.DATE</source>
</field>
<field x="146" type="Stringa" align="right" width="10" pattern="1" text="Pag:">
<source>#PAGE</source>
</field>
<field x="156.12" type="Testo" width="1" pattern="1" text="&#2F;" />
<field x="157" type="Numero" align="right" width="3" pattern="1">
<source>#BOOKPAGES</source>
</field>
<field x="35.5" y="1.5" type="Testo" align="center" width="79.5" pattern="1" text="STATISTICA FATTURATO DIVISA PER CLIENTE">
<font face="Arial" bold="1" size="10" />
</field>
<field x="109" y="1.5" type="Testo" align="center" width="6" pattern="1" text="ANNI:">
<font face="Arial" bold="1" size="10" />
</field>
<field x="115.5" y="1.5" type="Stringa" width="5" pattern="1">
<font face="Arial" size="10" />
<source>#DAANNO</source>
</field>
<field x="121" y="1.5" type="Testo" width="1" pattern="1" text="-" />
<field x="123" y="1.5" type="Stringa" width="5" pattern="1">
<font face="Arial" size="10" />
<source>#ADANNO</source>
</field>
<field x="0.25" y="3.7" type="Testo" width="13.5" pattern="1" text="Ragione Soc.">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="14.75" y="3.75" type="Testo" align="center" width="5" pattern="1" text="Anno">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="20" y="3.75" type="Testo" align="center" width="11" pattern="1" text="Gen">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="31" y="3.75" type="Testo" align="center" width="11" pattern="1" text="Feb">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="42" y="3.75" type="Testo" align="center" width="11" pattern="1" text="Mar">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="53" y="3.75" type="Testo" align="center" width="11" pattern="1" text="Apr">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="64" y="3.75" type="Testo" align="center" width="11" pattern="1" text="Mag">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="75" y="3.75" type="Testo" align="center" width="11" pattern="1" text="Giu">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="86" y="3.75" type="Testo" align="center" width="11" pattern="1" text="Lug">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="97" y="3.75" type="Testo" align="center" width="11" pattern="1" text="Ago">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="108" y="3.75" type="Testo" align="center" width="11" pattern="1" text="Set">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="119" y="3.75" type="Testo" align="center" width="11" pattern="1" text="Ott">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="130" y="3.75" type="Testo" align="center" width="10" pattern="1" text="Nov">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="141" y="3.75" type="Testo" align="center" width="11" pattern="1" text="Dic">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="152" y="3.75" type="Testo" align="center" width="14" pattern="1" text="TOTALI">
<font face="Courier New" bold="1" size="8" />
</field>
<field border="1" x="0.04" y="4.75" type="Linea" hidden="1" width="168" height="0" pattern="1" />
</section>
<section type="Head" level="1" pattern="1">
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1</prescript>
</section>
<section repeat="1" keep_with_next="1" type="Head" level="2" pattern="1">
<groupby>33.CODCF</groupby>
<prescript description="H2 PRESCRIPT">MESSAGE RESET,F2.1|RESET,F2.2|RESET,F2.3
MESSAGE RESET,F2.4|RESET,F2.5|RESET,F2.6
MESSAGE RESET,F2.7|RESET,F2.8|RESET,F2.9
MESSAGE RESET,F2.10|RESET,F2.11|RESET,F2.12|RESET,F2.13</prescript>
<field border="1" type="Rettangolo" bg_color="#DDFFDD" width="167.1" pattern="2" />
<field x="73" type="Stringa" width="4" pattern="1">
<source>20.COMCF</source>
</field>
<field x="79" type="Stringa" width="5" pattern="1">
<source>20.CAPCF</source>
</field>
<field x="1" type="Testo" width="10" id="1" pattern="1" text="Cliente:">
<font italic="1" face="Courier New" size="8" />
</field>
<field x="11" type="Numero" align="right" width="8" id="10" pattern="1" text="@@@@@@">
<source>33.CODCF</source>
</field>
<field x="21" type="Stringa" width="50" id="20" pattern="1">
<font face="Courier New" bold="1" size="8" />
<prescript description="H2.20 PRESCRIPT">MESSAGE ISAMREAD,20,TIPOCF='C'!CODCF=#10,RAGSOC</prescript>
</field>
</section>
<section keep_with_next="1" type="Head" level="3" pattern="1">
<groupby>ANNO</groupby>
<prescript description="H3 PRESCRIPT">MESSAGE RESET,F3.1|RESET,F3.2|RESET,F3.3
MESSAGE RESET,F3.4|RESET,F3.5|RESET,F3.6
MESSAGE RESET,F3.7|RESET,F3.8|RESET,F3.9
MESSAGE RESET,F3.10|RESET,F3.11|RESET,F3.12|RESET,F3.13</prescript>
<field x="1" type="Stringa" hidden="1" width="10" id="10" pattern="1">
<source>33.ANNO[3,4]</source>
</field>
</section>
<section type="Body" pattern="1" />
<section type="Body" level="1" hidden="1" pattern="1">
<field type="Data" width="9" pattern="1">
<source>33.DATADOC</source>
</field>
<field x="14" type="Stringa" width="4" pattern="1">
<source>TIPODOC</source>
</field>
<field x="10" type="Stringa" width="4" id="1" pattern="1">
<source>IF(TIPODOC[1,1]='N',-1,1)</source>
</field>
<field x="20" type="Stringa" align="right" width="11" id="101" pattern="1">
<source>ROUND(IF(33.DATADOC[4,5]='01',G1:IMPONIBILI,0)*#1,2)</source>
<prescript description="B1.101 PRESCRIPT">MESSAGE ADD,F3.1</prescript>
</field>
<field x="31" type="Stringa" align="right" width="11" id="102" pattern="1">
<source>ROUND(IF(33.DATADOC[4,5]='02',G1:IMPONIBILI,0)*#1,2)</source>
<prescript description="B1.102 PRESCRIPT">MESSAGE ADD,F3.2</prescript>
</field>
<field x="42" type="Stringa" align="right" width="11" id="103" pattern="1">
<source>ROUND(IF(33.DATADOC[4,5]='03',G1:IMPONIBILI,0)*#1,2)</source>
<prescript description="B1.103 PRESCRIPT">MESSAGE ADD,F3.3</prescript>
</field>
<field x="53" type="Stringa" align="right" width="11" id="104" pattern="1">
<source>ROUND(IF(33.DATADOC[4,5]='04',G1:IMPONIBILI,0)*#1,2)</source>
<prescript description="B1.104 PRESCRIPT">MESSAGE ADD,F3.4</prescript>
</field>
<field x="64" type="Stringa" align="right" width="11" id="105" pattern="1">
<source>ROUND(IF(33.DATADOC[4,5]='05',G1:IMPONIBILI,0)*#1,2)</source>
<prescript description="B1.105 PRESCRIPT">MESSAGE ADD,F3.5</prescript>
</field>
<field x="75" type="Stringa" align="right" width="11" id="106" pattern="1">
<source>ROUND(IF(33.DATADOC[4,5]='06',G1:IMPONIBILI,0)*#1,2)</source>
<prescript description="B1.106 PRESCRIPT">MESSAGE ADD,F3.6</prescript>
</field>
<field x="86" type="Stringa" align="right" width="11" id="107" pattern="1">
<source>ROUND(IF(33.DATADOC[4,5]='07',G1:IMPONIBILI,0)*#1,2)</source>
<prescript description="B1.107 PRESCRIPT">MESSAGE ADD,F3.7</prescript>
</field>
<field x="97" type="Stringa" align="right" width="11" id="108" pattern="1">
<source>ROUND(IF(33.DATADOC[4,5]='08',G1:IMPONIBILI,0)*#1,2)</source>
<prescript description="B1.108 PRESCRIPT">MESSAGE ADD,F3.8</prescript>
</field>
<field x="108" type="Stringa" align="right" width="11" id="109" pattern="1">
<source>ROUND(IF(33.DATADOC[4,5]='09',G1:IMPONIBILI,0)*#1,2)</source>
<prescript description="B1.109 PRESCRIPT">MESSAGE ADD,F3.9</prescript>
</field>
<field x="119" type="Stringa" align="right" width="11" id="110" pattern="1">
<source>ROUND(IF(33.DATADOC[4,5]='10',G1:IMPONIBILI,0)*#1,2)</source>
<prescript description="B1.110 PRESCRIPT">MESSAGE ADD,F3.10</prescript>
</field>
<field x="130" type="Stringa" align="right" width="11" id="111" pattern="1">
<source>ROUND(IF(33.DATADOC[4,5]='11',G1:IMPONIBILI,0)*#1,2)</source>
<prescript description="B1.111 PRESCRIPT">MESSAGE ADD,F3.11</prescript>
</field>
<field x="141" type="Stringa" align="right" width="11" id="112" pattern="1">
<source>ROUND(IF(33.DATADOC[4,5]='12',G1:IMPONIBILI,0)*#1,2)</source>
<prescript description="B1.112 PRESCRIPT">MESSAGE ADD,F3.12</prescript>
</field>
</section>
<section type="Foot" pattern="1" />
<section type="Foot" level="1" pattern="1">
<font face="Courier New" bold="1" size="8" />
<field border="1" y="0.25" type="Linea" width="168" height="0" pattern="1" />
<field y="0.5" type="Stringa" hidden="1" align="right" width="1" pattern="1">
<source>#ADANNO-#DAANNO</source>
<prescript description="F1.0 PRESCRIPT">#THIS @
0 = IF
"F1" SHOW
ELSE
"F1" HIDE
THEN</prescript>
</field>
<field x="1" y="0.5" type="Stringa" width="19" pattern="1">
<source>"TOTALE GENERALE"</source>
</field>
<field border="1" x="20" y="0.5" type="Linea" pattern="1" />
<field border="1" x="31" y="0.5" type="Linea" pattern="1" />
<field border="1" x="42" y="0.5" type="Linea" pattern="1" />
<field border="1" x="53" y="0.5" type="Linea" pattern="1" />
<field border="1" x="64" y="0.5" type="Linea" pattern="1" />
<field border="1" x="75" y="0.5" type="Linea" pattern="1" />
<field border="1" x="86" y="0.5" type="Linea" pattern="1" />
<field border="1" x="97" y="0.5" type="Linea" pattern="1" />
<field border="1" x="108" y="0.5" type="Linea" pattern="1" />
<field border="1" x="119" y="0.5" type="Linea" pattern="1" />
<field border="1" x="130" y="0.5" type="Linea" pattern="1" />
<field border="1" x="141" y="0.5" type="Linea" pattern="1" />
<field border="1" x="152" y="0.5" type="Linea" pattern="1" />
<field border="1" x="167" y="0.5" type="Linea" pattern="1" />
<field x="20" y="0.5" type="Valuta" align="right" width="11" id="1" pattern="1" text="###.###.###,@@" />
<field x="31" y="0.5" type="Valuta" align="right" width="11" id="2" pattern="1" text="###.###.###,@@" />
<field x="42" y="0.5" type="Valuta" align="right" width="11" id="3" pattern="1" text="###.###.###,@@" />
<field x="53" y="0.5" type="Valuta" align="right" width="11" id="4" pattern="1" text="###.###.###,@@" />
<field x="64" y="0.5" type="Valuta" align="right" width="11" id="5" pattern="1" text="###.###.###,@@" />
<field x="75" y="0.5" type="Valuta" align="right" width="11" id="6" pattern="1" text="###.###.###,@@" />
<field x="86" y="0.5" type="Valuta" align="right" width="11" id="7" pattern="1" text="###.###.###,@@" />
<field x="97" y="0.5" type="Valuta" align="right" width="11" id="8" pattern="1" text="###.###.###,@@" />
<field x="108" y="0.5" type="Valuta" align="right" width="11" id="9" pattern="1" text="###.###.###,@@" />
<field x="119" y="0.5" type="Valuta" align="right" width="11" id="10" pattern="1" text="###.###.###,@@" />
<field x="130" y="0.5" type="Valuta" align="right" width="11" id="11" pattern="1" text="###.###.###,@@" />
<field x="141" y="0.5" type="Valuta" align="right" width="11" id="12" pattern="1" text="###.###.###,@@" />
<field x="152" y="0.5" type="Valuta" align="right" width="15" id="13" pattern="1" text="###.###.###,@@">
<prescript description="F1.13 PRESCRIPT">#1 @
#2 @
+
#3 @
+
#4 @
+
#5 @
+
#6 @
+
#7 @
+
#8 @
+
#9 @
+
#10 @
+
#11 @
+
#12 @
+
#THIS !</prescript>
</field>
</section>
<section type="Foot" level="2" hidden="1" bg_color="#DDFFDD" pattern="2">
<field y="0.25" type="Stringa" width="19" pattern="1">
<font face="Arial" size="7" />
<source>#H2.20</source>
</field>
<field border="1" x="20" y="0.25" type="Linea" pattern="1" />
<field border="1" x="31" y="0.25" type="Linea" pattern="1" />
<field border="1" x="42" y="0.25" type="Linea" pattern="1" />
<field border="1" x="53" y="0.25" type="Linea" pattern="1" />
<field border="1" x="64" y="0.25" type="Linea" pattern="1" />
<field border="1" x="75" y="0.25" type="Linea" pattern="1" />
<field border="1" x="86" y="0.25" type="Linea" pattern="1" />
<field border="1" x="97" y="0.25" type="Linea" pattern="1" />
<field border="1" x="108" y="0.25" type="Linea" pattern="1" />
<field border="1" x="119" y="0.25" type="Linea" pattern="1" />
<field border="1" x="130" y="0.25" type="Linea" pattern="1" />
<field border="1" x="141" y="0.25" type="Linea" pattern="1" />
<field border="1" x="152" y="0.25" type="Linea" pattern="1" />
<field border="1" x="167" y="0.25" type="Linea" pattern="1" />
<field border="1" y="1.5" type="Linea" width="168" height="0" pattern="1" />
<field x="20" y="0.25" type="Valuta" align="right" width="11" id="1" pattern="1" text="###.###.###,@@" />
<field x="31" y="0.25" type="Valuta" align="right" width="11" id="2" pattern="1" text="###.###.###,@@" />
<field x="42" y="0.25" type="Valuta" align="right" width="11" id="3" pattern="1" text="###.###.###,@@" />
<field x="53" y="0.25" type="Valuta" align="right" width="11" id="4" pattern="1" text="###.###.###,@@" />
<field x="64" y="0.25" type="Valuta" align="right" width="11" id="5" pattern="1" text="###.###.###,@@" />
<field x="75" y="0.25" type="Valuta" align="right" width="11" id="6" pattern="1" text="###.###.###,@@" />
<field x="86" y="0.25" type="Valuta" align="right" width="11" id="7" pattern="1" text="###.###.###,@@" />
<field x="97" y="0.25" type="Valuta" align="right" width="11" id="8" pattern="1" text="###.###.###,@@" />
<field x="108" y="0.25" type="Valuta" align="right" width="11" id="9" pattern="1" text="###.###.###,@@" />
<field x="119" y="0.25" type="Valuta" align="right" width="11" id="10" pattern="1" text="###.###.###,@@" />
<field x="130" y="0.25" type="Valuta" align="right" width="11" id="11" pattern="1" text="###.###.###,@@" />
<field x="141" y="0.25" type="Valuta" align="right" width="11" id="12" pattern="1" text="###.###.###,@@" />
<field x="152" y="0.25" type="Valuta" align="right" width="15" id="13" pattern="1" text="###.###.###,@@">
<prescript description="F2.13 PRESCRIPT">#1 @
#2 @
+
#3 @
+
#4 @
+
#5 @
+
#6 @
+
#7 @
+
#8 @
+
#9 @
+
#10 @
+
#11 @
+
#12 @
+
#THIS !</prescript>
</field>
</section>
<section type="Foot" level="3" pattern="2">
<field x="16" type="Stringa" width="2" pattern="1">
<source>#H3.10</source>
</field>
<field border="1" x="20" type="Linea" pattern="1" />
<field border="1" x="31" type="Linea" pattern="1" />
<field border="1" x="42" type="Linea" pattern="1" />
<field border="1" x="53" type="Linea" pattern="1" />
<field border="1" x="64" type="Linea" pattern="1" />
<field border="1" x="75" type="Linea" pattern="1" />
<field border="1" x="86" type="Linea" pattern="1" />
<field border="1" x="97" type="Linea" pattern="1" />
<field border="1" x="108" type="Linea" pattern="1" />
<field border="1" x="119" type="Linea" pattern="1" />
<field border="1" x="130" type="Linea" pattern="1" />
<field border="1" x="141" type="Linea" pattern="1" />
<field border="1" x="152" type="Linea" pattern="1" />
<field border="1" x="167" type="Linea" pattern="1" />
<field x="20" type="Valuta" align="right" width="11" codval="33.CODVAL" id="1" pattern="1" text="###.###.###,@@">
<prescript description="F3.1 PRESCRIPT">MESSAGE ADD,F2.1
MESSAGE ADD,F1.1</prescript>
</field>
<field x="31" type="Valuta" align="right" width="11" id="2" pattern="1" text="###.###.###,@@">
<prescript description="F3.2 PRESCRIPT">MESSAGE ADD,F2.2
MESSAGE ADD,F1.2</prescript>
</field>
<field x="42" type="Valuta" align="right" width="11" id="3" pattern="1" text="###.###.###,@@">
<prescript description="F3.3 PRESCRIPT">MESSAGE ADD,F2.3
MESSAGE ADD,F1.3</prescript>
</field>
<field x="53" type="Valuta" align="right" width="11" id="4" pattern="1" text="###.###.###,@@">
<prescript description="F3.4 PRESCRIPT">MESSAGE ADD,F2.4
MESSAGE ADD,F1.4</prescript>
</field>
<field x="64" type="Valuta" align="right" width="11" id="5" pattern="1" text="###.###.###,@@">
<prescript description="F3.5 PRESCRIPT">MESSAGE ADD,F2.5
MESSAGE ADD,F1.5</prescript>
</field>
<field x="75" type="Valuta" align="right" width="11" id="6" pattern="1" text="###.###.###,@@">
<prescript description="F3.6 PRESCRIPT">MESSAGE ADD,F2.6
MESSAGE ADD,F1.6</prescript>
</field>
<field x="86" type="Valuta" align="right" width="11" id="7" pattern="1" text="###.###.###,@@">
<prescript description="F3.7 PRESCRIPT">MESSAGE ADD,F2.7
MESSAGE ADD,F1.7</prescript>
</field>
<field x="97" type="Valuta" align="right" width="11" id="8" pattern="1" text="###.###.###,@@">
<prescript description="F3.8 PRESCRIPT">MESSAGE ADD,F2.8
MESSAGE ADD,F1.8</prescript>
</field>
<field x="108" type="Valuta" align="right" width="11" id="9" pattern="1" text="###.###.###,@@">
<prescript description="F3.9 PRESCRIPT">MESSAGE ADD,F2.9
MESSAGE ADD,F1.9</prescript>
</field>
<field x="119" type="Valuta" align="right" width="11" id="10" pattern="1" text="###.###.###,@@">
<prescript description="F3.10 PRESCRIPT">MESSAGE ADD,F2.10
MESSAGE ADD,F1.10</prescript>
</field>
<field x="130" type="Valuta" align="right" width="11" id="11" pattern="1" text="###.###.###,@@">
<prescript description="F3.11 PRESCRIPT">MESSAGE ADD,F2.11
MESSAGE ADD,F1.11</prescript>
</field>
<field x="141" type="Valuta" align="right" width="11" id="12" pattern="1" text="###.###.###,@@">
<prescript description="F3.12 PRESCRIPT">MESSAGE ADD,F2.12
MESSAGE ADD,F1.12</prescript>
</field>
<field x="152" type="Valuta" align="right" width="15" id="13" pattern="1" text="###.###.###,@@">
<prescript description="F3.13 PRESCRIPT">#1 @
#2 @
+
#3 @
+
#4 @
+
#5 @
+
#6 @
+
#7 @
+
#8 @
+
#9 @
+
#10 @
+
#11 @
+
#12 @
+
#THIS !</prescript>
</field>
</section>
<sql>USE DOC KEY 3 SELECT ((CODNUM='F01')||(CODNUM='F02'))&#26;&#26;(ANNO&#3E;=#DAANNO)&#26;&#26;(ANNO&#3C;=#ADANNO)&#26;&#26;((CODCF=#CLISEL)||(#CLISEL=''))&#26;&#26;(BETWEEN(DATADOC,#DADATA,#ADATA))
BY CODCF ANNO DATADOC
JOIN 20 INTO TIPOCF==TIPOCF CODCF==CODCF</sql>
</report>