campo-sirio/src/f9/f9ProspIntegr.rep

271 lines
10 KiB
Plaintext
Raw Normal View History

<?xml version="1.0" encoding="UTF-8" ?>
<report name="f9ProspIntegr" lpi="6">
<description>Prospetto integ. Rev. Charge</description>
<font face="Arial" size="8" />
<section type="Head" pattern="1">
<field x="8" y="4" type="Data" width="12" pattern="1">
<font face="Arial" size="10" />
<source>TODAY</source>
</field>
<field x="8" y="5" type="Stringa" width="57" pattern="1">
<font face="Arial" size="10" />
<source>RAGSOC</source>
</field>
<field x="8" y="6" type="Stringa" width="57" pattern="1">
<font face="Arial" size="10" />
<source>ADDRSEDE</source>
</field>
<field x="8" y="7" type="Numero" align="right" width="8" pattern="1">
<font face="Arial" size="10" />
<source>CAP</source>
</field>
<field x="17" y="7" type="Stringa" width="4" pattern="1">
<font face="Arial" size="10" />
<source>PROVIN</source>
</field>
<field x="22" y="7" type="Stringa" width="33" pattern="1">
<font face="Arial" size="10" />
<source>CITTA</source>
</field>
<field x="8" y="8" type="Testo" width="16" pattern="1" text="Codice Fiscale: ">
<font face="Arial" size="10" />
</field>
<field x="27" y="8" type="Stringa" width="28" pattern="1" text="@@#########">
<font face="Arial" size="10" />
<source>CODFISC</source>
</field>
<field x="8" y="9" type="Testo" width="16" pattern="1" text="Partita IVA:">
<font face="Arial" size="10" />
</field>
<field x="27" y="9" type="Stringa" width="28" pattern="1" text="@@#########">
<font face="Arial" size="10" />
<source>PARTIVA</source>
</field>
<field x="25" y="13" type="Testo" align="center" width="70" height="2" pattern="1" text="PROSPETTO INTEGRATIVO ACQUISTO">
<font face="Bookman Old Style" size="14" />
</field>
<field x="8" y="16" type="Testo" width="26" pattern="1" text="Riferimento documento del">
<font face="Arial" size="10" />
</field>
<field x="34" y="16" type="Data" width="14" pattern="1">
<font face="Arial" size="10" />
<source>DATADOC</source>
</field>
<field x="60" y="16" type="Testo" width="2" pattern="1" text="F">
<font face="Arial" size="10" />
</field>
<field x="62" y="16" type="Stringa" width="13" pattern="1">
<font face="Arial" size="10" />
<source>CODFORN</source>
</field>
<field x="8" y="17" type="Testo" width="3" pattern="1" text="n.">
<font face="Arial" size="10" />
</field>
<field x="11" y="17" type="Stringa" width="37" pattern="1">
<font face="Arial" size="10" />
<source>NDOC</source>
</field>
<field x="60" y="17" type="Stringa" width="40" pattern="1">
<font face="Arial" size="10" />
<source>RAGSOCFORN</source>
</field>
<field x="60" y="18" type="Stringa" width="40" pattern="1">
<font face="Arial" size="10" />
<source>ADDRFORN</source>
</field>
<field x="60" y="19" type="Numero" align="right" width="7" pattern="1">
<font face="Arial" size="10" />
<source>CAPFORN</source>
</field>
<field x="68" y="19" type="Stringa" width="4" pattern="1">
<font face="Arial" size="10" />
<source>PROVINFORN</source>
</field>
<field x="73" y="19" type="Stringa" width="31" pattern="1">
<font face="Arial" size="10" />
<source>CITTAFORN</source>
</field>
<field x="60" y="20" type="Testo" width="11" pattern="1" text="Partita IVA:">
<font face="Arial" size="10" />
</field>
<field x="72" y="20" type="Stringa" width="28" pattern="1" text="@@#########">
<font face="Arial" size="10" />
<source>PARTIVAFORN</source>
</field>
<field x="8" y="22" type="Testo" width="18" pattern="1" text="Totale documento">
<font face="Arial" size="10" />
</field>
<field x="25" y="22" type="Valuta" align="right" width="26" pattern="1" text="###.###.###,@@">
<font face="Arial" size="10" />
<source>TOTDOC</source>
</field>
<field x="8" y="24" type="Testo" width="21" pattern="1" text="Protocollo IVA credito">
<font face="Arial" size="10" />
</field>
<field x="29" y="24" type="Stringa" align="right" width="7" pattern="1" text="@@#">
<font face="Arial" size="10" />
<source>REGACQ</source>
</field>
<field x="36" y="24" type="Testo" width="1" pattern="1" text="&#2F;">
<font face="Arial" size="10" />
</field>
<field x="37" y="24" type="Stringa" width="8" pattern="1">
<font face="Arial" size="10" />
<source>PROTIVAACQ</source>
</field>
<field x="46" y="24" type="Testo" width="4" pattern="1" text="del">
<font face="Arial" size="10" />
</field>
<field x="50" y="24" type="Data" width="15" pattern="1">
<font face="Arial" size="10" />
<source>DATAREGACQ</source>
</field>
<field x="8" y="25" type="Testo" width="21" pattern="1" text="Protocollo IVA debito">
<font face="Arial" size="10" />
</field>
<field x="29" y="25" type="Stringa" align="right" width="7" pattern="1" text="@@#">
<font face="Arial" size="10" />
<source>B.REG</source>
</field>
<field x="36" y="25" type="Testo" width="1" pattern="1" text="&#2F;">
<font face="Arial" size="10" />
</field>
<field x="37" y="25" type="Stringa" width="8" pattern="1">
<font face="Arial" size="10" />
<source>B.PROTIVA</source>
</field>
<field x="46" y="25" type="Testo" width="4" pattern="1" text="del">
<font face="Arial" size="10" />
</field>
<field x="50" y="25" type="Data" width="15" pattern="1">
<font face="Arial" size="10" />
<source>B.DATAREG</source>
</field>
<field x="27" y="29" type="Testo" align="center" width="18" pattern="1" text="TOTALE">
<font face="Arial" size="10" />
</field>
<field border="2" x="45" y="29" type="Linea" height="2" pattern="1" />
<field x="45" y="29" type="Testo" align="center" width="20" pattern="1" text="IMPONIBILE">
<font face="Arial" size="10" />
</field>
<field x="65" y="29" type="Testo" align="center" width="20" pattern="1" text="IMPOSTA">
<font face="Arial" size="10" />
</field>
<field border="2" x="65" y="29" type="Linea" height="2" pattern="1" />
<field x="27" y="30" type="Valuta" align="right" width="15" pattern="1" text="###.###.###,@@">
<font face="Arial" size="10" />
<source>TOTALE</source>
</field>
<field x="47" y="30" type="Valuta" align="right" width="16" pattern="1" text="###.###.###,@@">
<font face="Arial" size="10" />
<source>TOTIMPONIBILE</source>
</field>
<field x="67" y="30" type="Valuta" align="right" width="13" pattern="1" text="###.###.###,@@">
<font face="Arial" size="10" />
<source>TOTIMPOSTA</source>
</field>
<field x="7" y="34" type="Testo" align="center" width="29" pattern="1" text="IMPORTO CONTROVALORE">
<font face="Arial" size="10" />
</field>
<field x="35" y="34" type="Testo" align="center" width="10" pattern="1" text="% IVA">
<font face="Arial" size="10" />
</field>
<field border="2" x="36" y="34" type="Linea" pattern="1" />
<field border="2" x="45" y="34" type="Linea" pattern="1" />
<field x="45" y="34" type="Testo" align="center" width="20" pattern="1" text="VALORE IVA">
<font face="Arial" size="10" />
</field>
<field x="65" y="34" type="Testo" align="center" width="40" pattern="1" text="CONTO DI CONTROPARTITA">
<font face="Arial" size="10" />
</field>
<field border="2" x="65" y="34" type="Linea" pattern="1" />
</section>
<section type="Head" level="1" pattern="1">
<prescript description="H1 PRESCRIPT">#ATTESTA @
DUP
0 = IF
DROP
1
THEN
"H2.210" !
</prescript>
</section>
<section type="Body" pattern="1" />
<section type="Body" level="1" pattern="1">
<field x="14" type="Valuta" align="right" width="18" pattern="1" text="###.###.###,@@">
<font face="Arial" size="10" />
<source>B.IMPONIBILE</source>
</field>
<field x="36" type="Valuta" align="right" width="8" pattern="1" text="###.###.###,@@">
<font face="Arial" size="10" />
<source>R0</source>
</field>
<field border="2" x="36" type="Linea" pattern="1" />
<field border="2" x="45" type="Linea" pattern="1" />
<field x="47" type="Valuta" align="right" width="16" pattern="1" text="#########,@@">
<font face="Arial" size="10" />
<source>B.IMPOSTA</source>
</field>
<field border="2" x="65" type="Linea" pattern="1" />
<field x="66" type="Stringa" align="center" width="6" pattern="1">
<font face="Arial" size="10" />
<source>B.GRUPPO</source>
</field>
<field x="72" type="Testo" align="center" width="1" pattern="1" text="&#2F;">
<font face="Arial" size="10" />
</field>
<field x="73" type="Stringa" align="center" width="6" pattern="1">
<font face="Arial" size="10" />
<source>B.CONTO</source>
</field>
<field x="79" type="Testo" align="center" width="1" pattern="1" text="&#2F;">
<font face="Arial" size="10" />
</field>
<field x="80" type="Stringa" align="center" width="7" pattern="1">
<font face="Arial" size="10" />
<source>B.SOTTOCONTO</source>
</field>
<field x="89" type="Stringa" width="54" pattern="1">
<font face="Arial" size="10" />
<source>B.DESCR</source>
</field>
</section>
<section type="Foot" pattern="1" />
<section type="Foot" level="1" pattern="1">
<prescript description="F1 PRESCRIPT">#ATTESTA @
DUP
0 = IF
DROP
1
THEN
"H2.210" !
</prescript>
</section>
<sql>SELECT COD, CODTAB, S0, R0,
B.GRUPPO, B.CONTO, B.SOTTOCONTO, B.DESCR,
B.NUMREG, B.CODIVA, B.IMPONIBILE, B.IMPOSTA, B.GRUPPO, B.CONTO, B.SOTTOCONTO, B.DATAREG, B.DATADOC, B.REG, B.PROTIVA, B.TOTDOC,
'20200618' AS TODAY, 'ASSOCIAZIONE LIFE ONLUS' AS RAGSOC, 'VIA TRIVULZIO, 37' AS ADDRSEDE, '27029' AS CAP, 'VIGEVANO' AS CITTA, 'PV' AS PROVIN,
'01185390182' AS CODFISC, '01185390182' AS PARTIVA,
'63' AS NDOC, '30-12-2019' AS DATADOC,
'100075' AS CODFORN, 'IDRAULICA CM DI MANARA PAOLO' AS RAGSOCFORN, 'STRADA CASCINE BARBAVARA, 48' AS ADDRFORN, '27029' AS CAPFORN, 'VIGEVANO' AS CITTAFORN, 'PV' AS PROVINFORN, '02649550189' AS PARTIVAFORN,
'5000.000' AS TOTDOC,
'001' AS REGACQ, '261' AS PROTIVAACQ, '31-12-2019' AS DATAREGACQ,
'6100' AS TOTALE, '5000' AS TOTIMPONIBILE, '1100' AS TOTIMPOSTA
FROM(
SELECT PCON.GRUPPO, PCON.CONTO, PCON.SOTTOCONTO, PCON.DESCR,
A.NUMREG AS NUMREG, A.CODIVA, A.IMPONIBILE, A.IMPOSTA, A.GRUPPO, A.CONTO, A.SOTTOCONTO, A.DATAREG, A.DATADOC, A.REG, A.PROTIVA, A.TOTDOC
FROM(
SELECT RMOVIVA.NUMREG AS NUMREG, CODIVA, IMPONIBILE, IMPOSTA, GRUPPO, CONTO, SOTTOCONTO, DATAREG, DATADOC, REG, PROTIVA, TOTDOC
FROM RMOVIVA
JOIN MOV
ON MOV.NUMREG = RMOVIVA.NUMREG
WHERE MOV.NUMREG = '9553'
) A
JOIN PCON
ON PCON.GRUPPO = A.GRUPPO AND PCON.CONTO = A.CONTO AND PCON.SOTTOCONTO = A.SOTTOCONTO
) B
JOIN TABCOM
ON COD = 'IVA' AND CODTAB = B.CODIVA</sql>
</report>