campo-sirio/ca/ca3300b.rep
luca 46f28fb4f8 Patch level :10.0 530
Files correlati     :
Ricompilazione Demo : [ ]
Commento            :
0001504: bilancio a sezioni contrapposte
Descrizione  sulla stampa del bilancio a sezioni contrapposte delle commesse:

l'esposizione dovrà partire dal conto economico, la dicitura bilancio dovrà essere sostituita con conto economico o situazione conto economico;
per quello che riguarda gli eventuali conti non patrimoniali la sezione dovrà chiamarsi riepilogo conti patrimoniali, dovrà contenere dei totali di sezione ed eventualmente un delta risultante dalla somma algebrica di attività e passività.


git-svn-id: svn://10.65.10.50/trunk@19648 c028cbd2-c16b-5b4b-a496-9718f37d4682
2009-11-18 11:24:42 +00:00

258 lines
13 KiB
XML
Executable File

<?xml version="1.0" encoding="UTF-8" ?>
<report name="ca3300b" orientation="2" lpi="8" command="ca3 -2" class="ca3300b">
<description>Bilancio di verifica (cons - prev)</description>
<font face="Courier New" size="8" />
<section type="Head">
<font face="Arial" bold="1" size="8" />
<field border="1" y="0.25" type="Linea" width="167" height="0" pattern="1" />
<field x="141" y="0.5" type="Testo" align="center" width="25" height="1.5" pattern="1" text="SALDO FINALE" />
<field x="83.56" y="0.66" type="Testo" align="center" width="25" pattern="1" text="SALDO INIZIALE" />
<field x="111.06" y="0.66" type="Testo" align="center" width="27" pattern="1" text="MOVIMENTI DEL PERIODO" />
<field x="0.06" y="1.16" type="Testo" width="10" pattern="1" text="Conto" />
<field x="30.06" y="1.16" type="Testo" width="15" pattern="1" text="Descrizione" />
<field x="78" y="1.66" type="Testo" align="right" width="13" pattern="1" text="Dare" />
<field x="92" y="1.66" type="Testo" align="right" width="13" pattern="1" text="Avere" />
<field x="107" y="1.66" type="Testo" align="right" width="13" pattern="1" text="Dare" />
<field x="121" y="1.66" type="Testo" align="right" width="13" pattern="1" text="Avere" />
<field x="136" y="1.66" type="Testo" align="right" width="13" pattern="1" text="Dare" />
<field x="150" y="1.66" type="Testo" align="right" width="13" pattern="1" text="Avere" />
<field border="1" y="2.75" type="Linea" width="167" height="0" pattern="1" />
</section>
<section type="Head" level="1">
<font face="Arial" bold="1" size="9" />
<prescript description="H1 PRESCRIPT">"F1" AZZERA_TOTALI</prescript>
<field border="1" radius="100" x="40.34" y="0.66" type="Rettangolo" shade_offset="25" width="80" height="3.5" />
<field x="62.5" y="1.5" type="Testo" valign="center" align="center" width="35" height="2" pattern="1" text="BILANCIO DI VERIFICA">
<font face="Arial" bold="1" size="14" />
</field>
<field x="0.75" y="5.5" type="Stringa" width="60" height="1.25" pattern="1">
<source>#SYSTEM.RAGSOC</source>
</field>
<field x="70.75" y="5.5" type="Testo" width="20" height="1.25" pattern="1" text="Data di stampa:">
<font face="Arial" size="9" />
</field>
<field x="90.75" y="5.5" type="Data" width="15" height="1.25" pattern="1">
<source>#SYSTEM.DATE</source>
</field>
<field x="0.75" y="7.08" type="Testo" width="20" pattern="1" text="Movimenti dal:">
<font face="Arial" size="9" />
<prescript>MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,DESCRIZ</prescript>
</field>
<field x="20.75" y="7.08" type="Data" width="15" pattern="1">
<source>#DATA_INIZIALE</source>
</field>
<field x="37.75" y="7.08" type="Testo" width="4" pattern="1" text="al:" />
<field x="42.75" y="7.08" type="Data" width="15" pattern="1">
<source>#DATA_FINALE</source>
</field>
<field x="0.75" y="8.33" type="Testo" width="20" pattern="1" text="Centro di costo:">
<font face="Arial" size="9" />
</field>
<field x="20.75" y="8.33" type="Stringa" width="24" pattern="1">
<source>#COSTO</source>
</field>
<field x="45.75" y="8.33" type="Stringa" width="70" pattern="1">
<prescript>MESSAGE ISAMREAD,CDC,CODCOSTO=#COSTO,DESCRIZ</prescript>
</field>
<field x="0.75" y="9.58" type="Testo" width="20" pattern="1" text="Commessa:">
<font face="Arial" size="9" />
</field>
<field x="20.75" y="9.58" type="Stringa" width="24" pattern="1">
<source>#COMMESSA</source>
</field>
<field x="45.75" y="9.58" type="Stringa" width="70" pattern="1">
<prescript>MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,DESCRIZ</prescript>
</field>
<field x="0.75" y="10.83" type="Testo" width="20" pattern="1" text="Fase:">
<font face="Arial" size="9" />
</field>
<field x="20.75" y="10.83" type="Stringa" width="13" pattern="1">
<source>#FASE</source>
</field>
<field x="45.75" y="10.83" type="Stringa" width="70" pattern="1">
<prescript>MESSAGE ISAMREAD,FASI,CODCMSFAS=#CMSCDC!CODFASE=#FASE,DESCRIZ</prescript>
</field>
</section>
<section type="Head" level="2">
<condition>CODCONTO:2!=""</condition>
<groupby>CODCONTO:1</groupby>
<prescript description="H2 PRESCRIPT">"CODCONTO:1" @
"F2.101" !
"F2" AZZERA_TOTALI
</prescript>
</section>
<section type="Head" level="3">
<condition>CODCONTO:3!=""</condition>
<groupby>CODCONTO:2</groupby>
<prescript description="H3 PRESCRIPT">"CODCONTO:2" @
"F3.101" !
"F3" AZZERA_TOTALI</prescript>
</section>
<section type="Head" level="4">
<condition>CODCONTO:4 != ""</condition>
<groupby>CODCONTO:3</groupby>
<prescript description="H4 PRESCRIPT">"CODCONTO:3" @
"F4.101" ! \ Copia il codice conto nel footer
"F4" AZZERA_TOTALI</prescript>
</section>
<section type="Body" />
<section type="Body" level="1" bg_color="#C0C0C0">
<font face="Arial" size="8" />
<field x="78" type="Valuta" align="right" width="13" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO:INI_DARE</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.103|ADD,F2.103|ADD,F3.103|ADD,F4.103
</postscript>
</field>
<field x="92" type="Valuta" align="right" width="13" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO:INI_AVERE</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.104|ADD,F2.104|ADD,F3.104|ADD,F4.104</postscript>
</field>
<field x="107" type="Valuta" align="right" width="13" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO:MOV_DARE</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.105|ADD,F2.105|ADD,F3.105|ADD,F4.105</postscript>
</field>
<field x="121" type="Valuta" align="right" width="13" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO:MOV_AVERE</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.106|ADD,F2.106|ADD,F3.106|ADD,F4.106</postscript>
</field>
<field x="136" type="Valuta" align="right" width="13" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO:FIN_DARE</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.107|ADD,F2.107|ADD,F3.107|ADD,F4.107</postscript>
</field>
<field x="150" type="Valuta" align="right" width="13" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO:FIN_AVERE</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.108|ADD,F2.108|ADD,F3.108|ADD,F4.108</postscript>
</field>
<field type="Stringa" width="24" id="101" pattern="1">
<source>CODCONTO</source>
<prescript description="B1.101 PRESCRIPT">CA_FORMAT_CONTO</prescript>
</field>
<field x="25" type="Stringa" width="50" id="102" pattern="1">
<source>DESCR</source>
</field>
</section>
<section type="Foot">
<font face="Arial" bold="1" size="9" />
<field border="1" x="1" y="0.5" type="Linea" width="164" height="0" pattern="1" />
<field x="150" y="0.75" type="Testo" width="6" pattern="1" text="Pag." />
<field x="156" y="0.75" type="Numero" align="right" width="4" pattern="1">
<source>#REPORT.PAGE</source>
</field>
</section>
<section type="Foot" level="1">
<font face="Arial" bold="1" size="9" />
<field border="2" y="0.5" type="Linea" width="167" height="0" pattern="1" />
<field x="25" y="1" type="Testo" width="50" id="102" pattern="1" text="Totale">
<prescript description="F1.102 PRESCRIPT">MESSAGE ISAMREAD,PCONANA,CODCONTO=#102,DESCR</prescript>
</field>
<field x="78" y="1" type="Valuta" align="right" width="13" id="103" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript>103 DARE_AVERE</prescript>
</field>
<field x="92" y="1" type="Valuta" align="right" width="13" id="104" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" y="1" type="Valuta" align="right" width="13" id="105" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" y="1" type="Valuta" align="right" width="13" id="106" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" y="1" type="Valuta" align="right" width="13" id="107" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript>107 DARE_AVERE</prescript>
</field>
<field x="150" y="1" type="Valuta" align="right" width="13" id="108" pattern="1" hide_zero="1" text="###.###.###,@@" />
</section>
<section type="Foot" level="2" height="2">
<condition>#101 != ""</condition>
<font italic="1" face="Arial" bold="1" size="8" />
<field border="1" y="2" type="Linea" width="167" height="0" pattern="1" />
<field y="0.5" type="Stringa" width="23" id="101" pattern="1">
<prescript description="F2.101 PRESCRIPT">#THIS @ #102 !
CA_FORMAT_CONTO</prescript>
</field>
<field x="25" y="0.5" type="Stringa" width="50" id="102" pattern="1">
<prescript description="F2.102 PRESCRIPT">CA_FORMAT_CONTO_DESCR</prescript>
</field>
<field x="78" y="0.5" type="Valuta" align="right" width="13" id="103" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="F2.103 PRESCRIPT">103 DARE_AVERE</prescript>
</field>
<field x="92" y="0.5" type="Valuta" align="right" width="13" id="104" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" y="0.5" type="Valuta" align="right" width="13" id="105" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" y="0.5" type="Valuta" align="right" width="13" id="106" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" y="0.5" type="Valuta" align="right" width="13" id="107" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="F2.107 PRESCRIPT">107 DARE_AVERE</prescript>
</field>
<field x="150" y="0.5" type="Valuta" align="right" width="13" id="108" pattern="1" hide_zero="1" text="###.###.###,@@" />
</section>
<section type="Foot" level="3" height="1.5">
<condition>#101 != ""</condition>
<font face="Arial" bold="1" size="8" />
<field y="0.5" type="Stringa" width="23" id="101" pattern="1">
<prescript description="F3.101 PRESCRIPT">#THIS @ #102 !
CA_FORMAT_CONTO</prescript>
</field>
<field x="25" y="0.5" type="Stringa" width="50" id="102" pattern="1">
<prescript description="F3.102 PRESCRIPT">CA_FORMAT_CONTO_DESCR</prescript>
</field>
<field x="78" y="0.5" type="Valuta" align="right" width="13" id="103" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="F3.103 PRESCRIPT">103 DARE_AVERE</prescript>
</field>
<field x="92" y="0.5" type="Valuta" align="right" width="13" id="104" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" y="0.5" type="Valuta" align="right" width="13" id="105" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" y="0.5" type="Valuta" align="right" width="13" id="106" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" y="0.5" type="Valuta" align="right" width="13" id="107" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="F3.107 PRESCRIPT">107 DARE_AVERE</prescript>
</field>
<field x="150" y="0.5" type="Valuta" align="right" width="13" id="108" pattern="1" hide_zero="1" text="###.###.###,@@" />
</section>
<section type="Foot" level="4" height="1.5">
<condition>#101 != ""</condition>
<font face="Arial" bold="1" size="8" />
<field y="0.5" type="Stringa" width="23" id="101" pattern="1">
<prescript description="F4.101 PRESCRIPT">#THIS @ #102 !
CA_FORMAT_CONTO</prescript>
</field>
<field x="25" y="0.5" type="Stringa" width="50" id="102" pattern="1">
<prescript description="F4.102 PRESCRIPT">CA_FORMAT_CONTO_DESCR</prescript>
</field>
<field x="78" y="0.5" type="Valuta" align="right" width="13" id="103" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="F4.103 PRESCRIPT">103 DARE_AVERE</prescript>
</field>
<field x="92" y="0.5" type="Valuta" align="right" width="13" id="104" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" y="0.5" type="Valuta" align="right" width="13" id="105" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" y="0.5" type="Valuta" align="right" width="13" id="106" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" y="0.5" type="Valuta" align="right" width="13" id="107" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="F4.107 PRESCRIPT">107 DARE_AVERE</prescript>
</field>
<field x="150" y="0.5" type="Valuta" align="right" width="13" id="108" pattern="1" hide_zero="1" text="###.###.###,@@" />
</section>
<sql>USE PCONANA</sql>
<prescript description="PRESCRIPT">: AZZERA_TOTALI ( ID_SEC - )
109 103 DO
DUP \ Duplica codice sezione
"." + \ Aggiunge punto
I + \ Aggiunge codice campo
0 SWAP ! \ Lo azzera
LOOP
DROP
;
: DARE_AVERE ( ID_DARE -- )
VARIABLE _DARE
VARIABLE _AVERE
DUP
_DARE !
1 + _AVERE !
_DARE @ @ \ DARE
_AVERE @ @ \ AVERE
- \ DARE-AVERE
DUP
0 &#3C; IF \ Se negativo
-1 * \ Cambia segno
_AVERE @ ! \ Setta AVERE
0 _DARE @ ! \ Azzera DARE
ELSE
_DARE @ ! \ Setta DARE
0 _AVERE @ ! \ Azzera AVERE
THEN
;
</prescript>
</report>