Files correlati : Ricompilazione Demo : [ ] Commento : Aggiunto recordset per gestire "trasparentemente" i piani dei conti contabile o analitico. Potenziato calcolo saldi per gestire anche i livelli intermedi dei conti e soprattutto gestire la riclassificazione dei conti analitici tramite la tabella panapdc Potenziato il generatore di movimenti casuale per gestire anche il piano dei conti contabile nonche' la generazione automatica della tabela panapdc. git-svn-id: svn://10.65.10.50/trunk@13265 c028cbd2-c16b-5b4b-a496-9718f37d4682
210 lines
9.6 KiB
Plaintext
Executable File
210 lines
9.6 KiB
Plaintext
Executable File
|
|
<report name="ca3300b" orientation="2" lpi="8" command="ca3 -2" class="ca3300b">
|
|
<description>Bilancio normale di verifica</description>
|
|
<font face="Courier New" size="8" />
|
|
<section type="Head">
|
|
<font italic="1" face="Courier New" bold="1" size="10" />
|
|
<field type="Stringa" width="50" pattern="1">
|
|
<source>#SYSTEM.RAGSOC</source>
|
|
</field>
|
|
<field x="90" type="Data" width="10" pattern="1">
|
|
<source>#SYSTEM.DATE</source>
|
|
</field>
|
|
<field x="164" type="Numero" align="right" width="4" pattern="1">
|
|
<source>#REPORT.PAGE</source>
|
|
</field>
|
|
<field y="2" type="Testo" width="20" pattern="1" text="Centro di costo:" />
|
|
<field x="20" y="2" type="Stringa" width="24" pattern="1">
|
|
<source>#COSTO</source>
|
|
</field>
|
|
<field x="45" y="2" type="Stringa" width="50" pattern="1">
|
|
<prescript description="H0.0 PRESCRIPT">MESSAGE ISAMREAD,CDC,CODCOSTO=#COSTO,DESCRIZ</prescript>
|
|
</field>
|
|
<field y="3" type="Testo" width="20" pattern="1" text="Commessa:" />
|
|
<field x="20" y="3" type="Stringa" width="24" pattern="1">
|
|
<source>#COMMESSA</source>
|
|
</field>
|
|
<field x="45" y="3" type="Stringa" width="50" pattern="1">
|
|
<prescript description="H0.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,DESCRIZ</prescript>
|
|
</field>
|
|
<field y="4" type="Testo" width="20" pattern="1" text="Fase:" />
|
|
<field x="20" y="4" type="Stringa" width="13" pattern="1">
|
|
<source>#FASE</source>
|
|
</field>
|
|
<field x="45" y="4" type="Stringa" width="50" pattern="1">
|
|
<prescript description="H0.0 PRESCRIPT">MESSAGE ISAMREAD,FASI,CODCMSFAS=#CMSCDC!CODFASE=#FASE,DESCRIZ</prescript>
|
|
</field>
|
|
<field border="1" y="6" type="Linea" width="168" height="0" pattern="1" />
|
|
<field x="85" y="6" type="Testo" align="center" width="27" pattern="1" text="SALDO INIZIALE" />
|
|
<field x="113" y="6" type="Testo" align="center" width="27" pattern="1" text="MOVIMENTI DEL PERIODO" />
|
|
<field x="141" y="6" type="Testo" align="center" width="27" pattern="1" text="SALDO FINALE" />
|
|
<field y="6.5" type="Testo" width="10" pattern="1" text="Conto" />
|
|
<field x="30" y="6.5" type="Testo" width="15" pattern="1" text="Descrizione" />
|
|
<field x="78" y="7" type="Testo" align="right" width="13" pattern="1" text="DARE" />
|
|
<field x="92" y="7" type="Testo" align="right" width="13" pattern="1" text="AVERE" />
|
|
<field x="109" y="7" type="Testo" align="right" width="13" pattern="1" text="DARE" />
|
|
<field x="123" y="7" type="Testo" align="right" width="13" pattern="1" text="AVERE" />
|
|
<field x="141" y="7" type="Testo" align="right" width="13" pattern="1" text="DARE" />
|
|
<field x="155" y="7" type="Testo" align="right" width="13" pattern="1" text="AVERE" />
|
|
<field border="1" x="-1" y="8" type="Linea" width="168" height="0" pattern="1" />
|
|
</section>
|
|
<section type="Head" level="1" height="3">
|
|
<field border="1" radius="100" x="1" type="Testo" valign="center" align="center" shade_offset="25" width="166" height="2.5" text="BILANCIO DI VERIFICA">
|
|
<font face="Courier New" bold="1" size="16" />
|
|
</field>
|
|
</section>
|
|
<section type="Head" level="2">
|
|
<condition>CODCONTO:2!=""</condition>
|
|
<groupby>CODCONTO:1</groupby>
|
|
<prescript description="H2 PRESCRIPT">"CODCONTO:1" @
|
|
"F2.101" !
|
|
"DESCR:1" @
|
|
"F2.102" !
|
|
|
|
"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" !
|
|
"DESCR:2" @
|
|
"F3.102" !
|
|
|
|
"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
|
|
"DESCR:3" @
|
|
"F4.102" !
|
|
|
|
"F4" AZZERA_TOTALI</prescript>
|
|
</section>
|
|
<section type="Body" />
|
|
<section type="Body" level="1">
|
|
<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,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,F2.104|ADD,F3.104|ADD,F4.104</postscript>
|
|
</field>
|
|
<field x="109" type="Valuta" align="right" width="13" pattern="1" hide_zero="1" text="###.###.###,@@">
|
|
<source>SALDO:MOV_DARE</source>
|
|
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F2.105|ADD,F3.105|ADD,F4.105</postscript>
|
|
</field>
|
|
<field x="123" type="Valuta" align="right" width="13" pattern="1" hide_zero="1" text="###.###.###,@@">
|
|
<source>SALDO:MOV_AVERE</source>
|
|
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F2.106|ADD,F3.106|ADD,F4.106</postscript>
|
|
</field>
|
|
<field x="141" type="Valuta" align="right" width="13" pattern="1" hide_zero="1" text="###.###.###,@@">
|
|
<source>SALDO:FIN_DARE</source>
|
|
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F2.107|ADD,F3.107|ADD,F4.107</postscript>
|
|
</field>
|
|
<field x="155" type="Valuta" align="right" width="13" pattern="1" hide_zero="1" text="###.###.###,@@">
|
|
<source>SALDO:FIN_AVERE</source>
|
|
<postscript description="B1.0 POSTSCRIPT">MESSAGE 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" />
|
|
<section type="Foot" level="1" />
|
|
<section type="Foot" level="2">
|
|
<condition>#101 != ""</condition>
|
|
<font face="Courier New" bold="1" size="8" />
|
|
<field type="Stringa" width="23" id="101" pattern="1">
|
|
<prescript description="F2.101 PRESCRIPT">CA_FORMAT_CONTO</prescript>
|
|
</field>
|
|
<field x="25" type="Stringa" width="50" id="102" pattern="1" />
|
|
<field x="78" 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" type="Valuta" align="right" width="13" id="104" pattern="1" hide_zero="1" text="###.###.###,@@" />
|
|
<field x="109" type="Valuta" align="right" width="13" id="105" pattern="1" hide_zero="1" text="###.###.###,@@" />
|
|
<field x="123" type="Valuta" align="right" width="13" id="106" pattern="1" hide_zero="1" text="###.###.###,@@" />
|
|
<field x="141" 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="155" type="Valuta" align="right" width="13" id="108" pattern="1" hide_zero="1" text="###.###.###,@@" />
|
|
</section>
|
|
<section type="Foot" level="3">
|
|
<condition>#101 != ""</condition>
|
|
<font face="Courier New" bold="1" size="8" />
|
|
<field type="Stringa" width="23" id="101" pattern="1">
|
|
<prescript description="F3.101 PRESCRIPT">CA_FORMAT_CONTO</prescript>
|
|
</field>
|
|
<field x="25" type="Stringa" width="50" id="102" pattern="1" />
|
|
<field x="78" 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" type="Valuta" align="right" width="13" id="104" pattern="1" hide_zero="1" text="###.###.###,@@" />
|
|
<field x="109" type="Valuta" align="right" width="13" id="105" pattern="1" hide_zero="1" text="###.###.###,@@" />
|
|
<field x="123" type="Valuta" align="right" width="13" id="106" pattern="1" hide_zero="1" text="###.###.###,@@" />
|
|
<field x="141" 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="155" type="Valuta" align="right" width="13" id="108" pattern="1" hide_zero="1" text="###.###.###,@@" />
|
|
</section>
|
|
<section type="Foot" level="4">
|
|
<condition>#101 != ""</condition>
|
|
<font face="Courier New" bold="1" size="8" />
|
|
<field type="Stringa" width="23" id="101" pattern="1">
|
|
<prescript description="F4.101 PRESCRIPT">CA_FORMAT_CONTO</prescript>
|
|
</field>
|
|
<field x="25" type="Stringa" width="50" id="102" pattern="1" />
|
|
<field x="78" 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" type="Valuta" align="right" width="13" id="104" pattern="1" hide_zero="1" text="###.###.###,@@" />
|
|
<field x="109" type="Valuta" align="right" width="13" id="105" pattern="1" hide_zero="1" text="###.###.###,@@" />
|
|
<field x="123" type="Valuta" align="right" width="13" id="106" pattern="1" hide_zero="1" text="###.###.###,@@" />
|
|
<field x="141" 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="155" 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 C; IF \ Se negativo
|
|
-1 * \ Cambia segno
|
|
_AVERE @ ! \ Setta AVERE
|
|
0 _DARE @ ! \ Azzera DARE
|
|
ELSE
|
|
_DARE @ ! \ Setta DARE
|
|
0 _AVERE @ ! \ Azzera AVERE
|
|
THEN
|
|
;
|
|
</prescript>
|
|
</report> |