Patch level : 12.0 358

Files correlati     : ic0100f.rep ic0200p.rep

Aggiunto il totale dell'IVA indetraibile per la stampe dell'IVA per cassa





git-svn-id: svn://10.65.10.50/branches/R_10_00@23663 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
bonazzi 2017-02-25 15:47:17 +00:00
parent 6a9fc22db2
commit e795d24099
2 changed files with 312 additions and 43 deletions

View File

@ -18,9 +18,12 @@
<section type="Head" level="2" pattern="1">
<groupby>NUMREG</groupby>
<font face="Arial" bold="1" size="10" />
<prescript description="H2 PRESCRIPT">0 #F2.101 !
<prescript description="H2 PRESCRIPT">MESSAGE RESET,F2</prescript>
<postscript description="H2 POSTSCRIPT">0 #F2.101 !
0 #F2.102 !
0 #F2.103 !</prescript>
0 #F2.103 !
0 #F2.203 !
</postscript>
<field border="3" y="0.5" type="Linea" width="90" height="0" pattern="1" />
<field y="1" type="Testo" width="8" pattern="1" text="Fattura" />
<field x="8" y="1" type="Stringa" width="10" pattern="1">
@ -37,7 +40,8 @@
<field x="25" y="2" type="Testo" align="right" width="15" pattern="1" text="Importo" />
<field x="40" y="2" type="Testo" align="right" width="15" pattern="1" text="Imponibile" />
<field x="56" y="2" type="Testo" align="right" width="4" pattern="1" text="IVA" />
<field x="60" y="2" type="Testo" align="right" width="15" pattern="1" text="Imposta" />
<field x="61" y="2" type="Testo" width="3" pattern="1" text="Ind." />
<field x="63" y="2" type="Testo" align="right" width="15" pattern="1" text="Imposta" />
<field x="80" y="2" type="Testo" width="6" pattern="1" text="Chiusa" />
<field y="3" type="Numero" align="right" link="MOV.NUMREG" width="7" pattern="1" hide_zero="1">
<source>NUMREG</source>
@ -82,7 +86,14 @@ ELSE
THEN
#THIS @
*
#F2.101 +!</postscript>
#101 @
"X"
=
IF
#F2.201 +!
ELSE
#F2.101 +!
THEN</postscript>
</field>
<field x="40" type="Valuta" align="right" width="15" pattern="1" text="###.###.###,@@">
<source>IMPONIBILE</source>
@ -96,25 +107,18 @@ ELSE
THEN
#THIS @
*
#F2.102 +!</postscript>
#101 @
"X"
=
IF
#F2.202 +!
ELSE
#F2.102 +!
THEN</postscript>
</field>
<field x="56" type="Stringa" align="right" width="4" pattern="1">
<source>CODIVA</source>
</field>
<field x="60" type="Valuta" align="right" width="15" pattern="1" text="###.###.###,@@">
<source>IMPOSTA</source>
<postscript description="B1.0 POSTSCRIPT">#100 @
"A"
=
IF
-1
ELSE
1
THEN
#THIS @
*
#F2.103 +!</postscript>
</field>
<field x="83" type="Booleano" width="1" pattern="1">
<source>CHIUSA</source>
</field>
@ -125,11 +129,36 @@ THEN
<li Value="Avere" Code="A" />
</list>
</field>
<field x="61" type="Stringa" width="1" id="101" pattern="1">
<source>IVADIFF.INDETR</source>
</field>
<field x="63" type="Valuta" align="right" width="15" id="110" pattern="1" text="###.###.###,@@">
<source>IMPOSTA</source>
<postscript description="B1.110 POSTSCRIPT">#100 @
"A"
=
IF
-1
ELSE
1
THEN
#THIS @
*
#101 @
"X"
=
IF
#F2.203 +!
ELSE
#F2.103 +!
THEN</postscript>
</field>
</section>
<section type="Foot" pattern="1" />
<section type="Foot" level="1" height="2" pattern="1">
<section type="Foot" level="1" height="3" pattern="1">
<field border="1" y="0.25" type="Linea" width="90" height="0" pattern="1" />
<field x="4" y="0.5" type="Testo" width="15" pattern="1" text="Totale Generale" />
<field x="4" y="2" type="Testo" width="20" pattern="1" text="Totale Indetraibile" />
<field x="19" y="0.5" type="Array" width="5" id="100" pattern="1">
<source>SEZIONE</source>
<list>
@ -164,7 +193,7 @@ IF
THEN
</prescript>
</field>
<field x="60" y="0.5" type="Valuta" align="right" width="15" id="103" pattern="1" text="###.###.###,@@">
<field x="63" y="0.5" type="Valuta" align="right" width="15" id="103" pattern="1" text="###.###.###,@@">
<prescript description="F1.103 PRESCRIPT">#THIS @
0
&#3C;
@ -173,12 +202,51 @@ IF
-1
*
#THIS !
THEN</prescript>
</field>
<field x="25" y="2" type="Valuta" align="right" width="15" id="201" pattern="1" text="###.###.###,@@">
<prescript description="F1.201 PRESCRIPT">#THIS @
0
&#3C;
IF
"A" #100 !
#THIS @
-1
*
#THIS !
ELSE
"D" #100 !
THEN
</prescript>
</field>
<field x="40" y="2" type="Valuta" align="right" width="15" id="202" pattern="1" text="###.###.###,@@">
<prescript description="F1.202 PRESCRIPT">#THIS @
0
&#3C;
IF
#THIS @
-1
*
#THIS !
THEN
</prescript>
</field>
<field x="63" y="2" type="Valuta" align="right" width="15" id="203" pattern="1" text="###.###.###,@@">
<prescript description="F1.203 PRESCRIPT">#THIS @
0
&#3C;
IF
#THIS @
-1
*
#THIS !
THEN</prescript>
</field>
</section>
<section type="Foot" level="2" height="2" pattern="1">
<section type="Foot" level="2" height="3" pattern="1">
<field border="1" y="0.25" type="Linea" width="90" height="0" pattern="1" />
<field x="4" y="0.5" type="Testo" width="10" pattern="1" text="Totale" />
<field x="4" y="2" type="Testo" align="right" width="14" pattern="1" text="Indetraibile" />
<field x="19" y="0.5" type="Array" width="5" id="100" pattern="1">
<source>SEZIONE</source>
<list>
@ -234,7 +302,7 @@ THEN
*
#F1.102 +!</postscript>
</field>
<field x="60" y="0.5" type="Valuta" align="right" width="15" id="103" pattern="1" text="###.###.###,@@">
<field x="63" y="0.5" type="Valuta" align="right" width="15" id="103" pattern="1" text="###.###.###,@@">
<prescript description="F2.103 PRESCRIPT">#THIS @
0
&#3C;
@ -256,6 +324,76 @@ THEN
*
#F1.103 +!</postscript>
</field>
<field x="25" y="2" type="Valuta" align="right" width="15" id="201" pattern="1" text="###.###.###,@@">
<prescript description="F2.201 PRESCRIPT">#THIS @
0
&#3C;
IF
"A" #100 !
#THIS @
-1
*
#THIS !
ELSE
"D" #100 !
THEN
</prescript>
<postscript description="F2.201 POSTSCRIPT">#100 @
"A"
=
IF
-1
ELSE
1
THEN
#THIS @
*
#F1.201 +!</postscript>
</field>
<field x="40" y="2" type="Valuta" align="right" width="15" id="202" pattern="1" text="###.###.###,@@">
<prescript description="F2.202 PRESCRIPT">#THIS @
0
&#3C;
IF
#THIS @
-1
*
#THIS !
THEN</prescript>
<postscript description="F2.202 POSTSCRIPT">#100 @
"A"
=
IF
-1
ELSE
1
THEN
#THIS @
*
#F1.202 +!</postscript>
</field>
<field x="63" y="2" type="Valuta" align="right" width="15" id="203" pattern="1" text="###.###.###,@@">
<prescript description="F2.203 PRESCRIPT">#THIS @
0
&#3C;
IF
#THIS @
-1
*
#THIS !
THEN</prescript>
<postscript description="F2.203 POSTSCRIPT">#100 @
"A"
=
IF
-1
ELSE
1
THEN
#THIS @
*
#F1.203 +!</postscript>
</field>
</section>
<sql>USE IVADIFF SELECT (BETWEEN(DATAREG,#DAL,#AL))&#26;&#26;(TIPOIVA==#TIPOIVA)&#26;&#26;(TIPODIFF==#TIPODIFF)&#26;&#26;((CHIUSA=#CHIUSA)||(#CHIUSA="T"))
JOIN MOV INTO NUMREG==NUMREG

View File

@ -1,11 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report name="ic0200p" lpi="6">
<report name="IC0200P" lpi="6">
<font face="Arial" size="10" />
<section type="Head" pattern="1" />
<section type="Head" level="1" pattern="1">
<prescript description="H1 PRESCRIPT">0 #F1.101 !
0 #F1.102 !
0 #F1.103 !</prescript>
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1</prescript>
<field type="Stringa" align="center" width="90" height="2" pattern="1">
<font face="Arial" bold="1" size="20" />
<source>IF(#TIPOIVA==1,"INCASSI", "PAGAMENTI") + " CON IVA " + IF(#TIPODIFF==1,"DIFFERITA", "PER CASSA")</source>
@ -18,9 +16,7 @@
<section type="Head" level="2" pattern="1">
<groupby>NUMREG</groupby>
<font face="Arial" bold="1" size="10" />
<prescript description="H2 PRESCRIPT">0 #F2.101 !
0 #F2.102 !
0 #F2.103 !</prescript>
<prescript description="H2 PRESCRIPT">MESSAGE RESET,F2</prescript>
<field border="3" y="0.5" type="Linea" width="90" height="0" pattern="1" />
<field y="1" type="Testo" width="8" pattern="1" text="Fattura" />
<field x="8" y="1" type="Stringa" width="10" pattern="1">
@ -37,7 +33,8 @@
<field x="25" y="2" type="Testo" align="right" width="15" pattern="1" text="Importo" />
<field x="40" y="2" type="Testo" align="right" width="15" pattern="1" text="Imponibile" />
<field x="56" y="2" type="Testo" align="right" width="4" pattern="1" text="IVA" />
<field x="60" y="2" type="Testo" align="right" width="15" pattern="1" text="Imposta" />
<field x="61" y="2" type="Testo" width="3" pattern="1" text="Ind." />
<field x="63" y="2" type="Testo" align="right" width="15" pattern="1" text="Imposta" />
<field x="80" y="2" type="Testo" width="6" pattern="1" text="Chiusa" />
<field y="3" type="Numero" align="right" link="MOV.NUMREG" width="7" pattern="1" hide_zero="1">
<source>NUMREG</source>
@ -80,7 +77,14 @@ ELSE
THEN
#THIS @
*
#F2.101 +!</postscript>
#101 @
"X"
=
IF
#F2.201 +!
ELSE
#F2.101 +!
THEN</postscript>
</field>
<field x="40" type="Valuta" align="right" width="15" pattern="1" text="###.###.###,@@">
<source>IMPONIBILE</source>
@ -94,12 +98,19 @@ ELSE
THEN
#THIS @
*
#F2.102 +!</postscript>
#101 @
"X"
=
IF
#F2.202 +!
ELSE
#F2.102 +!
THEN</postscript>
</field>
<field x="56" type="Stringa" align="right" width="4" pattern="1">
<source>CODIVA</source>
</field>
<field x="60" type="Valuta" align="right" width="15" pattern="1" text="###.###.###,@@">
<field x="63" type="Valuta" align="right" width="15" pattern="1" text="###.###.###,@@">
<source>IMPOSTA</source>
<postscript description="B1.0 POSTSCRIPT">#100 @
"A"
@ -111,7 +122,14 @@ ELSE
THEN
#THIS @
*
#F2.103 +!</postscript>
#101 @
"X"
=
IF
#F2.203 +!
ELSE
#F2.103 +!
THEN</postscript>
</field>
<field x="83" type="Booleano" valign="center" width="1" pattern="1">
<source>CHIUSA</source>
@ -123,11 +141,15 @@ THEN
<li Value="Avere" Code="A" />
</list>
</field>
<field x="61" type="Stringa" width="1" id="101" pattern="1">
<source>IVADIFF.INDETR</source>
</field>
</section>
<section type="Foot" pattern="1" />
<section type="Foot" level="1" height="2" pattern="1">
<section type="Foot" level="1" height="3" pattern="1">
<field border="1" y="0.25" type="Linea" width="90" height="0" pattern="1" />
<field x="4" y="0.5" type="Testo" width="14" pattern="1" text="Totale Generale" />
<field x="4" y="2" type="Testo" width="20" pattern="1" text="Totale Indetraibile" />
<field x="19" y="0.5" type="Array" width="5" id="100" pattern="1">
<source>SEZIONE</source>
<list>
@ -161,7 +183,7 @@ IF
#THIS !
THEN</prescript>
</field>
<field x="60" y="0.5" type="Valuta" align="right" width="15" id="103" pattern="1" text="###.###.###,@@">
<field x="63" y="0.5" type="Valuta" align="right" width="15" id="103" pattern="1" text="###.###.###,@@">
<prescript description="F1.103 PRESCRIPT">#THIS @
0
&#3C;
@ -170,20 +192,59 @@ IF
-1
*
#THIS !
THEN</prescript>
</field>
<field x="25" y="2" type="Valuta" align="right" width="15" id="201" pattern="1" text="###.###.###,@@">
<prescript>#THIS @
0
&#3C;
IF
"A" #100 !
#THIS @
-1
*
#THIS !
ELSE
"D" #100 !
THEN
</prescript>
</field>
<field x="40" y="2" type="Valuta" align="right" width="15" id="202" pattern="1" text="###.###.###,@@">
<prescript>#THIS @
0
&#3C;
IF
#THIS @
-1
*
#THIS !
THEN
</prescript>
</field>
<field x="63" y="2" type="Valuta" align="right" width="15" id="203" pattern="1" text="###.###.###,@@">
<prescript>#THIS @
0
&#3C;
IF
#THIS @
-1
*
#THIS !
THEN</prescript>
</field>
</section>
<section type="Foot" level="2" height="2" pattern="1">
<section type="Foot" level="2" height="3" pattern="1">
<field border="1" y="0.25" type="Linea" width="90" height="0" pattern="1" />
<field x="4.5" y="0.5" type="Testo" width="10" pattern="1" text="Totale" />
<field x="19.5" y="0.5" type="Array" width="5" id="100" pattern="1">
<field x="5" y="0.5" type="Testo" width="10" pattern="1" text="Totale" />
<field x="4" y="2" type="Testo" align="right" width="14" pattern="1" text="Indetraibile" />
<field x="19" y="0.5" type="Array" width="5" id="100" pattern="1">
<source>SEZIONE</source>
<list>
<li Value="Dare" Code="D" />
<li Value="Avere" Code="A" />
</list>
</field>
<field x="25.5" y="0.5" type="Valuta" align="right" width="15" id="101" pattern="1" text="###.###.###,@@">
<field x="25" y="0.5" type="Valuta" align="right" width="15" id="101" pattern="1" text="###.###.###,@@">
<prescript description="F2.101 PRESCRIPT">#THIS @
0
&#3C;
@ -209,7 +270,7 @@ THEN
*
#F1.101 +!</postscript>
</field>
<field x="40.5" y="0.5" type="Valuta" align="right" width="15" id="102" pattern="1" text="###.###.###,@@">
<field x="40" y="0.5" type="Valuta" align="right" width="15" id="102" pattern="1" text="###.###.###,@@">
<prescript description="F2.102 PRESCRIPT">#THIS @
0
&#3C;
@ -231,7 +292,7 @@ THEN
*
#F1.102 +!</postscript>
</field>
<field x="60.5" y="0.5" type="Valuta" align="right" width="15" id="103" pattern="1" text="###.###.###,@@">
<field x="63" y="0.5" type="Valuta" align="right" width="15" id="103" pattern="1" text="###.###.###,@@">
<prescript description="F2.103 PRESCRIPT">#THIS @
0
&#3C;
@ -253,6 +314,76 @@ THEN
*
#F1.103 +!</postscript>
</field>
<field x="25" y="2" type="Valuta" align="right" width="15" id="201" pattern="1" text="###.###.###,@@">
<prescript>#THIS @
0
&#3C;
IF
"A" #100 !
#THIS @
-1
*
#THIS !
ELSE
"D" #100 !
THEN
</prescript>
<postscript>#100 @
"A"
=
IF
-1
ELSE
1
THEN
#THIS @
*
#F1.201 +!</postscript>
</field>
<field x="40" y="2" type="Valuta" align="right" width="15" id="202" pattern="1" text="###.###.###,@@">
<prescript>#THIS @
0
&#3C;
IF
#THIS @
-1
*
#THIS !
THEN</prescript>
<postscript>#100 @
"A"
=
IF
-1
ELSE
1
THEN
#THIS @
*
#F1.202 +!</postscript>
</field>
<field x="63" y="2" type="Valuta" align="right" width="15" id="203" pattern="1" text="###.###.###,@@">
<prescript>#THIS @
0
&#3C;
IF
#THIS @
-1
*
#THIS !
THEN</prescript>
<postscript>#100 @
"A"
=
IF
-1
ELSE
1
THEN
#THIS @
*
#F1.203 +!</postscript>
</field>
</section>
<sql>USE IVADIFF SELECT (BETWEEN(DATAREGP,#DAL,#AL))&#26;&#26;(TIPOIVA==#TIPOIVA)&#26;&#26;(TIPODIFF==#TIPODIFF)&#26;&#26;(NUMPRO&#3E;0)&#26;&#26;((CHIUSA=#CHIUSA)||(#CHIUSA="T"))
BY NUMREG DATAREGP NUMREGP