campo-sirio/src/ic/ic0200p.rep
bonazzi e795d24099 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
2017-02-25 15:47:17 +00:00

392 lines
9.1 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<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">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>
</field>
<field y="2" type="Stringa" align="center" width="90" pattern="1">
<font face="Arial" bold="1" size="10" />
<source>IF(#DAL="",""," DAL "+#DAL) + IF(#AL="","", " AL "+#AL)</source>
</field>
</section>
<section type="Head" level="2" pattern="1">
<groupby>NUMREG</groupby>
<font face="Arial" bold="1" size="10" />
<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">
<source>MOV.NUMDOC</source>
</field>
<field x="19" y="1" type="Testo" width="3" pattern="1" text="del" />
<field x="22" y="1" type="Data" width="10" pattern="1">
<source>MOV.DATADOC</source>
</field>
<field x="40" y="1" type="Stringa" width="50" pattern="1">
<source>CLIFO.RAGSOC</source>
</field>
<field x="19" y="2" type="Testo" width="7" pattern="1" text="Sezione" />
<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="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>
</field>
<field x="8" y="3" type="Data" width="10" pattern="1">
<source>DATAREG</source>
</field>
<field x="19" y="3" type="Array" width="5" pattern="1">
<source>IF(#TIPOIVA==1,"D","A")</source>
<list>
<li Value="Dare" Code="D" />
<li Value="Avere" Code="A" />
</list>
</field>
<field x="25" y="3" type="Valuta" align="right" width="15" pattern="1" text="###.###.###,@@">
<source>MOV.TOTDOC</source>
</field>
<field x="83" y="3" type="Booleano" valign="center" width="1" pattern="1">
<source>CHIUSA</source>
</field>
<field border="1" y="4.5" type="Linea" width="90" height="0" pattern="1" />
</section>
<section type="Body" pattern="1" />
<section type="Body" level="1" pattern="1">
<field type="Stringa" align="right" link="MOV.NUMREG" width="7" pattern="1">
<source>IF(NUMREGP==NUMREG,"",NUMREGP)</source>
</field>
<field x="8" type="Data" width="10" pattern="1">
<source>DATAREGP</source>
</field>
<field x="25" type="Valuta" align="right" width="15" pattern="1" text="###.###.###,@@">
<source>IMPORTO</source>
<postscript description="B1.0 POSTSCRIPT">#100 @
"A"
=
IF
-1
ELSE
1
THEN
#THIS @
*
#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>
<postscript description="B1.0 POSTSCRIPT">#100 @
"A"
=
IF
-1
ELSE
1
THEN
#THIS @
*
#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="63" 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 @
*
#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>
</field>
<field x="19" 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="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="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>
<li Value="Dare" Code="D" />
<li Value="Avere" Code="A" />
</list>
</field>
<field x="25" y="0.5" type="Valuta" align="right" width="15" id="101" pattern="1" text="###.###.###,@@">
<prescript description="F1.101 PRESCRIPT">#THIS @
0
&#3C;
IF
"A" #100 !
#THIS @
-1
*
#THIS !
ELSE
"D" #100 !
THEN
</prescript>
</field>
<field x="40" y="0.5" type="Valuta" align="right" width="15" id="102" pattern="1" text="###.###.###,@@">
<prescript description="F1.102 PRESCRIPT">#THIS @
0
&#3C;
IF
#THIS @
-1
*
#THIS !
THEN</prescript>
</field>
<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;
IF
#THIS @
-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="3" pattern="1">
<field border="1" y="0.25" type="Linea" width="90" height="0" 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" y="0.5" type="Valuta" align="right" width="15" id="101" pattern="1" text="###.###.###,@@">
<prescript description="F2.101 PRESCRIPT">#THIS @
0
&#3C;
IF
"A" #100 !
#THIS @
-1
*
#THIS !
ELSE
"D" #100 !
THEN
</prescript>
<postscript description="F2.101 POSTSCRIPT">#100 @
"A"
=
IF
-1
ELSE
1
THEN
#THIS @
*
#F1.101 +!</postscript>
</field>
<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;
IF
#THIS @
-1
*
#THIS !
THEN</prescript>
<postscript description="F2.102 POSTSCRIPT">#100 @
"A"
=
IF
-1
ELSE
1
THEN
#THIS @
*
#F1.102 +!</postscript>
</field>
<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;
IF
#THIS @
-1
*
#THIS !
THEN</prescript>
<postscript description="F2.103 POSTSCRIPT">#100 @
"A"
=
IF
-1
ELSE
1
THEN
#THIS @
*
#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
JOIN MOV INTO NUMREG==NUMREG
JOIN CLIFO TO MOV INTO TIPOCF==TIPO CODCF==CODCF</sql>
</report>