Skip to content

Commit

Permalink
#10500 Add Reports for Intra/Inter community reports
Browse files Browse the repository at this point in the history
  • Loading branch information
cristinamghita committed Jan 8, 2021
1 parent f3e60ce commit 499a827
Show file tree
Hide file tree
Showing 11 changed files with 913 additions and 0 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# general

Page = Seite

Title=Innergemeinschaftliche Lieferungen

Month=Monat:
Partner=Geschäftspartner:
EU_InvoiceOnly=Nur EU Rechnungen:
CreditorValue=Kreditor
CustomerAddr=Kunde Adresse
VAT=UID-Nr.
InvoiceDate=RG. Datum
InvoiceNo=RG. Nr.
Currency=Währung
Amount=RG. Betrag
Euro_Amount=EURO Betrag
Recap=Rekapitulation Aufträge nach Länder
Total=Gesamttotal
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# general

Page = Seite

Title=Innergemeinschaftliche Lieferungen

Month=Monat:
Partner=Geschäftspartner:
EU_InvoiceOnly=Nur EU Rechnungen:
CreditorValue=Kreditor
CustomerAddr=Kunde Adresse
VAT=UID-Nr.
InvoiceDate=RG. Datum
InvoiceNo=RG. Nr.
Currency=Währung
Amount=RG. Betrag
Euro_Amount=EURO Betrag
Recap=Rekapitulation Aufträge nach Länder
Total=Gesamttotal
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# general

Page = Seite

Title=Innergemeinschaftliche Lieferungen

Month=Monat:
Partner=Geschäftspartner:
EU_InvoiceOnly=Nur EU Rechnungen:
CreditorValue=Kreditor
CustomerAddr=Kunde Adresse
VAT=UID-Nr.
InvoiceDate=RG. Datum
InvoiceNo=RG. Nr.
Currency=Währung
Amount=RG. Betrag
Euro_Amount=EURO Betrag
Recap=Rekapitulation Aufträge nach Länder
Total=Gesamttotal
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# general

Page = Page

Title=Intra-Community supplies

Month=Month:
Partner=Partner:
EU_InvoiceOnly=EU invoices only:
CreditorValue=Creditor No.:
CustomerAddr=Customer
VAT=VAT
InvoiceDate=InvoiceDate
InvoiceNo=Invoice No.
Currency= Currency
Amount=Amount
Euro_Amount= Amount EURO
Recap=Recap orders by country
Total= Total
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.5.1.final using JasperReports Library version 6.5.1 -->
<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="report_summary" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="BlankPage" columnWidth="842" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" resourceBundle="de/metas/reports/intracommunity/report" isIgnorePagination="true" uuid="be165937-8a54-45bb-9624-cc1da8b204f3">
<property name="ireport.scriptlethandling" value="0"/>
<property name="ireport.encoding" value="UTF-8"/>
<property name="ireport.zoom" value="1.100000000000001"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="ic_uat.xml"/>
<property name="com.jaspersoft.studio.unit." value="pixel"/>
<property name="com.jaspersoft.studio.data.sql.tables" value=""/>
<property name="com.jaspersoft.studio.report.description" value=""/>
<import value="net.sf.jasperreports.engine.*"/>
<import value="java.util.*"/>
<import value="net.sf.jasperreports.engine.data.*"/>
<parameter name="C_Period_ID" class="java.lang.Integer"/>
<parameter name="C_BPartner_ID" class="java.lang.Integer"/>
<parameter name="IsEuTax" class="java.lang.String"/>
<queryString>
<![CDATA[select i.countrycode,
i.name,
sum(i.grandtotal) as grandtotal,
sum(i.euro_amt) as grandtotal_euro,
p.name as Period
from de_metas_endcustomer_fresh_reports.C_Invoice_V i
join C_Period p on i.dateinvoiced >= p.startdate
and i.dateinvoiced <= p.enddate
and p.c_period_id = $P{C_Period_ID}
and
( case when $P{C_BPartner_ID} is not null then i.C_BPartner_id = $P{C_BPartner_ID} else 1=1 end)
and
( case when $P{IsEuTax} is not null then i.IsEuTax = $P{IsEuTax} else 1=1 end)
group by i.countrycode, i.name, p.name
order by i.name, i.countrycode]]>
</queryString>
<field name="countrycode" class="java.lang.String">
<property name="com.jaspersoft.studio.field.label" value="countrycode"/>
</field>
<field name="name" class="java.lang.String">
<property name="com.jaspersoft.studio.field.label" value="name"/>
</field>
<field name="grandtotal" class="java.math.BigDecimal">
<property name="com.jaspersoft.studio.field.label" value="grandtotal"/>
</field>
<field name="grandtotal_euro" class="java.math.BigDecimal">
<property name="com.jaspersoft.studio.field.label" value="grandtotal_euro"/>
</field>
<field name="period" class="java.lang.String">
<property name="com.jaspersoft.studio.field.label" value="period"/>
</field>
<variable name="SUM_GrandTotal" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{grandtotal}]]></variableExpression>
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
</variable>
<variable name="SUM_EURO" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{grandtotal_euro}]]></variableExpression>
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
</variable>
<detail>
<band height="21">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement key="textField-13" isPrintRepeatedValues="false" x="100" y="3" width="390" height="18" forecolor="#000000" uuid="4cf99bf0-cf6a-478f-bd1a-ceb2cd04497a"/>
<textElement verticalAlignment="Top" markup="none">
<font fontName="Arial" size="10" isBold="false"/>
<paragraph leftIndent="5"/>
</textElement>
<textFieldExpression><![CDATA[$F{name} + "("+$F{countrycode}+")"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement key="textField-13" x="579" y="3" width="100" height="18" forecolor="#000000" uuid="01e2caa7-dc56-4b7c-8372-20790b1d3b01"/>
<textElement textAlignment="Right" verticalAlignment="Top" markup="none">
<font fontName="Arial" size="10" isBold="false"/>
<paragraph rightIndent="4"/>
</textElement>
<textFieldExpression><![CDATA[$F{grandtotal}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement key="textField-13" positionType="FixRelativeToBottom" x="687" y="3" width="100" height="18" forecolor="#000000" uuid="9f0b3d71-0a87-4692-9eb9-c54d42557ab4"/>
<textElement textAlignment="Right" verticalAlignment="Top" markup="none">
<font fontName="Arial" size="10" isBold="false"/>
<paragraph rightIndent="4"/>
</textElement>
<textFieldExpression><![CDATA[$F{grandtotal_euro}]]></textFieldExpression>
</textField>
</band>
</detail>
<lastPageFooter>
<band height="30">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement key="textField-13" x="579" y="3" width="100" height="18" forecolor="#000000" uuid="66283dd7-599f-45d6-ba29-ae87b201e12c"/>
<box>
<pen lineWidth="0.5"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Middle" markup="none">
<font fontName="Arial" size="11" isBold="true"/>
<paragraph rightIndent="4"/>
</textElement>
<textFieldExpression><![CDATA[$V{SUM_GrandTotal}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement key="textField-13" positionType="FixRelativeToBottom" x="687" y="3" width="100" height="18" forecolor="#000000" uuid="b55ab1b3-ad63-4252-a01b-736be76da217"/>
<box>
<pen lineWidth="0.5"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Middle" markup="none">
<font fontName="Arial" size="11" isBold="true"/>
<paragraph rightIndent="4"/>
</textElement>
<textFieldExpression><![CDATA[$V{SUM_EURO}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement key="textField-13" isPrintRepeatedValues="false" x="100" y="3" width="390" height="18" forecolor="#000000" uuid="5bf52166-875a-4314-88c0-27fb43285afa"/>
<textElement verticalAlignment="Middle" markup="none">
<font fontName="Arial" size="11" isBold="true"/>
<paragraph leftIndent="5"/>
</textElement>
<textFieldExpression><![CDATA[$R{Total}]]></textFieldExpression>
</textField>
</band>
</lastPageFooter>
</jasperReport>

0 comments on commit 499a827

Please sign in to comment.