Maintenance > Resources
This template can be used in Printer.CloseCash/Printer.PartialCash for printing payment report based on payment type.
This template generate Cash Out report. Other payment reports can be generated changing “Cash Out” to desired values like Cash, Debt, Cash In, Card, Currency, Refund, Free, etc.,
<line> <text bold="true">Cash Out Report</text> </line> <line> <text align ="right" length="48">Total</text> </line> <line> <text>------------------------------------------------</text> </line> #set($total=0.00) #foreach ($line in $payments.getPaymentLines()) #if($line.printType().equals("Cash Out")) #set($total=$total+$line.getValue()) <line> <text align ="right" length="48">${line.printValue()}</text> </line> #if($line.printNote()!= "") <line> <text align ="left">${line.printNote()}</text> </line> #end #end #end <line> <text>------------------------------------------------</text> </line> <line> <text bold="true" align ="left" length="12">Total:</text> <text bold="true" align ="right" length="36">$payments.formatCurrency($total)</text> </line> <line></line> Save & restart
Leave a Reply