TavernerPOS - Source Code
Clone:
git clone http://www.librarysmith.co.uk/tavernerPOS
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Created with iReport - A designer for JasperReports -->
<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
<jasperReport
name="sales_summary_balace_detail"
columnCount="1"
printOrder="Vertical"
orientation="Portrait"
pageWidth="595"
pageHeight="842"
columnWidth="535"
columnSpacing="0"
leftMargin="30"
rightMargin="30"
topMargin="20"
bottomMargin="20"
whenNoDataType="AllSectionsNoDetail"
isFloatColumnFooter="true"
isTitleNewPage="false"
isSummaryNewPage="false">
<property name="ireport.scriptlethandling" value="0" />
<property name="ireport.encoding" value="UTF-8" />
<import value="java.util.*" />
<import value="net.sf.jasperreports.engine.*" />
<import value="net.sf.jasperreports.engine.data.*" />
<parameter name="giftCertChangeAmount" isForPrompting="false" class="java.lang.Double"/>
<parameter name="giftCertChangeCount" isForPrompting="false" class="java.lang.Integer"/>
<parameter name="giftCertReturnAmount" isForPrompting="false" class="java.lang.Double"/>
<parameter name="giftCertReturnCount" isForPrompting="false" class="java.lang.Integer"/>
<parameter name="tipsCount" isForPrompting="false" class="java.lang.Integer"/>
<parameter name="tipsAmount" isForPrompting="false" class="java.lang.Double"/>
<parameter name="tipsPaidAmount" isForPrompting="false" class="java.lang.Double"/>
<parameter name="reportTime" isForPrompting="false" class="java.lang.String"/>
<parameter name="fromDate" isForPrompting="false" class="java.lang.String"/>
<parameter name="toDate" isForPrompting="false" class="java.lang.String"/>
<parameter name="drawerPullDatasource" isForPrompting="false" class="net.sf.jasperreports.engine.JRDataSource"/>
<parameter name="drawerPullReport" isForPrompting="false" class="net.sf.jasperreports.engine.JasperReport"/>
<parameter name="creditCardReport" isForPrompting="false" class="net.sf.jasperreports.engine.JasperReport"/>
<parameter name="creditCardReportDatasource" isForPrompting="false" class="net.sf.jasperreports.engine.JRDataSource"/>
<variable name="tipsDifferential" class="java.lang.Double" resetType="Report" calculation="Nothing">
<variableExpression><![CDATA[Double.valueOf($P{tipsAmount}.doubleValue()-$P{tipsPaidAmount}.doubleValue())]]></variableExpression>
</variable>
<background>
<band height="0" isSplitAllowed="true" >
</band>
</background>
<title>
<band height="0" isSplitAllowed="true" >
</band>
</title>
<pageHeader>
<band height="0" isSplitAllowed="true" >
</band>
</pageHeader>
<columnHeader>
<band height="76" isSplitAllowed="true" >
<staticText>
<reportElement
x="2"
y="41"
width="33"
height="15"
key="staticText-2"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement verticalAlignment="Middle">
<font/>
</textElement>
<text><![CDATA[Time:]]></text>
</staticText>
<staticText>
<reportElement
x="312"
y="41"
width="23"
height="15"
key="staticText-3"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement verticalAlignment="Middle">
<font/>
</textElement>
<text><![CDATA[To:]]></text>
</staticText>
<staticText>
<reportElement
x="157"
y="41"
width="34"
height="15"
key="staticText-4"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement verticalAlignment="Middle">
<font/>
</textElement>
<text><![CDATA[From:]]></text>
</staticText>
<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="35"
y="41"
width="111"
height="15"
key="textField-1"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement verticalAlignment="Middle">
<font/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{reportTime}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="191"
y="41"
width="111"
height="15"
key="textField-2"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement verticalAlignment="Middle">
<font/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{fromDate}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="335"
y="41"
width="111"
height="15"
key="textField-3"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement verticalAlignment="Middle">
<font/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{toDate}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="448"
y="0"
width="87"
height="18"
key="textField-5"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["Page: " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<staticText>
<reportElement
x="1"
y="22"
width="534"
height="15"
key="staticText-5"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Center">
<font pdfFontName="Helvetica-Bold" isBold="true"/>
</textElement>
<text><![CDATA[SALES SUMMARY REPORT]]></text>
</staticText>
<staticText>
<reportElement
x="2"
y="60"
width="33"
height="15"
key="staticText-6"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font/>
</textElement>
<text><![CDATA[Type:]]></text>
</staticText>
<staticText>
<reportElement
x="35"
y="60"
width="111"
height="15"
key="staticText-7"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font/>
</textElement>
<text><![CDATA[System Total]]></text>
</staticText>
<staticText>
<reportElement
x="157"
y="60"
width="98"
height="15"
key="staticText-8"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font/>
</textElement>
<text><![CDATA[ALL PERIODS]]></text>
</staticText>
<staticText>
<reportElement
x="284"
y="60"
width="148"
height="15"
key="staticText-9"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font/>
</textElement>
<text><![CDATA[ALL CENTERS]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="81" isSplitAllowed="true" >
<subreport isUsingCache="true">
<reportElement
x="0"
y="4"
width="535"
height="19"
key="subreport-1"/>
<dataSourceExpression><![CDATA[$P{drawerPullDatasource}]]></dataSourceExpression>
<subreportExpression class="net.sf.jasperreports.engine.JasperReport"><![CDATA[$P{drawerPullReport}]]></subreportExpression>
</subreport>
<subreport isUsingCache="true">
<reportElement
x="0"
y="58"
width="535"
height="23"
key="subreport-2"
positionType="Float"/>
<dataSourceExpression><![CDATA[$P{creditCardReportDatasource}]]></dataSourceExpression>
<subreportExpression class="net.sf.jasperreports.engine.JasperReport"><![CDATA[$P{creditCardReport}]]></subreportExpression>
</subreport>
</band>
</detail>
<columnFooter>
<band height="139" isSplitAllowed="true" >
<staticText>
<reportElement
x="0"
y="33"
width="167"
height="14"
key="staticText-10"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font/>
</textElement>
<text><![CDATA[GIFT CERTIFICATE RETURN]]></text>
</staticText>
<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="170"
y="33"
width="75"
height="14"
key="textField-6"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Right">
<font/>
</textElement>
<textFieldExpression class="java.lang.Integer"><![CDATA[$P{giftCertReturnCount}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="false" pattern="0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="249"
y="33"
width="84"
height="14"
key="textField-7"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Right">
<font/>
</textElement>
<textFieldExpression class="java.lang.Double"><![CDATA[$P{giftCertReturnAmount}]]></textFieldExpression>
</textField>
<staticText>
<reportElement
x="0"
y="49"
width="167"
height="14"
key="staticText-11"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font/>
</textElement>
<text><![CDATA[GIFT CERTIFICATE CHANGE]]></text>
</staticText>
<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="170"
y="49"
width="75"
height="14"
key="textField-8"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Right">
<font/>
</textElement>
<textFieldExpression class="java.lang.Integer"><![CDATA[$P{giftCertChangeCount}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="false" pattern="0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="249"
y="49"
width="84"
height="14"
key="textField-9"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Right">
<font/>
</textElement>
<textFieldExpression class="java.lang.Double"><![CDATA[$P{giftCertChangeAmount}]]></textFieldExpression>
</textField>
<staticText>
<reportElement
x="0"
y="76"
width="167"
height="14"
key="staticText-12"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font/>
</textElement>
<text><![CDATA[TOTAL CHARGED TIPS]]></text>
</staticText>
<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="170"
y="76"
width="75"
height="14"
key="textField-10"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Right">
<font/>
</textElement>
<textFieldExpression class="java.lang.Integer"><![CDATA[$P{tipsCount}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="false" pattern="0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="249"
y="76"
width="84"
height="14"
key="textField-11"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Right">
<font/>
</textElement>
<textFieldExpression class="java.lang.Double"><![CDATA[$P{tipsAmount}]]></textFieldExpression>
</textField>
<staticText>
<reportElement
x="0"
y="92"
width="167"
height="14"
key="staticText-13"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font/>
</textElement>
<text><![CDATA[TIPS PAID]]></text>
</staticText>
<textField isStretchWithOverflow="false" pattern="0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="249"
y="92"
width="84"
height="14"
key="textField-13"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Right">
<font/>
</textElement>
<textFieldExpression class="java.lang.Double"><![CDATA[$P{tipsPaidAmount}]]></textFieldExpression>
</textField>
<staticText>
<reportElement
x="0"
y="107"
width="167"
height="14"
key="staticText-14"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font/>
</textElement>
<text><![CDATA[TIPS DISCOUNT]]></text>
</staticText>
<textField isStretchWithOverflow="false" pattern="0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="249"
y="107"
width="84"
height="14"
key="textField-15"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Right">
<font/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["0"]]></textFieldExpression>
</textField>
<line direction="TopDown">
<reportElement
x="0"
y="123"
width="334"
height="0"
key="line-1"/>
<graphicElement stretchType="NoStretch" pen="Dotted"/>
</line>
<staticText>
<reportElement
x="0"
y="124"
width="167"
height="14"
key="staticText-15"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font/>
</textElement>
<text><![CDATA[TIPS DIFFERENTIAL]]></text>
</staticText>
<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="249"
y="124"
width="84"
height="14"
key="textField-17"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Right">
<font/>
</textElement>
<textFieldExpression class="java.lang.Double"><![CDATA[$V{tipsDifferential}]]></textFieldExpression>
</textField>
</band>
</columnFooter>
<pageFooter>
<band height="0" isSplitAllowed="true" >
</band>
</pageFooter>
<summary>
<band height="0" isSplitAllowed="true" >
</band>
</summary>
</jasperReport>
- Details
- Last Updated: Monday, 04 April 2016 02:04
- Hits: 45329896