<!doctype html>
<html  {$html_attrs}>
	<head>
				<meta http-equiv="X-UA-Compatible" content="IE=Edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>{$pagetitle}</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<base href="{$projectPath}">
		<link REL="stylesheet" href="styles/default.css?{$wizardBuildKey}" type="text/css">
	{BEGIN rtlCSS}
	<link REL="stylesheet" href="styles/defaultRTL.css?{$wizardBuildKey}" type="text/css">
	{END rtlCSS}
	{BEGIN styleCSSFiles}
	<link REL="stylesheet" href="{$stylepath}" type="text/css">
	{END styleCSSFiles}
	</head>

	<body class="{$stylename} function-rprint" {$bodyattrs}>
	{BEGIN body}
		{$header}
		<style>
			{$containerCss}
		</style>
		{$locking}
		<div class="r-small-page" 
			data-body-align="left"
			data-body-width="standard"
		>
							{BEGIN top_block}
<div class="r-form" data-location="top" id="form_top_{$pageid}" data-makeup="small" {$form_top} data-pageid="{$pageid}" >		
	 
		<div class="row">
			 
				<div 
	data-cellId="top_c2" data-pageid="{$pageid}"	{$cell_top_c2}
	class=" r-ori-vert			col-md-12
	
">
		 
		<h2 data-itemtype="print_header" data-itemid="print_header" {$item_print_header} data-pageid="{$pageid}" >{$pagetitlelabel Payment_r_4_xprinter rprint}</h2>
	 
		{BEGIN printtabheader}
<span data-itemtype="print_subheader" data-itemid="print_subheader" {$item_print_subheader} data-pageid="{$pageid}" >
{$printtabheader_text}
</span>
{END printtabheader}
		</div>					</div>
	</div>		
{END top_block}
									{BEGIN above-grid_block}
<div class="r-form" data-location="above-grid" id="form_above-grid_{$pageid}" data-makeup="small" {$form_above-grid} data-pageid="{$pageid}" >		
	 
		<div class="row">
			 
				<div 
	data-cellId="above-grid_c1" data-pageid="{$pageid}"	{$cell_above-grid_c1}
	class=" r-ori-vert			col-md-12
	
">
		{BEGIN firstAboveGridCell}
		 
		<span data-itemtype="print_pages" data-itemid="print_pages" {$item_print_pages} data-pageid="{$pageid}" data-small >
	{$print_pages_labelprint_pages}
</span>			{END firstAboveGridCell}	
	</div>					</div>
	</div>		
{END above-grid_block}
									{BEGIN grid_block}
<style>
	td.pagesummary.pagesummary.pagesummary.pagesummary.pagesummary.pagesummary.pagesummary.pagesummary {
		background-color: #ffffbb;
	}
	td.globalsummary.globalsummary.globalsummary.globalsummary.globalsummary.globalsummary.globalsummary.globalsummary {background-color: #ffe0b0;
	}
	.rnr-report {
		width: 100%;
	}
	td {
		padding: 2px; 4px;
	}
			td.group_1{
			background-color: #90EE90;
		}
		td.nbgroup_1{
			background-color: #90EE90;
		}
		td.header_1 {
			background-color: #7ACA7A; 
			font-size: 120%;
			padding: 2px 8px;
			font-weight: bold;
		}
			td.group_2{
			background-color: #FFB6C1;
		}
		td.nbgroup_2{
			background-color: #FFB6C1;
		}
		td.header_2 {
			background-color: #D89AA4; 
			font-size: 120%;
			padding: 2px 8px;
			font-weight: bold;
		}
			td.group_3{
			background-color: #FFFACD;
		}
		td.nbgroup_3{
			background-color: #FFFACD;
		}
		td.header_3 {
			background-color: #D8D4AE; 
			font-size: 120%;
			padding: 2px 8px;
			font-weight: bold;
		}
			td.group_4{
			background-color: #ADD8E6;
		}
		td.nbgroup_4{
			background-color: #ADD8E6;
		}
		td.header_4 {
			background-color: #93B7C3; 
			font-size: 120%;
			padding: 2px 8px;
			font-weight: bold;
		}
		td.blackshade {
		font-size: 120%;
	}
	.summaryrow > * {
		border:solid #808080 1px; 
		border-left: none; 
		border-right: none;
	}
		.fieldnamesrow > * 
	{
		border:solid #808080 1px; 
		border-left: none; 
		border-right: none;
	}
	</style>
<div id="grid_block{$id}" class="rnr-report-gridblock">
						
 <!-- add to settings ? -->


<table class="table table-striped table-bordered rnr-b-grid rnr-gridtable" cellpadding="0" >
	<tbody>			
{BEGIN grid_row}
				<!--  group headers -->
	 
		{BEGIN date_newgroup}							
		<tr class="group-spliter-1"  >
			<td class="header_1" colspan="3">
				{$label Payment_r_4_xprinter date }:&nbsp;
				{$xdate_grval}
								<span data-itemtype="grid_field" data-field="date" data-itemid="grid_field2" data-pageid={$pageid} data-record-id="{$recId}">
{$date_grval}
</span>			</td>
		</tr>
		
				{END date_newgroup}
	 
		{BEGIN outlet_code_newgroup}							
		<tr class="group-spliter-2"  >
			<td class="header_2" colspan="3">
				{$label Payment_r_4_xprinter outlet_code }:&nbsp;
				{$xoutlet_code_grval}
								<span data-itemtype="grid_field" data-field="outlet_code" data-itemid="grid_field3" data-pageid={$pageid} data-record-id="{$recId}">
{$outlet_code_grval}
</span>			</td>
		</tr>
		
				{END outlet_code_newgroup}
	 
		{BEGIN details_newgroup}							
		<tr class="group-spliter-3"  >
			<td class="header_3" colspan="3">
				{$label Payment_r_4_xprinter details }:&nbsp;
				{$xdetails_grval}
								<span data-itemtype="grid_field" data-field="details" data-itemid="grid_field4" data-pageid={$pageid} data-record-id="{$recId}">
{$details_grval}
</span>			</td>
		</tr>
		
				{END details_newgroup}
	 
		{BEGIN payment_type_newgroup}							
		<tr class="group-spliter-4"  >
			<td class="header_4" colspan="3">
				{$label Payment_r_4_xprinter payment_type }:&nbsp;
				{$xpayment_type_grval}
								<span data-itemtype="grid_field" data-field="payment_type" data-itemid="grid_field5" data-pageid={$pageid} data-record-id="{$recId}">
{$payment_type_grval}
</span>			</td>
		</tr>
		
				<tr class="fieldnamesrow group-headers">
																																						<td class="blackshade {$fieldclass_id}">{$label Payment_r_4_xprinter id }</td>
														<td class="blackshade {$fieldclass_pur_id}">{$label Payment_r_4_xprinter pur_id }</td>
														<td class="blackshade {$fieldclass_amount}">{$label Payment_r_4_xprinter amount }</td>
									</tr>
				{END payment_type_newgroup}
		

			<!--  data-->
		{BEGIN row_data}
		<tr >
																																						<td class="data {$fieldclass_id}">
			{$xid_value}
						<span data-itemtype="grid_field" data-field="id" data-itemid="grid_field6" data-pageid={$pageid} data-record-id="{$recId}">
{$id_value}
</span>			</td>
														<td class="data {$fieldclass_pur_id}">
			{$xpur_id_value}
						<span data-itemtype="grid_field" data-field="pur_id" data-itemid="grid_field7" data-pageid={$pageid} data-record-id="{$recId}">
{$pur_id_value}
</span>			</td>
														<td class="data {$fieldclass_amount}">
			{$xamount_value}
						<span data-itemtype="grid_field" data-field="amount" data-itemid="grid_field8" data-pageid={$pageid} data-record-id="{$recId}">
{$amount_value}
</span>			</td>
									</tr>
		{END row_data}
	
	<!---  group summary-->
					{BEGIN payment_type_endgroup}

		<tr >
					<td class="group_4" colspan="3">
				Summary for {$label Payment_r_4_xprinter payment_type } {$payment_type_grval} - <span class="summary-4" data-type="summary">
					{$grouppayment_type_total_cnt}
				</span> records total			</td>			
				</tr>
		
					<!--  Sum -->
			<tr >
												<td class="group_4">
									Sum									&nbsp;
							
				</td>
												<td class="group_4">
									&nbsp;
							
				</td>
												<td class="group_4 {$fieldclass_amount}">
									&nbsp;
									<span class="summary-4" data-type="sum" data-field="amount">					
						{$grouppayment_type_totalamount_sum}
					</span>			
							
				</td>
						</tr>
		
		
		
			

		{END payment_type_endgroup}
							{BEGIN details_endgroup}

		<tr >
					<td class="group_3" colspan="3">
				Summary for {$label Payment_r_4_xprinter details } {$details_grval} - <span class="summary-3" data-type="summary">
					{$groupdetails_total_cnt}
				</span> records total			</td>			
				</tr>
		
					<!--  Sum -->
			<tr >
												<td class="group_3">
									Sum									&nbsp;
							
				</td>
												<td class="group_3">
									&nbsp;
							
				</td>
												<td class="group_3 {$fieldclass_amount}">
									&nbsp;
									<span class="summary-3" data-type="sum" data-field="amount">					
						{$groupdetails_totalamount_sum}
					</span>			
							
				</td>
						</tr>
		
		
		
			

		{END details_endgroup}
							{BEGIN outlet_code_endgroup}

		<tr >
					<td class="group_2" colspan="3">
				Summary for {$label Payment_r_4_xprinter outlet_code } {$outlet_code_grval} - <span class="summary-2" data-type="summary">
					{$groupoutlet_code_total_cnt}
				</span> records total			</td>			
				</tr>
		
					<!--  Sum -->
			<tr >
												<td class="group_2">
									Sum									&nbsp;
							
				</td>
												<td class="group_2">
									&nbsp;
							
				</td>
												<td class="group_2 {$fieldclass_amount}">
									&nbsp;
									<span class="summary-2" data-type="sum" data-field="amount">					
						{$groupoutlet_code_totalamount_sum}
					</span>			
							
				</td>
						</tr>
		
		
		
			

		{END outlet_code_endgroup}
							{BEGIN date_endgroup}

		<tr >
					<td class="group_1" colspan="3">
				Summary for {$label Payment_r_4_xprinter date } {$date_grval} - <span class="summary-1" data-type="summary">
					{$groupdate_total_cnt}
				</span> records total			</td>			
				</tr>
		
					<!--  Sum -->
			<tr >
												<td class="group_1">
									Sum									&nbsp;
							
				</td>
												<td class="group_1">
									&nbsp;
							
				</td>
												<td class="group_1 {$fieldclass_amount}">
									&nbsp;
									<span class="summary-1" data-type="sum" data-field="amount">					
						{$groupdate_totalamount_sum}
					</span>			
							
				</td>
						</tr>
		
		
		
			

		{END date_endgroup}
			
{END grid_row}

	{BEGIN summary_header}
	<tr class="summary-header">
						
						
						
						
							<td class="blackshade {$fieldclass_id}">{$label Payment_r_4_xprinter id }</td>
				
							<td class="blackshade {$fieldclass_pur_id}">{$label Payment_r_4_xprinter pur_id }</td>
				
							<td class="blackshade {$fieldclass_amount}">{$label Payment_r_4_xprinter amount }</td>
				
			
	</tr>
	{END summary_header}			




    
    
    {BEGIN page_summary}
    <!-- page summary-->
    <tr class="summaryrow summary-page">
        <td class="pagesummary" colspan="7">Page summary            <span class="page-summary" data-type="summary">{$page_total_cnt}</span> - records total        </td>
    </tr>
	    <!--  Sum -->
    <tr class="summary-page">
					
                        <td class="pagesummary">Sum</td>
            		
					
                        <td class="pagesummary">&nbsp;</td>
					
					
                        <td class="pagesummary {$fieldclass_amount}">
				<span class="page-summary" data-type="sum" data-field="amount">
					{$page_totalamount_sum}
                </span>
            </td>
            		
		</tr>
	
	
	
	    {END page_summary}

	<!-- global summary-->
	{BEGIN global_summary}
    <tr class="summaryrow summary-global">
        <td class="globalsummary" colspan="7">
            Global summary {$global_total_cnt} - records total        </td>
    </tr>

	    <!--  Sum -->
    <tr class="summary-global">
					
                <td class="globalsummary">Sum</td>
        		
					
                <td class="globalsummary">&nbsp;</td>
				
					
                <td class="globalsummary {$fieldclass_amount}">
            {$global_totalamount_sum}
        </td>
        		
		</tr>
	
	
	
		{END global_summary}

	</tbody>
</table>			</div>
{END grid_block}									{BEGIN below-grid_block}
<div class="r-form" data-location="below-grid" id="form_below-grid_{$pageid}" data-makeup="small" {$form_below-grid} data-pageid="{$pageid}" >		
	</div>		
{END below-grid_block}
			</div>
		{$footer}
	{END body}
	</body>
</html>
