Printer item wise sales report in close cash report

This template can be used to printer item wise sales report

Maintenance > Resources
Use the below template in Printer.CloseCash/Printer.PartialCash/Printer.CloseCashMail

<!-- 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.printProductUnits()}</text>
  <text align ="right" length="12">${line.printCost()}</text>
         <text align ="right" length="12">${line.printProductPriceTax()}</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">Rs.${payments.printProductSalesCost()}</text>
            <text align ="right" length="12" bold="true">Rs.${payments.printProductSalesTotal()}</text>
        </line>
<line size="1">
            <text align ="left" length="24" bold="true">Difference</text>
            <text align ="right" length="12" bold="true">Rs.${payments.printProductSalesDifference()}</text>
            <text align ="right" length="12" bold="true">${payments.printProductSalesDifferencePct()}%</text>
        </line>


<!-- SALE REPORT END -->

Save & restart

0 Comments

Leave a Reply

Arrow-up