Patch level : 12.0 348

Files correlati     : cg7700c.rep cg7700d.rep cg7700e.rep cg7700f.rep cg7700g.rep
                      cgmenu.men

Quadri Ve VF e VJ della dichiarazione IVA
Aggiunti ai regimi speciali sulle causali 
6  Acquisti di rottami e mat.di di recupero art. 74, commi 7 e 8
7  Acquisti di oro industriale e argento puro (art. 17, comma 5)
8  Acquisti di oro da investimento imp.per opzione (art. 17, comma 5)
9  Acquisti intrac. di CPU,PC, tablet,cellulari,console,microproc.
10 Importazioni rottami e altri mat.di recupero imposta non è versata
14 Acquisti di fabbricati (art. 17, comma 6, lett. a-bis)
15 Acquisti di telefoni cellulari (art. 17, comma 6, lett. b)
16 Acquisti di prodotti elettronici (art. 17, comma 6, lett. c)
17 Acquisti di servizi del comp.edile e sett.connessi art. 17,comma 6, lett. a-ter
18 Acquisti di beni e servizi del sett.energetico art. 17, c.6 d-bis,ter,d-quater
19 Acquisti delle P.A., titolari di partita IVA art. 17-ter

git-svn-id: svn://10.65.10.50/branches/R_10_00@23640 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
bonazzi 2017-02-20 14:45:23 +00:00
parent c053e94203
commit c532698388
9 changed files with 882 additions and 1 deletions

View File

@ -14,6 +14,8 @@ int main(int argc,char** argv)
case 2: cg7300(argc, argv); break; // gestore tabelle di modulo CG
case 3: cg7400(argc,argv); break; // Quadro VC
case 5: cg7600(argc,argv); break; // Quadro VE
case 6: cg7700(argc,argv); break; // Quadro VF
case 7: cg7800(argc,argv); break; // Quadro VJ
}
return 0;
}

View File

@ -3,3 +3,5 @@ int cg7200(int argc, char* argv[]);
int cg7300(int argc, char* argv[]);
int cg7400(int argc, char* argv[]);
int cg7600(int argc, char* argv[]);
int cg7700(int argc, char* argv[]);
int cg7800(int argc, char* argv[]);

165
src/cg/cg7700c.rep Normal file
View File

@ -0,0 +1,165 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report name="cg7700c" orientation="1" lpi="6">
<description>Dichiarazione IVA Quadro VF - VF12 - VF16</description>
<font face="Arial" size="8" />
<section type="Head" pattern="1">
<field x="88" type="Stringa" align="right" width="30" pattern="1">
<source>"Pag. " +#PAGE</source>
</field>
<field x="2" y="0.75" type="Testo" align="right" width="7" pattern="1" text="Num.Reg" />
<field x="10" y="0.75" type="Testo" hidden="1" width="3" pattern="1" text="N.R." />
<field x="14" y="0.75" type="Testo" width="10" pattern="1" text="Data Reg." />
<field x="25" y="0.75" type="Stringa" hidden="1" width="1" pattern="1">
<source>RMOVIVA.INTRA</source>
</field>
<field x="27" y="0.75" type="Testo" width="10" pattern="1" text="Data Doc." />
<field x="38" y="0.75" type="Testo" width="7" pattern="1" text="N. Doc." />
<field x="46" y="0.75" type="Testo" width="4" pattern="1" text="Caus" />
<field x="51" y="0.75" type="Testo" width="50" pattern="1" text="Fornitore Ragione Sociale" />
<field x="92" y="0.75" type="Testo" align="right" width="13" pattern="1" text="Imponibile" />
<field x="104.5" y="0.75" type="Testo" align="right" width="10" pattern="1" text="Imposta" />
<field x="116" y="0.75" type="Testo" width="4" pattern="1" text="C.Iva" />
<field border="2" x="2" y="1.75" type="Linea" width="117" height="0" pattern="1" />
</section>
<section type="Head" level="1" pattern="1">
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1</prescript>
<field x="2" type="Stringa" width="40" pattern="1">
<font face="Arial" bold="1" size="8" />
<source>#SYSTEM.RAGSOC</source>
</field>
<field x="90" type="Stringa" align="right" width="30" pattern="1">
<source>"Data di Stampa: " +#SYSTEM.DATE</source>
</field>
<field border="1" x="2" y="1" type="Stringa" align="center" width="117" pattern="1">
<source>"ELENCO FATTURE ACQUISTO VF12 - VF16 - " +#ANNO</source>
</field>
</section>
<section type="Head" level="2" hidden="1" pattern="1">
<groupby>NUMREG+CODIVA</groupby>
<prescript description="H2 PRESCRIPT">MESSAGE RESET,F2</prescript>
<field type="Stringa" width="10" pattern="1">
<source>NUMREG+" "+CODIVA</source>
</field>
</section>
<section type="Body" pattern="1" />
<section type="Body" level="1" hidden="1" bg_color="#D9FFD9" pattern="2">
<field x="125" type="Stringa" hidden="1" width="3" pattern="1">
<source>202@.B1</source>
</field>
<field x="129" type="Stringa" hidden="1" width="10" pattern="1">
<source>202@.S0</source>
</field>
<field x="2" type="Numero" align="right" width="7" id="5" pattern="1">
<source>RMOVIVA.NUMREG</source>
</field>
<field x="10" type="Numero" align="right" width="3" id="10" pattern="1">
<source>RMOVIVA.NUMRIG</source>
</field>
<field x="14" type="Data" width="10" id="15" pattern="1">
<source>MOV.DATAREG</source>
</field>
<field x="25" type="Stringa" width="1" id="20" pattern="1">
<source>RMOVIVA.INTRA</source>
</field>
<field x="27" type="Data" width="10" id="25" pattern="1">
<source>MOV.DATADOC</source>
</field>
<field x="38" type="Stringa" width="7" id="30" pattern="1">
<source>MOV.NUMDOC</source>
</field>
<field x="46" type="Stringa" width="4" id="35" pattern="1">
<source>MOV.CODCAUS</source>
</field>
<field x="51" type="Stringa" width="40" id="40" pattern="1">
<source>CLIFO.RAGSOC</source>
</field>
<field x="92" type="Valuta" align="right" width="13" id="100" pattern="1" text="###.###.###,@@">
<source>RMOVIVA.IMPONIBILE</source>
<prescript description="B1.100 PRESCRIPT">MESSAGE ADD,F2.100</prescript>
</field>
<field x="105" type="Numero" align="right" width="10" id="101" pattern="1" text="###.###.###,@@">
<source>RMOVIVA.IMPOSTA</source>
<prescript description="B1.101 PRESCRIPT">MESSAGE ADD,F2.101</prescript>
</field>
<field x="116" type="Stringa" width="4" id="105" pattern="1">
<source>RMOVIVA.CODIVA</source>
</field>
<field x="121" type="Stringa" width="3" id="110" pattern="1">
<source>201@.S9</source>
<prescript description="B1.110 PRESCRIPT">#100 @
"F1.1"
#THIS @
+
+!</prescript>
</field>
</section>
<section type="Foot" pattern="1" />
<section type="Foot" level="1" pattern="1">
<field border="2" x="2" y="0.5" type="Linea" width="117" height="0" pattern="1" />
<field x="35" y="1" type="Testo" align="right" width="50" pattern="1" text="TOTALE con pagamento IVA:" />
<field x="5" y="3" type="Testo" align="right" width="80" pattern="1" text="Acquisti e importazioni senza pagamento d&#92;imposta, con utilizzo del plafond - VF12:" />
<field x="5" y="4" type="Testo" align="right" width="80" pattern="1" text="Altri acquisti non imponibili, non soggetti ad imposta e relativi ad alcuni regimi speciali - VF13:" />
<field x="5" y="5" type="Testo" align="right" width="80" pattern="1" text="Acquisti esenti (art. 10) e importazioni non soggette all&#92;imposta - VF14:" />
<field x="5" y="6" type="Testo" align="right" width="80" pattern="1" text="Acquisti da soggetti che si sono avvalsi di regimi agevolativi - VF15:" />
<field x="5" y="7" type="Testo" align="right" width="80" pattern="1" text="Acquisti e importazioni non soggetti all&#92;imposta effettuati dai terremotati - VF16:" />
<field x="87" y="1" type="Valuta" align="right" width="18" id="100" pattern="1" text="###.###.###,@@" />
<field x="87" y="3" type="Valuta" align="right" width="18" id="112" pattern="1" text="###.###.###,@@" />
<field x="87" y="4" type="Valuta" align="right" width="18" id="113" pattern="1" text="###.###.###,@@" />
<field x="87" y="5" type="Valuta" align="right" width="18" id="114" pattern="1" text="###.###.###,@@" />
<field x="87" y="6" type="Valuta" align="right" width="18" id="115" pattern="1" text="###.###.###,@@" />
<field x="87" y="7" type="Valuta" align="right" width="18" id="116" pattern="1" text="###.###.###,@@" />
</section>
<section type="Foot" level="2" height="1" pattern="1">
<field x="2" type="Numero" align="right" link="23.NUMREG" width="7" pattern="1">
<source>#B1.5</source>
</field>
<field x="10" type="Numero" hidden="1" align="right" width="3" pattern="1">
<source>RMOVIVA.NUMRIG</source>
</field>
<field x="14" type="Data" width="10" pattern="1">
<source>#B1.15</source>
</field>
<field x="25" type="Stringa" hidden="1" width="1" pattern="1">
<source>RMOVIVA.INTRA</source>
</field>
<field x="27" type="Data" width="10" pattern="1">
<source>#B1.25</source>
</field>
<field x="38" type="Stringa" width="7" pattern="1">
<source>#B1.30</source>
</field>
<field x="46" type="Stringa" width="4" pattern="1">
<source>#B1.35</source>
</field>
<field x="51" type="Stringa" width="40" pattern="1">
<source>#B1.40</source>
</field>
<field x="116" type="Stringa" width="4" pattern="1">
<source>#B1.105</source>
</field>
<field x="121" type="Stringa" width="2" pattern="1">
<source>#B1.110</source>
</field>
<field x="126" type="Stringa" hidden="1" width="10" pattern="1">
<source>201@.S3</source>
</field>
<field x="92" type="Valuta" align="right" width="13" id="100" pattern="1" text="###.###.###,@@">
<prescript description="F2.100 PRESCRIPT">MESSAGE ADD,F1.100</prescript>
</field>
<field x="105" type="Valuta" align="right" width="10" id="101" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="F2.101 PRESCRIPT">#THIS @
0 &#3E; IF
#100 @
"F1.100" +!
ELSE
#100 @
"F1.101" +!
THEN</prescript>
</field>
</section>
<sql>USE RMOVIVA SELECT (23.ANNOIVA=#ANNO)&#26;&#26;(23.TIPO="F")&#26;&#26;(201@.S9&#3E;="12")&#26;&#26;(201@.S9&#3C;="16")
JOIN MOV INTO NUMREG==NUMREG
JOIN 20 TO MOV INTO TIPOCF==TIPO CODCF==CODCF
JOIN %IVA ALIAS 201 INTO CODTAB==CODIVA
JOIN %STA TO CLIFO ALIAS 202 INTO CODTAB==STATOCF</sql>
</report>

126
src/cg/cg7700d.rep Normal file
View File

@ -0,0 +1,126 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report name="cg7700d" orientation="1" lpi="6">
<description>Dichiarazione IVA Quadro VF 24-3 - Importazioni</description>
<font face="Arial" size="8" />
<section type="Head" pattern="1">
<field x="88" type="Stringa" align="right" width="30" pattern="1">
<source>"Pag. " +#PAGE</source>
</field>
<field x="2" y="0.5" type="Testo" align="right" width="7" pattern="1" text="Num.Reg" />
<field x="10" y="0.5" type="Testo" hidden="1" width="3" pattern="1" text="N.R." />
<field x="14" y="0.5" type="Testo" width="10" pattern="1" text="Data Reg." />
<field x="25" y="0.5" type="Stringa" hidden="1" width="1" pattern="1">
<source>RMOVIVA.INTRA</source>
</field>
<field x="27" y="0.5" type="Testo" width="10" pattern="1" text="Data Doc." />
<field x="38" y="0.5" type="Testo" width="7" pattern="1" text="N. Doc." />
<field x="46" y="0.5" type="Testo" width="4" pattern="1" text="Caus" />
<field x="51" y="0.5" type="Testo" width="50" pattern="1" text="Cliente Ragione Sociale" />
<field x="92" y="0.5" type="Testo" align="right" width="18" pattern="1" text="Imponibile" />
<field x="111" y="0.5" type="Testo" width="4" pattern="1" text="C.Iva" />
<field border="2" x="2" y="1.5" type="Linea" width="117" height="0" pattern="1" />
</section>
<section type="Head" level="1" pattern="1">
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1</prescript>
<field x="2" type="Stringa" width="40" pattern="1">
<font face="Arial" bold="1" size="8" />
<source>#SYSTEM.RAGSOC</source>
</field>
<field x="90" type="Stringa" align="right" width="30" pattern="1">
<source>"Data di Stampa: " +#SYSTEM.DATE</source>
</field>
<field border="1" x="2" y="1" type="Stringa" align="center" width="117" pattern="1">
<source>"ELENCO IMPORTAZIONI - " +#ANNO</source>
</field>
</section>
<section type="Head" level="2" hidden="1" pattern="1">
<groupby>NUMREG+CODIVA</groupby>
<prescript description="H2 PRESCRIPT">MESSAGE RESET,F2</prescript>
<field type="Stringa" width="10" pattern="1">
<source>NUMREG+" "+CODIVA</source>
</field>
</section>
<section type="Body" pattern="1" />
<section type="Body" level="1" hidden="1" bg_color="#80FF80" pattern="2">
<field x="116" type="Stringa" width="10" pattern="1">
<source>201@.S3</source>
</field>
<field x="2" type="Numero" align="right" width="7" id="5" pattern="1">
<source>RMOVIVA.NUMREG</source>
</field>
<field x="10" type="Numero" align="right" width="3" id="10" pattern="1">
<source>RMOVIVA.NUMRIG</source>
</field>
<field x="14" type="Data" width="10" id="15" pattern="1">
<source>MOV.DATAREG</source>
</field>
<field x="25" type="Stringa" width="1" id="20" pattern="1">
<source>RMOVIVA.INTRA</source>
</field>
<field x="27" type="Data" width="10" id="25" pattern="1">
<source>MOV.DATADOC</source>
</field>
<field x="38" type="Stringa" width="7" id="30" pattern="1">
<source>MOV.NUMDOC</source>
</field>
<field x="46" type="Stringa" width="4" id="35" pattern="1">
<source>MOV.CODCAUS</source>
</field>
<field x="51" type="Stringa" width="40" id="40" pattern="1">
<source>CLIFO.RAGSOC</source>
</field>
<field x="92" type="Valuta" align="right" width="18" id="100" pattern="1" text="###.###.###,@@">
<source>RMOVIVA.IMPONIBILE</source>
<prescript description="B1.100 PRESCRIPT">MESSAGE ADD,F2.100</prescript>
</field>
<field x="111" type="Stringa" width="4" id="105" pattern="1">
<source>RMOVIVA.CODIVA</source>
</field>
</section>
<section type="Foot" pattern="1" />
<section type="Foot" level="1" pattern="1">
<field border="2" x="2" y="0.5" type="Linea" width="117" height="0" pattern="1" />
<field x="40" y="1" type="Testo" align="right" width="50" pattern="1" text="TOTALE GENERALE:" />
<field x="92" y="1" type="Valuta" align="right" width="18" id="100" pattern="1" text="###.###.###,@@" />
</section>
<section type="Foot" level="2" height="1" pattern="1">
<field x="2" type="Numero" align="right" link="23.NUMREG" width="7" pattern="1">
<source>#B1.5</source>
</field>
<field x="10" type="Numero" hidden="1" align="right" width="3" pattern="1">
<source>RMOVIVA.NUMRIG</source>
</field>
<field x="14" type="Data" width="10" pattern="1">
<source>#B1.15</source>
</field>
<field x="25" type="Stringa" hidden="1" width="1" pattern="1">
<source>RMOVIVA.INTRA</source>
</field>
<field x="27" type="Data" width="10" pattern="1">
<source>#B1.25</source>
</field>
<field x="38" type="Stringa" width="7" pattern="1">
<source>#B1.30</source>
</field>
<field x="46" type="Stringa" width="4" pattern="1">
<source>#B1.35</source>
</field>
<field x="51" type="Stringa" width="40" pattern="1">
<source>#B1.40</source>
</field>
<field x="111" type="Stringa" width="4" pattern="1">
<source>#B1.105</source>
</field>
<field x="116" type="Stringa" hidden="1" width="10" pattern="1">
<source>201@.S3</source>
</field>
<field x="92" type="Valuta" align="right" width="18" id="100" pattern="1" text="###.###.###,@@">
<prescript description="F2.100 PRESCRIPT">MESSAGE ADD,F1.100</prescript>
</field>
</section>
<sql>USE RMOVIVA SELECT (23.ANNOIVA=#ANNO)&#26;&#26;(23.TIPO="F")&#26;&#26;((201@.S3="1")||(201@.S3="2"))&#26;&#26;(INTRA!="X")&#26;&#26;(202@.B1!="X")
JOIN MOV INTO NUMREG==NUMREG
JOIN 20 TO MOV INTO TIPOCF==TIPO CODCF==CODCF
JOIN %IVA ALIAS 201 INTO CODTAB=CODIVA
JOIN %STA TO CLIFO ALIAS 202 INTO CODTAB==STATOCF</sql>
</report>

143
src/cg/cg7700e.rep Normal file
View File

@ -0,0 +1,143 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report name="cg7700e" orientation="1" lpi="6">
<description>Dichiarazione IVA Quadro VF 24-1 intracomunitarie</description>
<font face="Arial" size="8" />
<section type="Head" pattern="1">
<field x="89" type="Stringa" align="right" width="30" pattern="1">
<source>"Pag. " +#PAGE</source>
</field>
<field x="2" y="0.75" type="Testo" align="right" width="7" pattern="1" text="Num.Reg" />
<field x="10" y="0.75" type="Testo" hidden="1" width="3" pattern="1" text="N.R." />
<field x="13" y="0.75" type="Testo" width="10" pattern="1" text="Data Reg." />
<field x="24" y="0.75" type="Testo" width="10" pattern="1" text="Data Doc." />
<field x="25" y="0.75" type="Stringa" hidden="1" width="1" pattern="1">
<source>RMOVIVA.INTRA</source>
</field>
<field x="35" y="0.75" type="Testo" width="7" pattern="1" text="N. Doc." />
<field x="43" y="0.75" type="Testo" width="4" pattern="1" text="Caus" />
<field x="48" y="0.75" type="Testo" width="50" pattern="1" text="Cliente Ragione Sociale" />
<field x="88" y="0.75" type="Testo" align="right" width="15" pattern="1" text="Imponibile" />
<field x="103.5" y="0.75" type="Testo" align="right" width="12" pattern="1" text="Imposta" />
<field x="116" y="0.75" type="Testo" width="4" pattern="1" text="C.Iva" />
<field border="2" x="2" y="1.75" type="Linea" width="117" height="0" pattern="1" />
</section>
<section type="Head" level="1" pattern="1">
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1</prescript>
<field x="2" type="Stringa" width="40" pattern="1">
<font face="Arial" bold="1" size="8" />
<source>#SYSTEM.RAGSOC</source>
</field>
<field x="89" type="Stringa" align="right" width="30" pattern="1">
<source>"Data di Stampa: " +#SYSTEM.DATE</source>
</field>
<field border="1" x="2" y="1" type="Stringa" align="center" width="117" id="1" pattern="1">
<source>"ELENCO FATTURE ACQUISTI INTRACOMUNITARI - " +#ANNO</source>
</field>
</section>
<section type="Head" level="2" hidden="1" pattern="1">
<groupby>NUMREG+CODIVA</groupby>
<prescript description="H2 PRESCRIPT">MESSAGE RESET,F2</prescript>
<field type="Stringa" width="10" pattern="1">
<source>NUMREG+" "+CODIVA</source>
</field>
</section>
<section type="Body" pattern="1" />
<section type="Body" level="1" hidden="1" pattern="1">
<field x="125" type="Stringa" width="3" pattern="1">
<source>201@.S3</source>
</field>
<field x="129" type="Stringa" width="3" pattern="1">
<source>202@.B1</source>
</field>
<field x="136" type="Stringa" width="10" pattern="1">
<source>202@.S0</source>
</field>
<field x="2" type="Numero" align="right" width="7" id="5" pattern="1">
<source>RMOVIVA.NUMREG</source>
</field>
<field x="10" type="Numero" align="right" width="3" id="10" pattern="1">
<source>RMOVIVA.NUMRIG</source>
</field>
<field x="14" type="Data" width="10" id="15" pattern="1">
<source>MOV.DATAREG</source>
</field>
<field x="25" type="Stringa" width="1" id="20" pattern="1">
<source>RMOVIVA.INTRA</source>
</field>
<field x="27" type="Data" width="10" id="25" pattern="1">
<source>MOV.DATADOC</source>
</field>
<field x="38" type="Stringa" width="7" id="30" pattern="1">
<source>MOV.NUMDOC</source>
</field>
<field x="46" type="Stringa" width="4" id="35" pattern="1">
<source>MOV.CODCAUS</source>
</field>
<field x="51" type="Stringa" width="40" id="40" pattern="1">
<source>CLIFO.RAGSOC</source>
</field>
<field x="91.5" type="Valuta" align="right" width="15" id="100" pattern="1" text="###.###.###,@@">
<source>RMOVIVA.IMPONIBILE</source>
<prescript description="B1.100 PRESCRIPT">MESSAGE ADD,F2.100</prescript>
</field>
<field x="107" type="Numero" align="right" width="12" id="101" pattern="1" text="###.###.###,@@">
<source>RMOVIVA.IMPOSTA</source>
<prescript description="B1.101 PRESCRIPT">MESSAGE ADD,F2.101</prescript>
</field>
<field x="120" type="Stringa" width="4" id="105" pattern="1">
<source>RMOVIVA.CODIVA</source>
</field>
</section>
<section type="Foot" pattern="1" />
<section type="Foot" level="1" pattern="1">
<field border="2" x="2" y="0.5" type="Linea" width="117" height="0" pattern="1" />
<field x="1" y="1" type="Stringa" align="right" width="86" pattern="1">
<source>"TOTALE: " +#H1.1</source>
</field>
<field x="88" y="1" type="Valuta" align="right" width="15" id="100" pattern="1" text="###.###.###,@@" />
<field x="103.5" y="1" type="Valuta" align="right" width="12" id="101" pattern="1" text="###.###.###,@@" />
</section>
<section type="Foot" level="2" height="1" pattern="1">
<field x="2" type="Numero" align="right" link="23.NUMREG" width="7" pattern="1">
<source>#B1.5</source>
</field>
<field x="10" type="Numero" hidden="1" align="right" width="3" pattern="1">
<source>RMOVIVA.NUMRIG</source>
</field>
<field x="13" type="Data" width="10" pattern="1">
<source>#B1.15</source>
</field>
<field x="23" type="Stringa" hidden="1" width="1" pattern="1">
<source>RMOVIVA.INTRA</source>
</field>
<field x="24" type="Data" width="10" pattern="1">
<source>#B1.25</source>
</field>
<field x="35" type="Stringa" width="7" pattern="1">
<source>#B1.30</source>
</field>
<field x="43" type="Stringa" width="4" pattern="1">
<source>#B1.35</source>
</field>
<field x="48" type="Stringa" width="40" pattern="1">
<source>#B1.40</source>
</field>
<field x="116.5" type="Stringa" width="4" pattern="1">
<source>#B1.105</source>
</field>
<field x="121.5" type="Stringa" hidden="1" width="10" pattern="1">
<source>201@.S3</source>
</field>
<field x="88" type="Valuta" align="right" width="15" id="100" pattern="1" text="###.###.###,@@">
<prescript description="F2.100 PRESCRIPT">MESSAGE ADD,F1.100</prescript>
</field>
<field x="103.5" type="Valuta" align="right" width="12" id="101" pattern="1" text="###.###.###,@@">
<prescript description="F2.101 PRESCRIPT">MESSAGE ADD,F1.101</prescript>
</field>
</section>
<sql>USE RMOVIVA SELECT (23.ANNOIVA=#ANNO)&#26;&#26;(23.TIPO="F")&#26;&#26;(INTRA="X")&#26;&#26;(201@.S3="")&#26;&#26;(202@.B1!="X")
JOIN MOV INTO NUMREG==NUMREG
JOIN 20 TO MOV INTO TIPOCF==TIPO CODCF==CODCF
JOIN %IVA ALIAS 201 INTO CODTAB==CODIVA
JOIN %STA TO CLIFO ALIAS 202 INTO CODTAB==STATOCF</sql>
</report>

149
src/cg/cg7700f.rep Normal file
View File

@ -0,0 +1,149 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report name="cg7700f" orientation="1" lpi="6">
<description>Dichiarazione IVA Quadro VF 24-5 - San Marino</description>
<font face="Arial" size="8" />
<section type="Head" pattern="1">
<field x="88" type="Stringa" align="right" width="30" pattern="1">
<source>"Pag. " +#PAGE</source>
</field>
<field x="2" y="0.75" type="Testo" align="right" width="7" pattern="1" text="Num.Reg" />
<field x="10" y="0.75" type="Testo" hidden="1" width="3" pattern="1" text="N.R." />
<field x="14" y="0.75" type="Testo" width="10" pattern="1" text="Data Reg." />
<field x="25" y="0.75" type="Stringa" hidden="1" width="1" pattern="1">
<source>RMOVIVA.INTRA</source>
</field>
<field x="27" y="0.75" type="Testo" width="10" pattern="1" text="Data Doc." />
<field x="38" y="0.75" type="Testo" width="7" pattern="1" text="N. Doc." />
<field x="46" y="0.75" type="Testo" width="4" pattern="1" text="Caus" />
<field x="51" y="0.75" type="Testo" width="50" pattern="1" text="Fornitore Ragione Sociale" />
<field x="92" y="0.75" type="Testo" align="right" width="13" pattern="1" text="Imponibile" />
<field x="104.5" y="0.75" type="Testo" align="right" width="10" pattern="1" text="Imposta" />
<field x="116" y="0.75" type="Testo" width="4" pattern="1" text="C.Iva" />
<field border="2" x="2" y="1.75" type="Linea" width="117" height="0" pattern="1" />
</section>
<section type="Head" level="1" pattern="1">
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1</prescript>
<field x="2" type="Stringa" width="40" pattern="1">
<font face="Arial" bold="1" size="8" />
<source>#SYSTEM.RAGSOC</source>
</field>
<field x="90" type="Stringa" align="right" width="30" pattern="1">
<source>"Data di Stampa: " +#SYSTEM.DATE</source>
</field>
<field border="1" x="2" y="1" type="Stringa" align="center" width="117" pattern="1">
<source>"ELENCO FATTURE ACQUISTO DA SAN MARINO - " +#ANNO</source>
</field>
</section>
<section type="Head" level="2" hidden="1" pattern="1">
<groupby>NUMREG+CODIVA</groupby>
<prescript description="H2 PRESCRIPT">MESSAGE RESET,F2</prescript>
<field type="Stringa" width="10" pattern="1">
<source>NUMREG+" "+CODIVA</source>
</field>
</section>
<section type="Body" pattern="1" />
<section type="Body" level="1" hidden="1" bg_color="#D9FFD9" pattern="2">
<field x="121" type="Stringa" width="3" pattern="1">
<source>201@.S3</source>
</field>
<field x="125" type="Stringa" width="3" pattern="1">
<source>202@.B1</source>
</field>
<field x="132" type="Stringa" width="10" pattern="1">
<source>202@.S0</source>
</field>
<field x="2" type="Numero" align="right" width="7" id="5" pattern="1">
<source>RMOVIVA.NUMREG</source>
</field>
<field x="10" type="Numero" align="right" width="3" id="10" pattern="1">
<source>RMOVIVA.NUMRIG</source>
</field>
<field x="14" type="Data" width="10" id="15" pattern="1">
<source>MOV.DATAREG</source>
</field>
<field x="25" type="Stringa" width="1" id="20" pattern="1">
<source>RMOVIVA.INTRA</source>
</field>
<field x="27" type="Data" width="10" id="25" pattern="1">
<source>MOV.DATADOC</source>
</field>
<field x="38" type="Stringa" width="7" id="30" pattern="1">
<source>MOV.NUMDOC</source>
</field>
<field x="46" type="Stringa" width="4" id="35" pattern="1">
<source>MOV.CODCAUS</source>
</field>
<field x="51" type="Stringa" width="40" id="40" pattern="1">
<source>CLIFO.RAGSOC</source>
</field>
<field x="92" type="Valuta" align="right" width="13" id="100" pattern="1" text="###.###.###,@@">
<source>RMOVIVA.IMPONIBILE</source>
<prescript description="B1.100 PRESCRIPT">MESSAGE ADD,F2.100</prescript>
</field>
<field x="105" type="Numero" align="right" width="10" id="101" pattern="1" text="###.###.###,@@">
<source>RMOVIVA.IMPOSTA</source>
<prescript description="B1.101 PRESCRIPT">MESSAGE ADD,F2.101</prescript>
</field>
<field x="116" type="Stringa" width="4" id="105" pattern="1">
<source>RMOVIVA.CODIVA</source>
</field>
</section>
<section type="Foot" pattern="1" />
<section type="Foot" level="1" pattern="1">
<field border="2" x="2" y="0.5" type="Linea" width="117" height="0" pattern="1" />
<field x="35" y="1" type="Testo" align="right" width="50" pattern="1" text="TOTALE con pagamento IVA:" />
<field x="35" y="3" type="Testo" align="right" width="50" pattern="1" text="TOTALE senza pagamento IVA:" />
<field x="87" y="1" type="Valuta" align="right" width="18" id="100" pattern="1" text="###.###.###,@@" />
<field x="87" y="3" type="Valuta" align="right" width="18" id="101" pattern="1" text="###.###.###,@@" />
</section>
<section type="Foot" level="2" height="1" pattern="1">
<field x="2" type="Numero" align="right" link="23.NUMREG" width="7" pattern="1">
<source>#B1.5</source>
</field>
<field x="10" type="Numero" hidden="1" align="right" width="3" pattern="1">
<source>RMOVIVA.NUMRIG</source>
</field>
<field x="14" type="Data" width="10" pattern="1">
<source>#B1.15</source>
</field>
<field x="25" type="Stringa" hidden="1" width="1" pattern="1">
<source>RMOVIVA.INTRA</source>
</field>
<field x="27" type="Data" width="10" pattern="1">
<source>#B1.25</source>
</field>
<field x="38" type="Stringa" width="7" pattern="1">
<source>#B1.30</source>
</field>
<field x="46" type="Stringa" width="4" pattern="1">
<source>#B1.35</source>
</field>
<field x="51" type="Stringa" width="40" pattern="1">
<source>#B1.40</source>
</field>
<field x="116" type="Stringa" width="4" pattern="1">
<source>#B1.105</source>
</field>
<field x="126" type="Stringa" hidden="1" width="10" pattern="1">
<source>201@.S3</source>
</field>
<field x="92" type="Valuta" align="right" width="13" id="100" pattern="1" text="###.###.###,@@">
<prescript description="F2.100 PRESCRIPT">MESSAGE ADD,F1.100</prescript>
</field>
<field x="105" type="Valuta" align="right" width="10" id="101" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="F2.101 PRESCRIPT">#THIS @
0 &#3E; IF
#100 @
"F1.100" +!
ELSE
#100 @
"F1.101" +!
THEN</prescript>
</field>
</section>
<sql>USE RMOVIVA SELECT (23.ANNOIVA=#ANNO)&#26;&#26;(23.TIPO="F")&#26;&#26;(201@.S3="")&#26;&#26;(202@.B1="X")
JOIN MOV INTO NUMREG==NUMREG
JOIN 20 TO MOV INTO TIPOCF==TIPO CODCF==CODCF
JOIN %IVA ALIAS 201 INTO CODTAB==CODIVA
JOIN %STA TO CLIFO ALIAS 202 INTO CODTAB==STATOCF</sql>
</report>

165
src/cg/cg7700g.rep Normal file
View File

@ -0,0 +1,165 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report name="cg7700g" orientation="1" lpi="6">
<description>Dichiarazione IVA Quadro VF - VF25 1-4</description>
<font face="Arial" size="8" />
<section type="Head" pattern="1">
<field x="88" type="Stringa" align="right" width="30" pattern="1">
<source>"Pag. " +#PAGE</source>
</field>
<field x="2" y="0.75" type="Testo" align="right" width="7" pattern="1" text="Num.Reg" />
<field x="10" y="0.75" type="Testo" hidden="1" width="3" pattern="1" text="N.R." />
<field x="14" y="0.75" type="Testo" width="10" pattern="1" text="Data Reg." />
<field x="25" y="0.75" type="Stringa" hidden="1" width="1" pattern="1">
<source>RMOVIVA.INTRA</source>
</field>
<field x="27" y="0.75" type="Testo" width="10" pattern="1" text="Data Doc." />
<field x="38" y="0.75" type="Testo" width="7" pattern="1" text="N. Doc." />
<field x="46" y="0.75" type="Testo" width="4" pattern="1" text="Caus" />
<field x="51" y="0.75" type="Testo" width="50" pattern="1" text="Fornitore Ragione Sociale" />
<field x="92" y="0.75" type="Testo" align="right" width="13" pattern="1" text="Imponibile" />
<field x="104.5" y="0.75" type="Testo" align="right" width="10" pattern="1" text="Imposta" />
<field x="116" y="0.75" type="Testo" width="4" pattern="1" text="C.Iva" />
<field border="2" x="2" y="1.75" type="Linea" width="117" height="0" pattern="1" />
</section>
<section type="Head" level="1" pattern="1">
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1</prescript>
<field x="2" type="Stringa" width="40" pattern="1">
<font face="Arial" bold="1" size="8" />
<source>#SYSTEM.RAGSOC</source>
</field>
<field x="90" type="Stringa" align="right" width="30" pattern="1">
<source>"Data di Stampa: " +#SYSTEM.DATE</source>
</field>
<field border="1" x="2" y="1" type="Stringa" align="center" width="117" pattern="1">
<source>"RIPARTIZIONE TOTALE ACQUISTI E IMPORTAZIONI VF25 - 1&#2F;4 - " +#ANNO</source>
</field>
</section>
<section type="Head" level="2" hidden="1" pattern="1">
<groupby>NUMREG+CODIVA</groupby>
<prescript description="H2 PRESCRIPT">MESSAGE RESET,F2</prescript>
<field type="Stringa" width="10" pattern="1">
<source>NUMREG+" "+CODIVA</source>
</field>
</section>
<section type="Body" pattern="1" />
<section type="Body" level="1" hidden="1" bg_color="#D9FFD9" pattern="2">
<field x="2" type="Numero" align="right" width="7" id="5" pattern="1">
<source>RMOVIVA.NUMREG</source>
</field>
<field x="10" type="Numero" align="right" width="3" id="10" pattern="1">
<source>RMOVIVA.NUMRIG</source>
</field>
<field x="14" type="Data" width="10" id="15" pattern="1">
<source>MOV.DATAREG</source>
</field>
<field x="25" type="Stringa" width="1" id="20" pattern="1">
<source>RMOVIVA.INTRA</source>
</field>
<field x="27" type="Data" width="10" id="25" pattern="1">
<source>MOV.DATADOC</source>
</field>
<field x="38" type="Stringa" width="7" id="30" pattern="1">
<source>MOV.NUMDOC</source>
</field>
<field x="46" type="Stringa" width="4" id="35" pattern="1">
<source>MOV.CODCAUS</source>
</field>
<field x="51" type="Stringa" width="40" id="40" pattern="1">
<source>CLIFO.RAGSOC</source>
</field>
<field x="92" type="Valuta" align="right" width="13" id="100" pattern="1" text="###.###.###,@@">
<source>RMOVIVA.IMPONIBILE</source>
<prescript description="B1.100 PRESCRIPT">MESSAGE ADD,F2.100</prescript>
</field>
<field x="105" type="Numero" align="right" width="10" id="101" pattern="1" text="###.###.###,@@">
<source>RMOVIVA.IMPOSTA</source>
<prescript description="B1.101 PRESCRIPT">MESSAGE ADD,F2.101</prescript>
</field>
<field x="116" type="Stringa" width="4" id="105" pattern="1">
<source>RMOVIVA.CODIVA</source>
</field>
<field x="121" type="Stringa" width="3" id="110" pattern="1">
<source>RMOVIVA.TIPOCR</source>
<prescript description="B1.110 PRESCRIPT">#100 @
"F1.1"
#THIS @
+
+!</prescript>
</field>
</section>
<section type="Foot" pattern="1" />
<section type="Foot" level="1" pattern="1">
<field border="2" x="2" y="0.5" type="Linea" width="117" height="0" pattern="1" />
<field x="35" y="1" type="Testo" align="right" width="50" pattern="1" text="Ripartizione totale acquisti e importazioni :" />
<field x="5" y="3" type="Testo" align="right" width="80" pattern="1" text="Beni ammortizzabili - VF25 - 1:" />
<field x="5" y="4" type="Testo" align="right" width="80" pattern="1" text="Beni strumentali non ammortizzabili - VF25 - 2:" />
<field x="5" y="5" type="Testo" align="right" width="80" pattern="1" text="Beni destinati alla rivendita ovvero alla produzione di beni e servizi - VF25 - 3:" />
<field x="5" y="6" type="Testo" align="right" width="80" pattern="1" text="Altri acquisti e importazioni - VF25 - 4:" />
<field x="106" y="3" type="Valuta" hidden="1" align="right" width="18" id="10" pattern="1" text="###.###.###,@@" />
<field x="106" y="4" type="Valuta" hidden="1" align="right" width="18" id="11" pattern="1" text="###.###.###,@@" />
<field x="106" y="5" type="Valuta" hidden="1" align="right" width="18" id="12" pattern="1" text="###.###.###,@@" />
<field x="106" y="6" type="Valuta" hidden="1" align="right" width="18" id="13" pattern="1" text="###.###.###,@@" />
<field x="106" y="7" type="Valuta" hidden="1" align="right" width="18" id="14" pattern="1" text="###.###.###,@@" />
<field x="124" y="3" type="Valuta" hidden="1" align="right" width="18" id="15" pattern="1" text="###.###.###,@@" />
<field x="124" y="4" type="Valuta" hidden="1" align="right" width="18" id="18" pattern="1" text="###.###.###,@@" />
<field x="124" y="5" type="Valuta" hidden="1" align="right" width="18" id="19" pattern="1" text="###.###.###,@@" />
<field x="87" y="1" type="Valuta" align="right" width="18" id="100" pattern="1" text="###.###.###,@@" />
<field x="105" y="1" type="Valuta" align="right" width="12" id="101" pattern="1" text="###.###.###,@@" />
<field x="87" y="3" type="Valuta" align="right" width="18" id="112" pattern="1" text="###.###.###,@@">
<source>#12</source>
</field>
<field x="87" y="4" type="Valuta" align="right" width="18" id="113" pattern="1" text="###.###.###,@@">
<source>#18</source>
</field>
<field x="87" y="5" type="Valuta" align="right" width="18" id="114" pattern="1" text="###.###.###,@@">
<source>#11</source>
</field>
<field x="124" y="6" type="Valuta" hidden="1" align="right" width="18" id="117" pattern="1" text="###.###.###,@@" />
<field x="87" y="6" type="Valuta" align="right" width="18" id="120" pattern="1" text="###.###.###,@@">
<source>#10+#13+#15+#19+#117</source>
</field>
</section>
<section type="Foot" level="2" height="1" pattern="1">
<field x="2" type="Numero" align="right" link="23.NUMREG" width="7" pattern="1">
<source>#B1.5</source>
</field>
<field x="10" type="Numero" hidden="1" align="right" width="3" pattern="1">
<source>RMOVIVA.NUMRIG</source>
</field>
<field x="14" type="Data" width="10" pattern="1">
<source>#B1.15</source>
</field>
<field x="25" type="Stringa" hidden="1" width="1" pattern="1">
<source>RMOVIVA.INTRA</source>
</field>
<field x="27" type="Data" width="10" pattern="1">
<source>#B1.25</source>
</field>
<field x="38" type="Stringa" width="7" pattern="1">
<source>#B1.30</source>
</field>
<field x="46" type="Stringa" width="4" pattern="1">
<source>#B1.35</source>
</field>
<field x="51" type="Stringa" width="40" pattern="1">
<source>#B1.40</source>
</field>
<field x="92" type="Valuta" align="right" width="13" id="100" pattern="1" text="###.###.###,@@">
<prescript description="F2.100 PRESCRIPT">MESSAGE ADD,F1.100</prescript>
</field>
<field x="105" type="Valuta" align="right" width="10" id="101" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="F2.101 PRESCRIPT">MESSAGE ADD,F1.101</prescript>
</field>
<field x="116" type="Stringa" width="4" id="105" pattern="1">
<source>#B1.105</source>
</field>
<field x="121" type="Stringa" width="2" id="110" pattern="1">
<source>#B1.110</source>
</field>
</section>
<sql>USE RMOVIVA SELECT (23.ANNOIVA=#ANNO)&#26;&#26;(23.TIPO="F")
JOIN MOV INTO NUMREG==NUMREG
JOIN 20 TO MOV INTO TIPOCF==TIPO CODCF==CODCF
JOIN %IVA ALIAS 201 INTO CODTAB==CODIVA
JOIN %STA TO CLIFO ALIAS 202 INTO CODTAB==STATOCF</sql>
</report>

128
src/cg/cg7800a.uml Normal file
View File

@ -0,0 +1,128 @@
#include "cg7400a.h"
TOOLBAR "Toolbar" 0 0 0 2
BUTTON DLG_ALLFIRMS 2 2
BEGIN
PROMPT 2 1 "Tutte le ditte"
PICTURE TOOL_CHECK
END
BUTTON DLG_ALLREPORTS 2 2
BEGIN
PROMPT 2 1 "Tutte le stampe"
PICTURE TOOL_SETPRINT
END
#include <printbar.h>
ENDPAGE
PAGE "Quadro VJ" 0 0 0 0
NUMBER F_YEAR 4
BEGIN
PROMPT 3 2 "Anno "
FLAGS "A-"
END
SPREADSHEET F_DITTE 66 8
BEGIN
PROMPT 7 4 " "
ITEM ""
ITEM "Codice"
ITEM "Ragione Sociale@50"
END
SPREADSHEET F_REPORTS 83 10
BEGIN
PROMPT 1 14 ""
ITEM ""
ITEM "Codice"
ITEM "Descrizione@60"
ITEM "Nome@6"
END
ENDPAGE
ENDMASK
PAGE "Ditte" -1 -1 78 6
BOOLEAN S_CHKDITTA
BEGIN
PROMPT 3 2 "Selezionata"
END
NUMBER S_CODDITTA 5
BEGIN
PROMPT 3 4 "Ditta "
FLAGS "D"
END
STRING S_RAGSOC 50
BEGIN
PROMPT 20 4 ""
FLAGS "D"
END
ENDPAGE
TOOLBAR "topbar" 0 0 0 2
BUTTON DLG_OK 2 2
BEGIN
PROMPT 1 1 ""
END
BUTTON DLG_CANCEL 10 2
BEGIN
PROMPT 2 1 ""
END
ENDPAGE
ENDMASK
PAGE "Reports" -1 -1 78 6
BOOLEAN S_CHKREPORT
BEGIN
PROMPT 3 2 "Selezionata"
END
STRING S_CODEREPORT 2
BEGIN
PROMPT 3 4 "Codice "
FLAGS "D"
END
STRING S_NAMEREPORT 7
BEGIN
PROMPT 3 6 "Report "
FLAGS "D"
END
STRING S_DESCREPORT 60
BEGIN
PROMPT 20 6 ""
FLAGS "D"
END
ENDPAGE
TOOLBAR "topbar" 0 0 0 2
BUTTON DLG_OK 2 2
BEGIN
PROMPT 1 1 ""
END
BUTTON DLG_CANCEL 10 2
BEGIN
PROMPT 2 1 ""
END
ENDPAGE
ENDMASK

View File

@ -287,5 +287,6 @@ Picture = <cg01>
Module = 7
Flags = ""
Item_01 = "Quadro VE", "cg7 -5", "F"
Item_02 = "Quadro VF", "cg5 -6", "F"
Item_02 = "Quadro VF", "cg7 -6", "F"
Item_03 = "Quadro VJ", "cg7 -7", "F"
Item_03 = "Quadro VT", "cg5 -8", "F"