creato nuovo report provvigioni agente per sapori veri in 2 versioni

This commit is contained in:
2025-12-05 09:31:33 +01:00
parent 746f447162
commit 908afe21be
2 changed files with 1284 additions and 0 deletions

View File

@@ -0,0 +1,685 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.21.3.final utlizzo versione della libreria JasperReports6.21.3-4a3078d20785ebe464f18037d738d12fc98c13cf -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="ProvvigioniAgente" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="d754f368-9c40-4c0a-baac-e8aa06a3f544">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="SAPORI_VERI\sapori_veri.xml"/>
<property name="com.jaspersoft.studio.data.sql.tables" value=""/>
<style name="LetturaFacilitata" mode="Transparent" backcolor="#FFFFFF">
<conditionalStyle>
<conditionExpression><![CDATA[($V{REPORT_COUNT} % 2) == 0?true:false]]></conditionExpression>
<style mode="Opaque" backcolor="#E6E6E6"/>
</conditionalStyle>
</style>
<parameter name="data_iniz" class="java.lang.String"/>
<parameter name="data_fine" class="java.lang.String"/>
<parameter name="cod_vage" class="java.lang.String"/>
<parameter name="perc_prov_fis" class="java.lang.String"/>
<queryString>
<![CDATA[WITH scadenze AS (SELECT ctb_scad.tipo_anag,
ctb_scad.cod_anag,
ctb_scad.anno_part,
ctb_scad.ser_doc,
ctb_scad.num_doc,
ctb_scad.data_doc,
SUM(IIF(data_pag IS NOT NULL AND data_pag BETWEEN $P{data_iniz} AND $P{data_fine}, imp_dare,
0)) AS incasso_periodo,
SUM(IIF(data_pag IS NOT NULL AND data_pag < $P{data_iniz}, imp_dare, 0)) AS incasso_periodo_prec,
SUM(IIF(data_pag IS NOT NULL, imp_dare, 0)) AS incasso_totale,
SUM(IIF(data_pag IS NULL, IIF(ctb_part.tipo_partita = 1, imp_dare, imp_avere),
0)) AS import_da_incassare,
sum(IIF(ctb_part.tipo_partita = 1, imp_dare, imp_avere)) as tot_scadenze
FROM ctb_scad
INNER JOIN ctb_part ON ctb_scad.tipo_anag = ctb_part.tipo_anag AND
ctb_scad.cod_anag = ctb_part.cod_anag AND
ctb_scad.anno_part = ctb_part.anno_part AND
ctb_scad.ser_doc = ctb_part.ser_doc AND
ctb_scad.num_doc = ctb_part.num_doc
GROUP BY ctb_scad.tipo_anag,
ctb_scad.tipo_anag,
ctb_scad.cod_anag,
ctb_scad.anno_part,
ctb_scad.ser_doc,
ctb_scad.num_doc,
ctb_scad.data_doc)
, documenti as (
SELECT dtb_doct.tipo_anag,
dtb_doct.cod_anag,
gtb_anag.rag_soc,
dtb_doct.cod_dtip_val,
dtb_doct.data_doc_val,
dtb_doct.ser_doc_val,
dtb_doct.num_doc_val,
dtb_doct.cod_vage,
vtb_agen.rag_soc as agente,
dtb_docr.perc_prov,
case when (dtb_tipi.segno_val_scar-dtb_tipi.segno_val_car)=1 then '+'
else '-' end AS 'S',
dtb_doct.tot_imponib ,
(dtb_doct.tot_imponib + dtb_doct.tot_iva) as tot_doc,
sum(importo_riga) as netto_merce
FROM dtb_doct
INNER JOIN dtb_docr ON dtb_doct.cod_anag = dtb_docr.cod_anag AND dtb_doct.cod_dtip = dtb_docr.cod_dtip AND
dtb_doct.data_doc = dtb_docr.data_doc AND dtb_doct.ser_doc = dtb_docr.ser_doc AND
dtb_doct.num_doc = dtb_docr.num_doc
INNER JOIN dtb_tipi ON dtb_doct.cod_dtip = dtb_tipi.cod_dtip
INNER JOIN vtb_agen ON dtb_doct.cod_vage = vtb_agen.cod_vage
INNER JOIN mtb_aart ON dtb_docr.cod_mart = mtb_aart.cod_mart
INNER JOIN gtb_anag on dtb_doct.cod_anag = gtb_anag.cod_anag
where dtb_tipi.tipo_emissione = 'DIRETTA'
GROUP BY dtb_doct.tipo_anag,
dtb_doct.cod_anag,
gtb_anag.rag_soc,
dtb_doct.cod_dtip_val,
dtb_doct.data_doc_val,
dtb_doct.ser_doc_val,
dtb_doct.num_doc_val,
dtb_tipi.segno_val_car,
dtb_tipi.segno_val_scar,
dtb_doct.cod_vage,
vtb_agen.rag_soc ,
dtb_docr.perc_prov,
dtb_doct.tot_imponib ,
dtb_doct.tot_iva)
SELECT documenti.cod_vage,
documenti.agente,
scadenze.tipo_anag,
scadenze.cod_anag,
documenti.rag_soc,
scadenze.anno_part,
scadenze.ser_doc,
scadenze.num_doc,
scadenze.data_doc,
scadenze.incasso_periodo,
scadenze.incasso_periodo_prec,
scadenze.incasso_totale,
scadenze.import_da_incassare,
documenti.tot_doc,
documenti.tot_imponib,
documenti.S,
documenti.netto_merce,
documenti.netto_merce*(scadenze.incasso_periodo / documenti.tot_doc) as netto_merce_periodo,
documenti.netto_merce*(scadenze.incasso_periodo / documenti.tot_doc)/100*$P{perc_prov_fis} as ProvFiss,
(scadenze.incasso_periodo / documenti.tot_doc) * 100 as perc_incasso_periodo,
((scadenze.incasso_periodo_prec + scadenze.incasso_periodo) / documenti.tot_doc) * 100 as perc_incasso_tot,
documenti.perc_prov,
azienda.nome_ditta
FROM scadenze inner join documenti on scadenze.tipo_anag = documenti.tipo_anag
and scadenze.cod_anag = documenti.cod_anag
and data_doc = data_doc_val
and ser_doc = ser_doc_val
and num_doc = num_doc_val,
azienda
where documenti.cod_vage = $P{cod_vage} and scadenze.incasso_periodo<>0]]>
</queryString>
<field name="cod_vage" class="java.lang.String">
<property name="com.jaspersoft.studio.field.name" value="cod_vage"/>
<property name="com.jaspersoft.studio.field.label" value="cod_vage"/>
</field>
<field name="agente" class="java.lang.String">
<property name="com.jaspersoft.studio.field.name" value="agente"/>
<property name="com.jaspersoft.studio.field.label" value="agente"/>
</field>
<field name="tipo_anag" class="java.lang.String">
<property name="com.jaspersoft.studio.field.name" value="tipo_anag"/>
<property name="com.jaspersoft.studio.field.label" value="tipo_anag"/>
</field>
<field name="cod_anag" class="java.lang.String">
<property name="com.jaspersoft.studio.field.name" value="cod_anag"/>
<property name="com.jaspersoft.studio.field.label" value="cod_anag"/>
</field>
<field name="rag_soc" class="java.lang.String">
<property name="com.jaspersoft.studio.field.name" value="rag_soc"/>
<property name="com.jaspersoft.studio.field.label" value="rag_soc"/>
</field>
<field name="anno_part" class="java.lang.Short">
<property name="com.jaspersoft.studio.field.name" value="anno_part"/>
<property name="com.jaspersoft.studio.field.label" value="anno_part"/>
</field>
<field name="ser_doc" class="java.lang.String">
<property name="com.jaspersoft.studio.field.name" value="ser_doc"/>
<property name="com.jaspersoft.studio.field.label" value="ser_doc"/>
</field>
<field name="num_doc" class="java.lang.Integer">
<property name="com.jaspersoft.studio.field.name" value="num_doc"/>
<property name="com.jaspersoft.studio.field.label" value="num_doc"/>
</field>
<field name="data_doc" class="java.sql.Timestamp">
<property name="com.jaspersoft.studio.field.name" value="data_doc"/>
<property name="com.jaspersoft.studio.field.label" value="data_doc"/>
</field>
<field name="incasso_periodo" class="java.math.BigDecimal">
<property name="com.jaspersoft.studio.field.name" value="incasso_periodo"/>
<property name="com.jaspersoft.studio.field.label" value="incasso_periodo"/>
</field>
<field name="incasso_periodo_prec" class="java.math.BigDecimal">
<property name="com.jaspersoft.studio.field.name" value="incasso_periodo_prec"/>
<property name="com.jaspersoft.studio.field.label" value="incasso_periodo_prec"/>
</field>
<field name="incasso_totale" class="java.math.BigDecimal">
<property name="com.jaspersoft.studio.field.name" value="incasso_totale"/>
<property name="com.jaspersoft.studio.field.label" value="incasso_totale"/>
</field>
<field name="import_da_incassare" class="java.math.BigDecimal">
<property name="com.jaspersoft.studio.field.name" value="import_da_incassare"/>
<property name="com.jaspersoft.studio.field.label" value="import_da_incassare"/>
</field>
<field name="tot_doc" class="java.math.BigDecimal">
<property name="com.jaspersoft.studio.field.name" value="tot_doc"/>
<property name="com.jaspersoft.studio.field.label" value="tot_doc"/>
</field>
<field name="tot_imponib" class="java.math.BigDecimal">
<property name="com.jaspersoft.studio.field.name" value="tot_imponib"/>
<property name="com.jaspersoft.studio.field.label" value="tot_imponib"/>
</field>
<field name="S" class="java.lang.String">
<property name="com.jaspersoft.studio.field.name" value="S"/>
<property name="com.jaspersoft.studio.field.label" value="S"/>
</field>
<field name="netto_merce" class="java.math.BigDecimal">
<property name="com.jaspersoft.studio.field.name" value="netto_merce"/>
<property name="com.jaspersoft.studio.field.label" value="netto_merce"/>
</field>
<field name="netto_merce_periodo" class="java.math.BigDecimal">
<property name="com.jaspersoft.studio.field.name" value="netto_merce_periodo"/>
<property name="com.jaspersoft.studio.field.label" value="netto_merce_periodo"/>
</field>
<field name="ProvFiss" class="java.math.BigDecimal">
<property name="com.jaspersoft.studio.field.name" value="ProvFiss"/>
<property name="com.jaspersoft.studio.field.label" value="ProvFiss"/>
</field>
<field name="perc_incasso_periodo" class="java.math.BigDecimal">
<property name="com.jaspersoft.studio.field.name" value="perc_incasso_periodo"/>
<property name="com.jaspersoft.studio.field.label" value="perc_incasso_periodo"/>
</field>
<field name="perc_incasso_tot" class="java.math.BigDecimal">
<property name="com.jaspersoft.studio.field.name" value="perc_incasso_tot"/>
<property name="com.jaspersoft.studio.field.label" value="perc_incasso_tot"/>
</field>
<field name="perc_prov" class="java.math.BigDecimal">
<property name="com.jaspersoft.studio.field.name" value="perc_prov"/>
<property name="com.jaspersoft.studio.field.label" value="perc_prov"/>
</field>
<field name="nome_ditta" class="java.lang.String">
<property name="com.jaspersoft.studio.field.name" value="nome_ditta"/>
<property name="com.jaspersoft.studio.field.label" value="nome_ditta"/>
</field>
<variable name="ProvFiss1" class="java.math.BigDecimal" resetType="Group" resetGroup="Gruppo1" calculation="Sum">
<variableExpression><![CDATA[$F{ProvFiss}]]></variableExpression>
</variable>
<group name="Gruppo1" isReprintHeaderOnEachPage="true">
<groupExpression><![CDATA[$F{cod_vage}]]></groupExpression>
<groupHeader>
<band height="52">
<line>
<reportElement x="0" y="33" width="803" height="1" forecolor="#07A0C9" backcolor="#46A0C9" uuid="add7dbba-1230-41b5-9136-44cc020c68f1">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
</line>
<staticText>
<reportElement mode="Opaque" x="102" y="0" width="147" height="15" backcolor="#D1E4EF" uuid="66cf097e-502d-4d53-9f82-7de405c07f0c">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Cliente]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="251" y="0" width="50" height="31" backcolor="#D1E4EF" uuid="c57f5908-83c6-486a-833b-1f1f89d11f3a">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Tot.
Doc.]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="303" y="0" width="50" height="31" backcolor="#D1E4EF" uuid="ead89b15-0d88-4e8f-bcc9-8a97c80e3cfa">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Tot.
Imp.]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="711" y="0" width="39" height="31" backcolor="#D1E4EF" uuid="659bfffa-89cd-48c4-aa7e-03b4168aab54"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Prov.
Fiss.]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="100" height="15" backcolor="#D1E4EF" uuid="2d89cafb-c8a8-49fd-8cb3-1503b6676f77">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Documento]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="0" y="16" width="40" height="15" backcolor="#D1E4EF" uuid="a3edaa7a-8c3c-472d-b049-01b35ca4489b">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Data]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="41" y="16" width="19" height="15" backcolor="#D1E4EF" uuid="b50a78e6-5e54-40a1-afdb-1c6fa5a6c2ca">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Ser.]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="61" y="16" width="39" height="15" backcolor="#D1E4EF" uuid="0294afa1-e798-41a1-923e-f1550166ae8b">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Num.]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="133" y="16" width="116" height="15" backcolor="#D1E4EF" uuid="31b9e469-2882-4033-ad89-7e955da68aeb">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Ragione Sociale]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="102" y="16" width="30" height="15" backcolor="#D1E4EF" uuid="68cb6465-d026-4f42-9d67-267165fa58b8">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Cod.]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="355" y="0" width="50" height="31" backcolor="#D1E4EF" uuid="fd644241-16c0-4f83-af6b-454a36cb3dee">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Netto
Merce]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="407" y="0" width="30" height="31" backcolor="#D1E4EF" uuid="8347446c-ac9b-4b59-a8d9-cba7849cac2f">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[%
Provv.]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="439" y="0" width="30" height="31" backcolor="#D1E4EF" uuid="d9b6c98b-be5b-4829-bc22-03b4e6355517">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[%
Incasso]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="471" y="0" width="50" height="31" backcolor="#D1E4EF" uuid="59fcff27-a792-4bd6-a9fb-dc0ada3e8a34">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Incasso
Totale]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="627" y="16" width="50" height="15" backcolor="#D1E4EF" uuid="64834a91-314b-43fa-8f37-286e5ebbcea5">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[NettoMer.]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="679" y="16" width="30" height="15" backcolor="#D1E4EF" uuid="a0b1772d-4953-41e0-891c-c3d7727b7460">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[%Inc.]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="575" y="16" width="50" height="15" backcolor="#D1E4EF" uuid="9bd52a56-d483-4e3e-9a91-9c1646a655d5">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Incasso]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="575" y="0" width="134" height="15" backcolor="#D1E4EF" uuid="e8263dc2-ccfe-489e-9f17-bcfebac03ec0">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Maturati nel periodo]]></text>
</staticText>
<textField>
<reportElement x="0" y="37" width="302" height="15" forecolor="#46A0C9" uuid="676cfa64-b45a-46c7-9a66-d90545be4ffd">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement verticalAlignment="Middle">
<font fontName="Tahoma" size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Agente: "+$P{cod_vage}+" - "+$F{agente}]]></textFieldExpression>
</textField>
<staticText>
<reportElement mode="Opaque" x="523" y="0" width="50" height="31" backcolor="#D1E4EF" uuid="3f103f67-7d7a-4067-b0a5-5fcc53e8c347">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Incasso
Precedente]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="752" y="0" width="50" height="31" backcolor="#D1E4EF" uuid="bca031d2-86f6-4bb7-b572-3ad0a799c681">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Non incassato]]></text>
</staticText>
</band>
</groupHeader>
<groupFooter>
<band height="15">
<textField pattern="#,##0.###;(#,##0.###-)">
<reportElement x="711" y="0" width="38" height="15" uuid="d882505f-e8f1-45b6-9678-ccce5c266c8e">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$V{ProvFiss1}]]></textFieldExpression>
</textField>
<textField textAdjust="ScaleFont">
<reportElement x="546" y="0" width="163" height="15" uuid="3562b181-0d1d-40ad-998e-2d4c999c734b">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Totale: "]]></textFieldExpression>
</textField>
</band>
</groupFooter>
</group>
<background>
<band splitType="Stretch"/>
</background>
<pageHeader>
<band height="80" splitType="Stretch">
<textField>
<reportElement mode="Opaque" x="1" y="2" width="799" height="58" forecolor="#46A0C9" backcolor="#FFFFFF" uuid="02f1ce5f-7537-4d6e-9725-3137cd6e6b42">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
</reportElement>
<textElement textAlignment="Left">
<font fontName="Arial Black" size="16" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA["PROVVIGIONI AGENTE \nDAL " + new SimpleDateFormat(" dd/MM/yyyy").format(new SimpleDateFormat("yyyy-MM-dd").parse($P{data_iniz}.replace("/", "-"))) + " AL " + new SimpleDateFormat(" dd/MM/yyyy").format(new SimpleDateFormat("yyyy-MM-dd").parse($P{data_fine}.replace("/", "-")))]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<detail>
<band height="15" splitType="Stretch">
<textField pattern="dd/MM/yy" isBlankWhenNull="true">
<reportElement style="LetturaFacilitata" stretchType="ElementGroupHeight" x="0" y="0" width="40" height="15" uuid="b3db981a-197d-4ea3-b5ea-99e32ebf79d8">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{data_doc}]]></textFieldExpression>
</textField>
<textField textAdjust="StretchHeight" isBlankWhenNull="true">
<reportElement style="LetturaFacilitata" stretchType="ElementGroupHeight" x="133" y="0" width="116" height="15" uuid="6d3b4e74-d3d0-40b6-9550-15288661276a">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="bedf5343-6f10-4b1c-acb1-01cc1122b0e8"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement verticalAlignment="Middle" markup="html">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{rag_soc}]]></textFieldExpression>
</textField>
<textField textAdjust="ScaleFont" pattern="#,##0.###;(#,##0.###-)" isBlankWhenNull="true">
<reportElement style="LetturaFacilitata" stretchType="ElementGroupHeight" x="251" y="0" width="50" height="15" uuid="5ab3c766-5252-43e3-a698-b0e3d26db36d">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="552e8cf4-29e5-4f90-9f75-582eb6e3e27e"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[("+".equals($F{S}))
? new java.text.DecimalFormat("#,##0.###;(#,##0.###-)").format($F{tot_doc})
: $F{S} + new java.text.DecimalFormat("#,##0.###;(#,##0.###-)").format($F{tot_doc})]]></textFieldExpression>
</textField>
<textField textAdjust="ScaleFont" pattern="#,##0.###;(#,##0.###-)" isBlankWhenNull="true">
<reportElement style="LetturaFacilitata" stretchType="ElementGroupHeight" x="303" y="0" width="50" height="15" uuid="67b26b06-db51-470e-8dbc-2d0f033c73ab">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="552e8cf4-29e5-4f90-9f75-582eb6e3e27e"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[("+".equals($F{S}))
? new java.text.DecimalFormat("#,##0.###;(#,##0.###-)").format($F{tot_imponib})
: $F{S} + new java.text.DecimalFormat("#,##0.###;(#,##0.###-)").format($F{tot_imponib})]]></textFieldExpression>
</textField>
<textField textAdjust="ScaleFont" pattern="#,##0.###;(#,##0.###-)" isBlankWhenNull="true">
<reportElement style="LetturaFacilitata" stretchType="ElementGroupHeight" x="711" y="0" width="39" height="15" uuid="33a2544c-ebd7-4ed9-a7c9-f382ef94eeef">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="33cbac9e-31fe-499f-a6fa-2bc91f5d0d6e"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{ProvFiss}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement style="LetturaFacilitata" stretchType="ElementGroupHeight" x="41" y="0" width="19" height="15" uuid="3fa020aa-2a26-460f-95a6-17535de653a4">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{ser_doc}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement style="LetturaFacilitata" stretchType="ElementGroupHeight" x="61" y="0" width="39" height="15" uuid="431f4f68-7e67-404e-80aa-e8e7e2c3654b">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{num_doc}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement style="LetturaFacilitata" stretchType="ElementGroupHeight" x="102" y="0" width="30" height="15" uuid="1edcffda-179a-49ee-9984-250e160dd8b6">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{cod_anag}]]></textFieldExpression>
</textField>
<textField textAdjust="ScaleFont" pattern="#,##0.###;(#,##0.###-)" isBlankWhenNull="true">
<reportElement style="LetturaFacilitata" stretchType="ElementGroupHeight" x="355" y="0" width="50" height="15" uuid="f7e97836-940d-4f76-8854-650d4406ce53">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="552e8cf4-29e5-4f90-9f75-582eb6e3e27e"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[("+".equals($F{S}))
? new java.text.DecimalFormat("#,##0.###;(#,##0.###-)").format($F{netto_merce})
: $F{S} + new java.text.DecimalFormat("#,##0.###;(#,##0.###-)").format($F{netto_merce})]]></textFieldExpression>
</textField>
<textField textAdjust="ScaleFont" pattern="#,##0.###;(#,##0.###-)" isBlankWhenNull="true">
<reportElement style="LetturaFacilitata" stretchType="ElementGroupHeight" x="407" y="0" width="30" height="15" uuid="240b9611-b24e-432d-af74-20fa75fccf62">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="552e8cf4-29e5-4f90-9f75-582eb6e3e27e"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{perc_prov}]]></textFieldExpression>
</textField>
<textField textAdjust="ScaleFont" pattern="#,##0.###;(#,##0.###-)" isBlankWhenNull="true">
<reportElement style="LetturaFacilitata" stretchType="ElementGroupHeight" x="439" y="0" width="30" height="15" uuid="533d1a4d-6c92-445b-862a-eb191761aa50">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="552e8cf4-29e5-4f90-9f75-582eb6e3e27e"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{perc_incasso_tot}]]></textFieldExpression>
</textField>
<textField textAdjust="ScaleFont" pattern="#,##0.###;(#,##0.###-)" isBlankWhenNull="true">
<reportElement style="LetturaFacilitata" stretchType="ElementGroupHeight" x="471" y="0" width="50" height="15" uuid="d196487f-a333-413c-8994-070626bb7401">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="552e8cf4-29e5-4f90-9f75-582eb6e3e27e"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[("+".equals($F{S}))
? new java.text.DecimalFormat("#,##0.###;(#,##0.###-)").format($F{incasso_totale})
: $F{S} + new java.text.DecimalFormat("#,##0.###;(#,##0.###-)").format($F{incasso_totale})]]></textFieldExpression>
</textField>
<textField textAdjust="ScaleFont" pattern="#,##0.###;(#,##0.###-)" isBlankWhenNull="true">
<reportElement style="LetturaFacilitata" stretchType="ElementGroupHeight" x="627" y="0" width="50" height="15" uuid="6a895c99-e388-4497-b681-730ed087e4ad">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="552e8cf4-29e5-4f90-9f75-582eb6e3e27e"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[("+".equals($F{S}))
? new java.text.DecimalFormat("#,##0.###;(#,##0.###-)").format($F{netto_merce_periodo})
: $F{S} + new java.text.DecimalFormat("#,##0.###;(#,##0.###-)").format($F{netto_merce_periodo})]]></textFieldExpression>
</textField>
<textField textAdjust="ScaleFont" pattern="#,##0.###;(#,##0.###-)" isBlankWhenNull="true">
<reportElement style="LetturaFacilitata" stretchType="ElementGroupHeight" x="679" y="0" width="30" height="15" uuid="3ee1b0e2-d33a-4b72-8a71-6e0476821394">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="552e8cf4-29e5-4f90-9f75-582eb6e3e27e"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{perc_incasso_periodo}]]></textFieldExpression>
</textField>
<textField textAdjust="ScaleFont" pattern="#,##0.###;(#,##0.###-)" isBlankWhenNull="true">
<reportElement style="LetturaFacilitata" stretchType="ElementGroupHeight" x="575" y="0" width="50" height="15" uuid="b3be46ff-5622-48bd-8821-ca232ce1cb15">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="552e8cf4-29e5-4f90-9f75-582eb6e3e27e"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[("+".equals($F{S}))
? new java.text.DecimalFormat("#,##0.###;(#,##0.###-)").format($F{incasso_periodo})
: $F{S} + new java.text.DecimalFormat("#,##0.###;(#,##0.###-)").format($F{incasso_periodo})]]></textFieldExpression>
</textField>
<textField textAdjust="ScaleFont" pattern="#,##0.###;(#,##0.###-)" isBlankWhenNull="true">
<reportElement style="LetturaFacilitata" stretchType="ElementGroupHeight" x="523" y="0" width="50" height="15" uuid="fc3cf07a-3296-46b3-9556-401332b52cd2">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="552e8cf4-29e5-4f90-9f75-582eb6e3e27e"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[("+".equals($F{S}))
? new java.text.DecimalFormat("#,##0.00;(#,##0.00-)").format($F{incasso_periodo_prec})
: $F{S} + new java.text.DecimalFormat("#,##0.00;(#,##0.00-)").format($F{incasso_periodo_prec})]]></textFieldExpression>
</textField>
<textField textAdjust="ScaleFont" pattern="#,##0.###;(#,##0.###-)" isBlankWhenNull="true">
<reportElement style="LetturaFacilitata" stretchType="ElementGroupHeight" x="752" y="0" width="50" height="15" uuid="6c08062c-f4f5-4478-9707-ef36dd9e5ad2">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="552e8cf4-29e5-4f90-9f75-582eb6e3e27e"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[("+".equals($F{S}))
? new java.text.DecimalFormat("#,##0.00;(#,##0.00-)").format($F{import_da_incassare})
: $F{S} + new java.text.DecimalFormat("#,##0.00;(#,##0.00-)").format($F{import_da_incassare})]]></textFieldExpression>
</textField>
</band>
</detail>
<pageFooter>
<band height="17" splitType="Stretch">
<textField>
<reportElement x="360" y="2" width="80" height="15" uuid="0f42adfe-d9e3-4ea1-8bd5-70d46a0c34cf"/>
<textElement textAlignment="Right">
<font fontName="Tahoma" size="9"/>
</textElement>
<textFieldExpression><![CDATA["Pagina "+$V{PAGE_NUMBER}+" di"]]></textFieldExpression>
</textField>
<textField evaluationTime="Report">
<reportElement x="440" y="2" width="40" height="15" uuid="d066244d-cc8c-47ac-bb1e-92c9a05cc6e1"/>
<textElement>
<font fontName="Tahoma" size="9"/>
</textElement>
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy">
<reportElement x="701" y="1" width="100" height="15" uuid="283836b7-9e60-4b31-aff8-e9e4ac82008e"/>
<textElement textAlignment="Right">
<font fontName="Tahoma" size="9"/>
</textElement>
<textFieldExpression><![CDATA[new SimpleDateFormat("dd/MM/yyyy ").format(new java.util.Date())]]></textFieldExpression>
</textField>
<textField>
<reportElement x="1" y="2" width="210" height="15" uuid="49f052aa-863f-4aab-adc5-d02326f74626"/>
<textElement>
<font fontName="Tahoma" size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{nome_ditta}]]></textFieldExpression>
</textField>
</band>
</pageFooter>
</jasperReport>

View File

@@ -0,0 +1,599 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.21.3.final utlizzo versione della libreria JasperReports6.21.3-4a3078d20785ebe464f18037d738d12fc98c13cf -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="ProvvigioniAgente" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="d754f368-9c40-4c0a-baac-e8aa06a3f544">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="SAPORI_VERI\sapori_veri.xml"/>
<property name="com.jaspersoft.studio.data.sql.tables" value=""/>
<style name="LetturaFacilitata" mode="Transparent" backcolor="#FFFFFF">
<conditionalStyle>
<conditionExpression><![CDATA[($V{REPORT_COUNT} % 2) == 0?true:false]]></conditionExpression>
<style mode="Opaque" backcolor="#E6E6E6"/>
</conditionalStyle>
</style>
<parameter name="data_iniz" class="java.lang.String"/>
<parameter name="data_fine" class="java.lang.String"/>
<parameter name="cod_vage" class="java.lang.String"/>
<parameter name="perc_prov_fis" class="java.lang.String"/>
<queryString>
<![CDATA[WITH scadenze AS (SELECT ctb_scad.tipo_anag,
ctb_scad.cod_anag,
ctb_scad.anno_part,
ctb_scad.ser_doc,
ctb_scad.num_doc,
ctb_scad.data_doc,
SUM(IIF(data_pag IS NOT NULL AND data_pag BETWEEN $P{data_iniz} AND $P{data_fine}, imp_dare,
0)) AS incasso_periodo,
SUM(IIF(data_pag IS NOT NULL AND data_pag < $P{data_iniz}, imp_dare, 0)) AS incasso_periodo_prec,
SUM(IIF(data_pag IS NOT NULL, imp_dare, 0)) AS incasso_totale,
SUM(IIF(data_pag IS NULL, IIF(ctb_part.tipo_partita = 1, imp_dare, imp_avere),
0)) AS import_da_incassare,
sum(IIF(ctb_part.tipo_partita = 1, imp_dare, imp_avere)) as tot_scadenze
FROM ctb_scad
INNER JOIN ctb_part ON ctb_scad.tipo_anag = ctb_part.tipo_anag AND
ctb_scad.cod_anag = ctb_part.cod_anag AND
ctb_scad.anno_part = ctb_part.anno_part AND
ctb_scad.ser_doc = ctb_part.ser_doc AND
ctb_scad.num_doc = ctb_part.num_doc
GROUP BY ctb_scad.tipo_anag,
ctb_scad.tipo_anag,
ctb_scad.cod_anag,
ctb_scad.anno_part,
ctb_scad.ser_doc,
ctb_scad.num_doc,
ctb_scad.data_doc)
, documenti as (
SELECT dtb_doct.tipo_anag,
dtb_doct.cod_anag,
gtb_anag.rag_soc,
dtb_doct.cod_dtip_val,
dtb_doct.data_doc_val,
dtb_doct.ser_doc_val,
dtb_doct.num_doc_val,
dtb_doct.cod_vage,
vtb_agen.rag_soc as agente,
dtb_docr.perc_prov,
case when (dtb_tipi.segno_val_scar-dtb_tipi.segno_val_car)=1 then '+'
else '-' end AS 'S',
dtb_doct.tot_imponib ,
(dtb_doct.tot_imponib + dtb_doct.tot_iva) as tot_doc,
sum(importo_riga) as netto_merce
FROM dtb_doct
INNER JOIN dtb_docr ON dtb_doct.cod_anag = dtb_docr.cod_anag AND dtb_doct.cod_dtip = dtb_docr.cod_dtip AND
dtb_doct.data_doc = dtb_docr.data_doc AND dtb_doct.ser_doc = dtb_docr.ser_doc AND
dtb_doct.num_doc = dtb_docr.num_doc
INNER JOIN dtb_tipi ON dtb_doct.cod_dtip = dtb_tipi.cod_dtip
INNER JOIN vtb_agen ON dtb_doct.cod_vage = vtb_agen.cod_vage
INNER JOIN mtb_aart ON dtb_docr.cod_mart = mtb_aart.cod_mart
INNER JOIN gtb_anag on dtb_doct.cod_anag = gtb_anag.cod_anag
where dtb_tipi.tipo_emissione = 'DIRETTA'
GROUP BY dtb_doct.tipo_anag,
dtb_doct.cod_anag,
gtb_anag.rag_soc,
dtb_doct.cod_dtip_val,
dtb_doct.data_doc_val,
dtb_doct.ser_doc_val,
dtb_doct.num_doc_val,
dtb_tipi.segno_val_car,
dtb_tipi.segno_val_scar,
dtb_doct.cod_vage,
vtb_agen.rag_soc ,
dtb_docr.perc_prov,
dtb_doct.tot_imponib ,
dtb_doct.tot_iva)
SELECT documenti.cod_vage,
documenti.agente,
scadenze.tipo_anag,
scadenze.cod_anag,
documenti.rag_soc,
scadenze.anno_part,
scadenze.ser_doc,
scadenze.num_doc,
scadenze.data_doc,
scadenze.incasso_periodo,
scadenze.incasso_periodo_prec,
scadenze.incasso_totale,
scadenze.import_da_incassare,
documenti.tot_doc,
documenti.tot_imponib,
documenti.S,
documenti.netto_merce,
documenti.netto_merce*(scadenze.incasso_periodo / documenti.tot_doc) as netto_merce_periodo,
documenti.netto_merce*(scadenze.incasso_periodo / documenti.tot_doc)/100*$P{perc_prov_fis} as ProvFiss,
(scadenze.incasso_periodo / documenti.tot_doc) * 100 as perc_incasso_periodo,
((scadenze.incasso_periodo_prec + scadenze.incasso_periodo) / documenti.tot_doc) * 100 as perc_incasso_tot,
documenti.perc_prov,
azienda.nome_ditta
FROM scadenze inner join documenti on scadenze.tipo_anag = documenti.tipo_anag
and scadenze.cod_anag = documenti.cod_anag
and data_doc = data_doc_val
and ser_doc = ser_doc_val
and num_doc = num_doc_val,
azienda
where documenti.cod_vage = $P{cod_vage} and scadenze.incasso_periodo<>0]]>
</queryString>
<field name="cod_vage" class="java.lang.String">
<property name="com.jaspersoft.studio.field.name" value="cod_vage"/>
<property name="com.jaspersoft.studio.field.label" value="cod_vage"/>
</field>
<field name="agente" class="java.lang.String">
<property name="com.jaspersoft.studio.field.name" value="agente"/>
<property name="com.jaspersoft.studio.field.label" value="agente"/>
</field>
<field name="tipo_anag" class="java.lang.String">
<property name="com.jaspersoft.studio.field.name" value="tipo_anag"/>
<property name="com.jaspersoft.studio.field.label" value="tipo_anag"/>
</field>
<field name="cod_anag" class="java.lang.String">
<property name="com.jaspersoft.studio.field.name" value="cod_anag"/>
<property name="com.jaspersoft.studio.field.label" value="cod_anag"/>
</field>
<field name="rag_soc" class="java.lang.String">
<property name="com.jaspersoft.studio.field.name" value="rag_soc"/>
<property name="com.jaspersoft.studio.field.label" value="rag_soc"/>
</field>
<field name="anno_part" class="java.lang.Short">
<property name="com.jaspersoft.studio.field.name" value="anno_part"/>
<property name="com.jaspersoft.studio.field.label" value="anno_part"/>
</field>
<field name="ser_doc" class="java.lang.String">
<property name="com.jaspersoft.studio.field.name" value="ser_doc"/>
<property name="com.jaspersoft.studio.field.label" value="ser_doc"/>
</field>
<field name="num_doc" class="java.lang.Integer">
<property name="com.jaspersoft.studio.field.name" value="num_doc"/>
<property name="com.jaspersoft.studio.field.label" value="num_doc"/>
</field>
<field name="data_doc" class="java.sql.Timestamp">
<property name="com.jaspersoft.studio.field.name" value="data_doc"/>
<property name="com.jaspersoft.studio.field.label" value="data_doc"/>
</field>
<field name="incasso_periodo" class="java.math.BigDecimal">
<property name="com.jaspersoft.studio.field.name" value="incasso_periodo"/>
<property name="com.jaspersoft.studio.field.label" value="incasso_periodo"/>
</field>
<field name="incasso_periodo_prec" class="java.math.BigDecimal">
<property name="com.jaspersoft.studio.field.name" value="incasso_periodo_prec"/>
<property name="com.jaspersoft.studio.field.label" value="incasso_periodo_prec"/>
</field>
<field name="incasso_totale" class="java.math.BigDecimal">
<property name="com.jaspersoft.studio.field.name" value="incasso_totale"/>
<property name="com.jaspersoft.studio.field.label" value="incasso_totale"/>
</field>
<field name="import_da_incassare" class="java.math.BigDecimal">
<property name="com.jaspersoft.studio.field.name" value="import_da_incassare"/>
<property name="com.jaspersoft.studio.field.label" value="import_da_incassare"/>
</field>
<field name="tot_doc" class="java.math.BigDecimal">
<property name="com.jaspersoft.studio.field.name" value="tot_doc"/>
<property name="com.jaspersoft.studio.field.label" value="tot_doc"/>
</field>
<field name="tot_imponib" class="java.math.BigDecimal">
<property name="com.jaspersoft.studio.field.name" value="tot_imponib"/>
<property name="com.jaspersoft.studio.field.label" value="tot_imponib"/>
</field>
<field name="S" class="java.lang.String">
<property name="com.jaspersoft.studio.field.name" value="S"/>
<property name="com.jaspersoft.studio.field.label" value="S"/>
</field>
<field name="netto_merce" class="java.math.BigDecimal">
<property name="com.jaspersoft.studio.field.name" value="netto_merce"/>
<property name="com.jaspersoft.studio.field.label" value="netto_merce"/>
</field>
<field name="netto_merce_periodo" class="java.math.BigDecimal">
<property name="com.jaspersoft.studio.field.name" value="netto_merce_periodo"/>
<property name="com.jaspersoft.studio.field.label" value="netto_merce_periodo"/>
</field>
<field name="ProvFiss" class="java.math.BigDecimal">
<property name="com.jaspersoft.studio.field.name" value="ProvFiss"/>
<property name="com.jaspersoft.studio.field.label" value="ProvFiss"/>
</field>
<field name="perc_incasso_periodo" class="java.math.BigDecimal">
<property name="com.jaspersoft.studio.field.name" value="perc_incasso_periodo"/>
<property name="com.jaspersoft.studio.field.label" value="perc_incasso_periodo"/>
</field>
<field name="perc_incasso_tot" class="java.math.BigDecimal">
<property name="com.jaspersoft.studio.field.name" value="perc_incasso_tot"/>
<property name="com.jaspersoft.studio.field.label" value="perc_incasso_tot"/>
</field>
<field name="perc_prov" class="java.math.BigDecimal">
<property name="com.jaspersoft.studio.field.name" value="perc_prov"/>
<property name="com.jaspersoft.studio.field.label" value="perc_prov"/>
</field>
<field name="nome_ditta" class="java.lang.String">
<property name="com.jaspersoft.studio.field.name" value="nome_ditta"/>
<property name="com.jaspersoft.studio.field.label" value="nome_ditta"/>
</field>
<variable name="ProvFiss1" class="java.math.BigDecimal" resetType="Group" resetGroup="Gruppo1" calculation="Sum">
<variableExpression><![CDATA[$F{ProvFiss}]]></variableExpression>
</variable>
<group name="Gruppo1" isReprintHeaderOnEachPage="true">
<groupExpression><![CDATA[$F{cod_vage}]]></groupExpression>
<groupHeader>
<band height="52">
<line>
<reportElement x="0" y="33" width="803" height="1" forecolor="#07A0C9" backcolor="#46A0C9" uuid="add7dbba-1230-41b5-9136-44cc020c68f1">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
</line>
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="70" height="31" backcolor="#D1E4EF" uuid="c57f5908-83c6-486a-833b-1f1f89d11f3a">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Tot.
Doc.]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="72" y="0" width="70" height="31" backcolor="#D1E4EF" uuid="ead89b15-0d88-4e8f-bcc9-8a97c80e3cfa"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Tot.
Imp.]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="670" y="0" width="60" height="31" backcolor="#D1E4EF" uuid="659bfffa-89cd-48c4-aa7e-03b4168aab54">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Prov.
Fiss.]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="144" y="0" width="70" height="31" backcolor="#D1E4EF" uuid="fd644241-16c0-4f83-af6b-454a36cb3dee">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Netto
Merce]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="216" y="0" width="55" height="31" backcolor="#D1E4EF" uuid="8347446c-ac9b-4b59-a8d9-cba7849cac2f">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[%
Provv.]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="273" y="0" width="55" height="31" backcolor="#D1E4EF" uuid="d9b6c98b-be5b-4829-bc22-03b4e6355517">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[%
Incasso]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="330" y="0" width="70" height="31" backcolor="#D1E4EF" uuid="59fcff27-a792-4bd6-a9fb-dc0ada3e8a34">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Incasso
Totale]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="546" y="16" width="70" height="15" backcolor="#D1E4EF" uuid="64834a91-314b-43fa-8f37-286e5ebbcea5">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[NettoMer.]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="618" y="16" width="50" height="15" backcolor="#D1E4EF" uuid="a0b1772d-4953-41e0-891c-c3d7727b7460">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[%Inc.]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="474" y="16" width="70" height="15" backcolor="#D1E4EF" uuid="9bd52a56-d483-4e3e-9a91-9c1646a655d5">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Incasso]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="474" y="0" width="194" height="15" backcolor="#D1E4EF" uuid="e8263dc2-ccfe-489e-9f17-bcfebac03ec0">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Maturati nel periodo]]></text>
</staticText>
<textField>
<reportElement x="0" y="37" width="302" height="15" forecolor="#46A0C9" uuid="676cfa64-b45a-46c7-9a66-d90545be4ffd">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement verticalAlignment="Middle">
<font fontName="Tahoma" size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Agente: "+$P{cod_vage}+" - "+$F{agente}]]></textFieldExpression>
</textField>
<staticText>
<reportElement mode="Opaque" x="402" y="0" width="70" height="31" backcolor="#D1E4EF" uuid="3f103f67-7d7a-4067-b0a5-5fcc53e8c347">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Incasso
Precedente]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="732" y="0" width="70" height="31" backcolor="#D1E4EF" uuid="bca031d2-86f6-4bb7-b572-3ad0a799c681">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Non incassato]]></text>
</staticText>
</band>
</groupHeader>
<groupFooter>
<band height="22">
<textField pattern="#,##0.###;(#,##0.###-)">
<reportElement x="670" y="6" width="60" height="15" uuid="d882505f-e8f1-45b6-9678-ccce5c266c8e">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$V{ProvFiss1}]]></textFieldExpression>
</textField>
<textField textAdjust="ScaleFont">
<reportElement x="505" y="6" width="163" height="15" uuid="3562b181-0d1d-40ad-998e-2d4c999c734b">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Totale Provv. Fissa: "]]></textFieldExpression>
</textField>
</band>
</groupFooter>
</group>
<group name="Gruppo2">
<groupExpression><![CDATA[$F{cod_anag}+$F{data_doc}+$F{num_doc}+$F{ser_doc}]]></groupExpression>
<groupHeader>
<band height="15">
<textField>
<reportElement x="0" y="0" width="467" height="15" forecolor="#000000" uuid="0c653557-1c73-4809-bda5-9c3a7e0bd773">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement verticalAlignment="Middle">
<font fontName="Tahoma" size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Cliente: "+$F{cod_anag}+" - "+$F{rag_soc} + " Doc. Num. "+ $F{ser_doc}+"/"+$F{num_doc}+ " del "+ new SimpleDateFormat(" dd/MM/yyyy").format($F{data_doc})]]></textFieldExpression>
</textField>
</band>
</groupHeader>
</group>
<background>
<band splitType="Stretch"/>
</background>
<pageHeader>
<band height="40" splitType="Stretch">
<textField>
<reportElement mode="Opaque" x="1" y="2" width="799" height="38" forecolor="#46A0C9" backcolor="#FFFFFF" uuid="02f1ce5f-7537-4d6e-9725-3137cd6e6b42">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
</reportElement>
<textElement textAlignment="Left">
<font fontName="Arial Black" size="16" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA["PROVVIGIONI AGENTE DAL " + new SimpleDateFormat(" dd/MM/yyyy").format(new SimpleDateFormat("yyyy-MM-dd").parse($P{data_iniz}.replace("/", "-"))) + " AL " + new SimpleDateFormat(" dd/MM/yyyy").format(new SimpleDateFormat("yyyy-MM-dd").parse($P{data_fine}.replace("/", "-")))]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<detail>
<band height="15" splitType="Stretch">
<rectangle>
<reportElement style="LetturaFacilitata" stretchType="ElementGroupHeight" x="0" y="0" width="802" height="15" uuid="361d3d6b-ed72-4b7b-9b5d-76a56638c084">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<graphicElement>
<pen lineWidth="0.0"/>
</graphicElement>
</rectangle>
<textField textAdjust="ScaleFont" pattern="#,##0.###;(#,##0.###-)" isBlankWhenNull="true">
<reportElement stretchType="ElementGroupHeight" isPrintRepeatedValues="false" x="0" y="0" width="70" height="15" uuid="5ab3c766-5252-43e3-a698-b0e3d26db36d">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="552e8cf4-29e5-4f90-9f75-582eb6e3e27e"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[("+".equals($F{S}))
? new java.text.DecimalFormat("#,##0.###;(#,##0.###-)").format($F{tot_doc})
: $F{S} + new java.text.DecimalFormat("#,##0.###;(#,##0.###-)").format($F{tot_doc})]]></textFieldExpression>
</textField>
<textField textAdjust="ScaleFont" pattern="#,##0.###;(#,##0.###-)" isBlankWhenNull="true">
<reportElement stretchType="ElementGroupHeight" isPrintRepeatedValues="false" x="72" y="0" width="70" height="15" uuid="67b26b06-db51-470e-8dbc-2d0f033c73ab">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="552e8cf4-29e5-4f90-9f75-582eb6e3e27e"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[("+".equals($F{S}))
? new java.text.DecimalFormat("#,##0.###;(#,##0.###-)").format($F{tot_imponib})
: $F{S} + new java.text.DecimalFormat("#,##0.###;(#,##0.###-)").format($F{tot_imponib})]]></textFieldExpression>
</textField>
<textField textAdjust="ScaleFont" pattern="#,##0.###;(#,##0.###-)" isBlankWhenNull="true">
<reportElement stretchType="ElementGroupHeight" x="670" y="0" width="60" height="15" uuid="33a2544c-ebd7-4ed9-a7c9-f382ef94eeef">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="33cbac9e-31fe-499f-a6fa-2bc91f5d0d6e"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{ProvFiss}]]></textFieldExpression>
</textField>
<textField textAdjust="ScaleFont" pattern="#,##0.###;(#,##0.###-)" isBlankWhenNull="true">
<reportElement stretchType="ElementGroupHeight" x="144" y="0" width="70" height="15" uuid="f7e97836-940d-4f76-8854-650d4406ce53">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="552e8cf4-29e5-4f90-9f75-582eb6e3e27e"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[("+".equals($F{S}))
? new java.text.DecimalFormat("#,##0.###;(#,##0.###-)").format($F{netto_merce})
: $F{S} + new java.text.DecimalFormat("#,##0.###;(#,##0.###-)").format($F{netto_merce})]]></textFieldExpression>
</textField>
<textField textAdjust="ScaleFont" pattern="#,##0.###;(#,##0.###-)" isBlankWhenNull="true">
<reportElement stretchType="ElementGroupHeight" x="216" y="0" width="55" height="15" uuid="240b9611-b24e-432d-af74-20fa75fccf62">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="552e8cf4-29e5-4f90-9f75-582eb6e3e27e"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{perc_prov}]]></textFieldExpression>
</textField>
<textField textAdjust="ScaleFont" pattern="#,##0.###;(#,##0.###-)" isBlankWhenNull="true">
<reportElement stretchType="ElementGroupHeight" x="273" y="0" width="53" height="15" uuid="533d1a4d-6c92-445b-862a-eb191761aa50">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="552e8cf4-29e5-4f90-9f75-582eb6e3e27e"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{perc_incasso_tot}]]></textFieldExpression>
</textField>
<textField textAdjust="ScaleFont" pattern="#,##0.###;(#,##0.###-)" isBlankWhenNull="true">
<reportElement stretchType="ElementGroupHeight" x="328" y="0" width="70" height="15" uuid="d196487f-a333-413c-8994-070626bb7401">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="552e8cf4-29e5-4f90-9f75-582eb6e3e27e"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[("+".equals($F{S}))
? new java.text.DecimalFormat("#,##0.###;(#,##0.###-)").format($F{incasso_totale})
: $F{S} + new java.text.DecimalFormat("#,##0.###;(#,##0.###-)").format($F{incasso_totale})]]></textFieldExpression>
</textField>
<textField textAdjust="ScaleFont" pattern="#,##0.###;(#,##0.###-)" isBlankWhenNull="true">
<reportElement stretchType="ElementGroupHeight" x="546" y="0" width="70" height="15" uuid="6a895c99-e388-4497-b681-730ed087e4ad">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="552e8cf4-29e5-4f90-9f75-582eb6e3e27e"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[("+".equals($F{S}))
? new java.text.DecimalFormat("#,##0.###;(#,##0.###-)").format($F{netto_merce_periodo})
: $F{S} + new java.text.DecimalFormat("#,##0.###;(#,##0.###-)").format($F{netto_merce_periodo})]]></textFieldExpression>
</textField>
<textField textAdjust="ScaleFont" pattern="#,##0.###;(#,##0.###-)" isBlankWhenNull="true">
<reportElement stretchType="ElementGroupHeight" x="618" y="0" width="50" height="15" uuid="3ee1b0e2-d33a-4b72-8a71-6e0476821394">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="552e8cf4-29e5-4f90-9f75-582eb6e3e27e"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{perc_incasso_periodo}]]></textFieldExpression>
</textField>
<textField textAdjust="ScaleFont" pattern="#,##0.###;(#,##0.###-)" isBlankWhenNull="true">
<reportElement stretchType="ElementGroupHeight" x="474" y="0" width="70" height="15" uuid="b3be46ff-5622-48bd-8821-ca232ce1cb15">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="552e8cf4-29e5-4f90-9f75-582eb6e3e27e"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[("+".equals($F{S}))
? new java.text.DecimalFormat("#,##0.###;(#,##0.###-)").format($F{incasso_periodo})
: $F{S} + new java.text.DecimalFormat("#,##0.###;(#,##0.###-)").format($F{incasso_periodo})]]></textFieldExpression>
</textField>
<textField textAdjust="ScaleFont" pattern="#,##0.###;(#,##0.###-)" isBlankWhenNull="true">
<reportElement stretchType="ElementGroupHeight" x="400" y="0" width="70" height="15" uuid="fc3cf07a-3296-46b3-9556-401332b52cd2">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="552e8cf4-29e5-4f90-9f75-582eb6e3e27e"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[("+".equals($F{S}))
? new java.text.DecimalFormat("#,##0.00;(#,##0.00-)").format($F{incasso_periodo_prec})
: $F{S} + new java.text.DecimalFormat("#,##0.00;(#,##0.00-)").format($F{incasso_periodo_prec})]]></textFieldExpression>
</textField>
<textField textAdjust="ScaleFont" pattern="#,##0.###;(#,##0.###-)" isBlankWhenNull="true">
<reportElement stretchType="ElementGroupHeight" x="732" y="0" width="70" height="15" uuid="6c08062c-f4f5-4478-9707-ef36dd9e5ad2">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="552e8cf4-29e5-4f90-9f75-582eb6e3e27e"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[("+".equals($F{S}))
? new java.text.DecimalFormat("#,##0.00;(#,##0.00-)").format($F{import_da_incassare})
: $F{S} + new java.text.DecimalFormat("#,##0.00;(#,##0.00-)").format($F{import_da_incassare})]]></textFieldExpression>
</textField>
</band>
</detail>
<pageFooter>
<band height="17" splitType="Stretch">
<textField>
<reportElement x="360" y="2" width="80" height="15" uuid="0f42adfe-d9e3-4ea1-8bd5-70d46a0c34cf"/>
<textElement textAlignment="Right">
<font fontName="Tahoma" size="9"/>
</textElement>
<textFieldExpression><![CDATA["Pagina "+$V{PAGE_NUMBER}+" di"]]></textFieldExpression>
</textField>
<textField evaluationTime="Report">
<reportElement x="440" y="2" width="40" height="15" uuid="d066244d-cc8c-47ac-bb1e-92c9a05cc6e1"/>
<textElement>
<font fontName="Tahoma" size="9"/>
</textElement>
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy">
<reportElement x="701" y="1" width="100" height="15" uuid="283836b7-9e60-4b31-aff8-e9e4ac82008e"/>
<textElement textAlignment="Right">
<font fontName="Tahoma" size="9"/>
</textElement>
<textFieldExpression><![CDATA[new SimpleDateFormat("dd/MM/yyyy ").format(new java.util.Date())]]></textFieldExpression>
</textField>
<textField>
<reportElement x="1" y="2" width="210" height="15" uuid="49f052aa-863f-4aab-adc5-d02326f74626"/>
<textElement>
<font fontName="Tahoma" size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{nome_ditta}]]></textFieldExpression>
</textField>
</band>
</pageFooter>
</jasperReport>