<?xml version="1.0" encoding="UTF-8"?>
<output>
<ticket>
<image>Printer.Ticket.Logo</image>
<line></line>
<line size="1">
<text align ="center" length="48" bold="true">Partial Cash Report - #${payments.getPrintCount()}</text>
</line>
<line><text align ="center" length="48" bold="true">${payments.printDate()}</text></line>
<line></line>
<line>
<text length="18">Drawer:</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>
<!-- 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 -->
<!-- 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>
</line>
<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 -->
</ticket>
</output>
Leave a Reply