<?xml version="1.0" encoding="UTF-8"?>
<!--
Posics Saleculator - Billing System.
Copyright (C) 2009 Posics
This file is part of Posics Saleculator.
-->
<output>
<ticket>
<image>Printer.Ticket.Logo</image>
<line></line>
<line size="1">
<text align="center" length="48" bold="true">Close Cash Report</text>
</line>
<line></line>
<line>
<text length="18">Station:</text>
<text length="30" align="right">${payments.printHost()}</text>
</line>
<line>
<text length="18">Sequence:</text>
<text length="30" align="right">${payments.printSequence()}</text>
</line>
<line>
<text length="18">Start date:</text>
<text length="30" align="right">${payments.printDateStart()}</text>
</line>
<line>
<text length="18">End date:</text>
<text length="30" align="right">${payments.printDateEnd()}</text>
</line>
<line>
<text length="18">User:</text>
<text length="30" align="right">${payments.printUserName()}</text>
</line>
<line></line>
<line>
<text bold="true">Payments Report</text>
</line>
<line>
<text align="right" length="48">Total</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
#foreach ($line in $payments.getPaymentLines())
<line>
<text align="left" length="32">${line.printType()}</text>
<text align="right" length="16">${line.printValue()}</text>
</line>
#if (${line.printNote()})
<line>
<text align="left">${line.printNote()}</text>
</line>
#end
#end
<line>
<text>------------------------------------------------</text>
</line>
<line>
<text align="left" length="12">Receipts:</text>
<text align="right" length="36">${payments.printSales()}</text>
</line>
<line>
<text align="left" length="12">Payments:</text>
<text align="right" length="36">${payments.printPayments()}</text>
</line>
<line>
<text align="left" length="15" bold="true">Total Sales</text>
<text align="right" length="33" bold="true">${payments.printSalesBase()}</text>
</line>
<line></line>
<line size="1">
<text align="left" length="12" bold="true">Total</text>
<text align="right" length="36" bold="true">${payments.printPaymentsTotal()}</text>
</line>
<line></line>
<!-- CATEGORY SALE REPORT START -->
<line>
<text bold="true">Category Sales Report</text>
</line>
<line>
<text align="left" length="18">Category</text>
<text align="right" length="6">Units</text>
<text align="right" length="12">Cost</text>
<text align="right" length="12">Total</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
#foreach ($line in $payments.getCategorySalesLines())
<line>
<text align="left" length="18">${line.printCategoryName()}</text>
<text align="right" length="6">${line.printUnits()}</text>
<text align="right" length="12">${line.printCost()}</text>
<text align="right" length="12">${line.printSales()}</text>
</line>
#end
<line>
<text>------------------------------------------------</text>
</line>
<line size="1">
<text align="left" length="18" bold="true">Total</text>
<text align="right" length="6" bold="true">${payments.printProductSalesTotalUnits()}</text>
<text align="right" length="12" bold="true">${payments.printProductSalesCost()}</text>
<text align="right" length="12" bold="true">${payments.printProductSalesTotal()}</text>
</line>
<line>
<text align="left" length="18"></text>
<text align="left" length="6">Profit</text>
<text align="right" length="12">${payments.printProductSalesProfit()}</text>
<text align="right" length="12">${payments.printProductSalesProfitPct()}%</text>
</line>
<!-- CATEGORY SALE REPORT END -->
<!-- SALES RETURNS -->
<line></line>
<line>
<text bold="true">Sales Returns</text>
</line>
<line>
<text align="left" length="8">Receipt</text>
<text align="left" length="25">Item</text>
<text align="center" length="5">Qty</text>
<text align="right" length="10">Amount</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
#set($retTotal = 0)
#foreach ($line in $payments.getSalesReturns())
<line>
<text align="left" length="8">${line.printReceiptNumber()}</text>
<text align="left" length="25">${line.printProductName()}</text>
<text align="center" length="5">${line.printProductUnits()}</text>
<text align="right" length="10">${line.printProductPriceTax()}</text>
</line>
#set($retTotal = $retTotal + (${line.getProductUnits()} * ${line.getProductPriceTax()}))
#end
<line>
<text>------------------------------------------------</text>
</line>
#if ($retTotal!=0)
<line>
<text bold="true" align ="right" length="48">$payments.formatCurrency($retTotal)</text>
</line>
#end
<!-- SALES RETURNS END -->
<!-- SALES BY USER -->
<line>
<text bold="true">Sales By User</text>
</line>
<line>
<text align="left" length="30">User</text>
<text align="right" length="18">Amount</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
#foreach ($line in $payments.getSalesByUser())
<line>
<text align="left" length="30">${line.printUserName()}</text>
<text align="right" length="18">${line.printAmount()}</text>
</line>
<line>
<text align="left" length="48">${line.printStartDate()}-${line.printEndDate()}</text>
</line>
#end
<line>
<text>------------------------------------------------</text>
</line>
<line></line>
<!-- SALES BY USER END -->
<!-- TAXES REPORT START -->
<line>
<text bold="true">Taxes Report</text>
</line>
<line>
<text align="right" length="48">Total</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
#foreach ($line in $payments.getSaleLines())
<line>
<text align="left" length="38">${line.printTaxName()}</text>
<text align="right" length="10">${line.printTaxes()}</text>
</line>
#end
<line>
<text>------------------------------------------------</text>
</line>
<line></line>
<!-- TAXES REPORT END -->
<!-- SALES BY CHEQUE-->
<line>
<text bold="true">Cheque Payments</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
#foreach ($line in $payments.getSalesByCheque())
<line>
<text align="left" length="20">Receipt: ${line.printReceiptNo()}</text>
<text align="right" length="28">Amount: ${line.printChequeAmount()}</text>
</line>
<line>
<text>No.: ${line.printChequeNo()}</text>
<text> Bank: ${line.printBankName()}</text>
<text> Date: ${line.printChequeDate()}</text>
</line>
<line></line>
#end
<line>
<text>------------------------------------------------</text>
</line>
<line></line>
<!-- SALES BY CHEQUE REPORT END -->
<!-- VOUCHER DENOMINATION REPORT -->
<line>
<text bold="true">Voucher Denominations</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
#foreach ($line in $payments.getVoucherDenomination())
<line>
<text align="left" length="15">${line.printVoucherName()}</text>
<text align="right" length="10">${line.printVoucherValue()}</text>
<text> X </text>
<text align="left" length="5">${line.printVoucherCount()}</text>
<text align="right" length="15">${line.printVoucherTotal()}</text>
</line>
#end
<line>
<text>------------------------------------------------</text>
</line>
<line></line>
<!-- VOUCHER DENOMINATION REPORT END -->
<!-- DEBT SALES -->
<line>
<text bold="true">Debt Sales</text>
</line>
<line>
<text align="left" length="25">Customer</text>
<text align="left" length="8">Receipt</text>
<text align="right" length="15">Amount</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
#set($debtTotal = 0)
#foreach ($line in $payments.getCustomerPayments())
#if ( ${line.printPaymentType()} == "debt" )
<line>
<text align="left" length="25">${line.printCustomerName()}(${line.printCustomerCard()})</text>
<text align="left" length="8">${line.printTicketId()}</text>
<text align="right" length="15">${line.printAmount()}</text>
</line>
#set($debtTotal = $debtTotal + ${line.getAmount()})
#end
#end
<line>
<text>------------------------------------------------</text>
</line>
<line>
<text bold="true" align="right" length="48">$debtTotal</text>
</line>
<line></line>
<!-- DEBT SALES END -->
<!-- DEBT PAID -->
<line>
<text bold="true">Debt Paid</text>
</line>
<line>
<text align="left" length="33">Customer</text>
<text align="right" length="15">Amount</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
#set($debtTotal = 0)
#foreach ($line in $payments.getCustomerPayments())
#if ( ${line.printTicketType()} == "2" && ${line.getAmount()} > 0)
<line>
<text align="left" length="25">${line.printCustomerName()}(${line.printCustomerCard()})</text>
<text align="left" length="8">${line.printPaymentType()}</text>
<text align="right" length="15">${line.printAmount()}</text>
</line>
#set($debtTotal = $debtTotal + ${line.getAmount()})
#end
#end
<line>
<text>------------------------------------------------</text>
</line>
<line>
<text bold="true" align="right" length="48">$debtTotal</text>
</line>
<line></line>
<!-- DEBT PAID END -->
<!-- SALE REPORT START -->
<line>
<text bold="true">Sales Report</text>
</line>
<line>
<text align="left" length="18">Name</text>
<text align="right" length="6">Units</text>
<text align="right" length="12">Cost</text>
<text align="right" length="12">Total</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
#set($cat = "")
#set($prod = "")
#foreach ($line in $payments.getProductSalesLines())
#if ( $cat != ${line.printCategoryName()} )
#set( $cat = ${line.printCategoryName()} )
<line></line>
<line>
<text align="left" length="48">${line.printCategoryName()}</text>
</line>
#end
<line>
<text align="left" length="18">${line.printProductName()}</text>
<text align="right" length="6">${line.printUnits()}</text>
<text align="right" length="12">${line.printCost()}</text>
<text align="right" length="12">${line.printSalesTax()}</text>
</line>
#end
<line>
<text>------------------------------------------------</text>
</line>
<line size="1">
<text align="left" length="18" bold="true">Total</text>
<text align="right" length="6" bold="true">${payments.printProductSalesTotalUnits()}</text>
<text align="right" length="12" bold="true">${payments.printProductSalesCost()}</text>
<text align="right" length="12" bold="true">${payments.printProductSalesTotal()}</text>
</line>
<line>
<text align="left" length="18"></text>
<text align="left" length="6">Profit</text>
<text align="right" length="12">${payments.printProductSalesDifference()}</text>
<text align="right" length="12">${payments.printProductSalesDifferencePct()}%</text>
</line>
<!-- SALE REPORT END -->
<!-- CATEGORY SALE REPORT START -->
<line>
<text bold="true">Category Sales Report</text>
</line>
<line>
<text align="left" length="18">Category</text>
<text align="right" length="6">Units</text>
<text align="right" length="12">Cost</text>
<text align="right" length="12">Total</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
#foreach ($line in $payments.getCategorySalesLines())
<line>
<text align="left" length="18">${line.printCategoryName()}</text>
<text align="right" length="6">${line.printUnits()}</text>
<text align="right" length="12">${line.printCost()}</text>
<text align="right" length="12">${line.printSales()}</text>
</line>
#end
<line>
<text>------------------------------------------------</text>
</line>
<line size="1">
<text align="left" length="18" bold="true">Total</text>
<text align="right" length="6" bold="true">${payments.printProductSalesTotalUnits()}</text>
<text align="right" length="12" bold="true">${payments.printProductSalesCost()}</text>
<text align="right" length="12" bold="true">${payments.printProductSalesTotal()}</text>
</line>
<line>
<text align="left" length="18"></text>
<text align="left" length="6">Profit</text>
<text align="right" length="12">${payments.printProductSalesDifference()}</text>
<text align="right" length="12">${payments.printProductSalesDifferencePct()}%</text>
</line>
<!-- CATEGORY SALE REPORT END -->
<!-- STOCK REPORT START -->
<line>
<text bold="true">Stock Report</text>
</line>
<line>
<text align="left" length="18">Name</text>
<text align="right" length="6">In</text>
<text align="right" length="6">Out</text>
<text align="right" length="6">Bal</text>
<text align="right" length="12">Value</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
#set($cat = "")
#foreach ($line in $payments.getProductStockLines())
#if ( $cat != ${line.printCategoryName()} )
#set( $cat = ${line.printCategoryName()} )
<line></line>
<line>
<text align="left" length="48">${line.printCategoryName()}</text>
</line>
#end
<line>
<text align="left" length="18">${line.printProductName()}</text>
<text align="right" length="6">${line.printStockIn()}</text>
<text align="right" length="6">${line.printStockOut()}</text>
<text align="right" length="6">${line.printCurrentStock()}</text>
<text align="right" length="12">${line.printStockValue()}</text>
</line>
#end
<line>
<text>------------------------------------------------</text>
</line>
<!-- STOCK REPORT END -->
<!-- LINES REMOVED REPORT START -->
<line></line>
<line>
<text bold="true">Removed Lines Report</text>
</line>
<line>
<text length="18">Date</text>
<text length="6">Ticket</text>
<text length="12">User</text>
<text length="12">Item</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
#foreach ($line in $payments.getRemovedLines())
<line>
<text length="18">$line.printDate()</text>
<text length="6">$line.printTicketId()</text>
<text length="12">$line.printUser()</text>
<text length="12">$line.printProductName()</text>
</line>
#end
<line>
<text>------------------------------------------------</text>
</line>
<!-- LINES REMOVED REPORT END -->
<!-- SALES RETURNS -->
<line></line>
<line>
<text bold="true">Sales Returns</text>
</line>
<line>
<text align="left" length="8">Receipt</text>
<text align="left" length="25">Item</text>
<text align="center" length="5">Qty</text>
<text align="right" length="10">Amount</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
#set($retTotal = 0)
#foreach ($line in $payments.getSalesReturns())
<line>
<text align="left" length="8">${line.printReceiptNumber()}</text>
<text align="left" length="25">${line.printProductName()}</text>
<text align="center" length="5">${line.printProductUnits()}</text>
<text align="right" length="10">${line.printProductPriceTax()}</text>
</line>
#set($retTotal = $retTotal + (${line.getProductUnits()} * ${line.getProductPriceTax()}))
#end
<line>
<text>------------------------------------------------</text>
</line>
<line>
<text bold="true" align="right" length="48">$payments.formatCurrency($retTotal)</text>
</line>
<!-- SALES RETURNS END -->
<!-- SALES BY USER -->
<line>
<text bold="true">Sales By User</text>
</line>
<line>
<text align="left" length="30">User</text>
<text align="right" length="18">Amount</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
#foreach ($line in $payments.getSalesByUser())
<line>
<text align="left" length="30">${line.printUserName()}</text>
<text align="right" length="18">${line.printAmount()}</text>
</line>
<line>
<text align="left" length="48">${line.printStartDate()}-${line.printEndDate()}</text>
</line>
#end
<line>
<text>------------------------------------------------</text>
</line>
<line></line>
<!-- SALES BY USER END -->
<!-- PROPERTY REPORT START -->
<line></line>
<line>
<text bold="true">Table Sales</text>
</line>
<line>
<text align="left" length="28">Name</text>
<text align="left" length="10">Count</text>
<text align="right" length="10">Total</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
#foreach ($line in $payments.getSalesByProperty("Place"))
<line>
<text align="left" length="28">${line.printPropertyName()}</text>
<text align="left" length="10">${line.printCount()}</text>
<text align="right" length="10">${line.printSaleAmount()}</text>
</line>
#end
<line>
<text>------------------------------------------------</text>
</line>
<line size="1">
<text align="left" length="12" bold="true">Total</text>
<text align="right" length="36" bold="true">${payments.printPropertySalesTotal()}</text>
</line>
<!-- PROPERTY REPORT END -->
<!-- PROPERTY REPORT START -->
<line></line>
<line>
<text bold="true">Tariff Sales</text>
</line>
<line>
<text align="left" length="28">Name</text>
<text align="left" length="10">Count</text>
<text align="right" length="10">Total</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
#foreach ($line in $payments.getSalesByProperty("TariffArea"))
<line>
<text align="left" length="28">${line.printPropertyName()}</text>
<text align="left" length="10">${line.printCount()}</text>
<text align="right" length="10">${line.printSaleAmount()}</text>
</line>
#end
<line>
<text>------------------------------------------------</text>
</line>
<line size="1">
<text align="left" length="12" bold="true">Total</text>
<text align="right" length="36" bold="true">${payments.printPropertySalesTotal()}</text>
</line>
<!-- PROPERTY REPORT END -->
<!-- SALES LOG START -->
<line></line>
<line>
<text align="center" bold="true">Sales Log</text>
</line>
<line>
<text length="20">Date</text>
<text length="8">No.</text>
<text align="right" length="10">Total</text>
<text align="right" length="10">Tax</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
#foreach ($line in $payments.getSalesTickets())
<line>
<text length="20">${line.printTicketDate()}</text>
<text length="8">${line.printTicketId()}</text>
<text align="right" length="10">${line.printAmount()}</text>
<text align="right" length="10">${line.printTaxAmount()}</text>
</line>
#if($line.printCustomerName())
<line>
<text length="48">${line.printTaxid()} - ${line.printCustomerName()}</text>
</line>
#end
#end
<line>
<text>------------------------------------------------</text>
</line>
<line>
<text length="20"></text>
<text bold="true" align="right" length="14">${payments.printSalesTotal()}</text>
<text bold="true" align="right" length="14">${payments.printSalesTaxes()}</text>
</line>
<!-- SALES LOG END -->
<!-- PURCHASE LOG START -->
<line></line>
<line>
<text align="center" bold="true">Purchase Log</text>
</line>
<line>
<text length="12">Date</text>
<text length="8">No.</text>
<text align="right" length="14">Total</text>
<text align="right" length="14">Tax</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
#foreach ($line in $payments.getPurchaseTickets())
<line>
<text length="12">${line.printTicketDate()}</text>
<text length="8">${line.printTicketId()}</text>
<text align="right" length="14">${line.printAmount()}</text>
<text align="right" length="14">${line.printTaxAmount()}</text>
</line>
#if($line.printSupplierName())
<line>
<text length="48">${line.printTaxid()} - ${line.printSupplierName()}</text>
</line>
#end
#end
<line>
<text>------------------------------------------------</text>
</line>
<line>
<text length="20"></text>
<text bold="true" align="right" length="14">${payments.printPurchaseTotal()}</text>
<text bold="true" align="right" length="14">${payments.printPurchaseTaxes()}</text>
</line>
<!-- PURCHASE LOG END -->
<!-- DELIVERY SALES -->
<line></line>
<line>
<text bold="true">Delivery Orders</text>
</line>
<line>
<text align ="left" length="20">Driver</text>
<text align ="right" length="28">Amount</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
#set($delTotal = 0.00)
#set($driver = "")
#set($drvTotal = 0.00)
#foreach ($line in $payments.getDeliveryTickets())
#if($driver.equals($line.printDriverName()))
#set($drvTotal = $drvTotal + ${line.getAmount()})
#else
<line>
<text align ="left" length="20">$driver</text>
<text bold="true" align ="right" length="28">$payments.formatCurrency($drvTotal)</text>
</line>
#set($drvTotal = ${line.getAmount()})
#set($driver = $line.printDriverName())
#end
#set($delTotal = $delTotal + ${line.getAmount()})
#end
<line>
<text align ="left" length="20">$driver</text>
<text bold="true" align ="right" length="28">$payments.formatCurrency($drvTotal)</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
<line>
<text bold="true" align ="right" length="48">$payments.formatCurrency($delTotal)</text>
</line>
<line></line>
<!-- DELIVERY SALES END -->
<!-- SALES BY ONLINE -->
<line>
<text bold="true">Online Orders</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
#foreach ($line in $payments.getSalesByOnline())
<line>
<text align="left" length="5">${line.printReceiptNo()}</text>
<text align="left" length="15">${line.printService()}</text>
<text align="right" length="28">${line.printAmount()}</text>
</line>
#end
<line>
<text>------------------------------------------------</text>
</line>
<line></line>
<!-- SALES BY ONLINE END -->
<!-- SALES BY CASH -->
<line>
<text bold="true">Orders By Cash</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
#foreach ($line in $payments.getSalesByCash())
#if(!$line.printService().equals("Cash"))
<line>
<text align="left" length="5">${line.printReceiptNo()}</text>
<text align="left" length="15">${line.printService()}</text>
<text align="right" length="28">${line.printAmount()}</text>
</line>
#end
#end
<line>
<text>------------------------------------------------</text>
</line>
<line></line>
<!-- SALES BY CASH END -->
<!-- SALES BY CARD-->
<line>
<text bold="true">Card Payments</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
#foreach ($line in $payments.getSalesByCard())
<line>
<text align ="left" length="20">${line.printBankName()}</text>
<text align ="left" length="10">${line.printPayments()}</text>
<text align ="right" length="18">${line.printAmount()}</text>
</line>
#end
<line>
<text>------------------------------------------------</text>
</line>
<line></line>
<!-- SALES BY CARD REPORT END -->
<!-- CASH REPORT START -->
<line>
<text bold="true">Cash Report</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
<line>
<text align="left" length="20">Expected</text>
<text align="right" length="28">${payments.printExpectedCash()}</text>
</line>
<line>
<text align="left" length="20">Actual</text>
<text align="right" length="28">${payments.printActualCash()}</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
<line>
<text align="left" length="20">Excess/Shortage</text>
<text align="right" length="28">${payments.printCashDifference()}</text>
</line>
<line></line>
<!-- CASH REPORT START -->
<!-- CARD REPORT START -->
<line>
<text bold="true">Card Report</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
<line>
<text align="left" length="20">Expected</text>
<text align="right" length="28">${payments.printExpectedCard()}</text>
</line>
<line>
<text align="left" length="20">Actual</text>
<text align="right" length="28">${payments.printActualCard()}</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
<line>
<text align="left" length="20">Excess/Shortage</text>
<text align="right" length="28">${payments.printCardDifference()}</text>
</line>
<line></line>
<!-- CARD REPORT START -->
<!-- CLOSING NOTES -->
<line>
<text>Notes: ${payments.printNotes()}</text>
</line>
<!-- CLOSING NOTES -->
</ticket>
</output>
Leave a Reply