<!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 expenses_Report 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: #7F7F7F;
		}
		td.nbgroup_1{
			background-color: #7F7F7F;
		}
		td.header_1 {
			background-color: #6B6B6B; 
			font-size: 120%;
			padding: 2px 8px;
			font-weight: bold;
		}
			td.group_2{
			background-color: #C0C0C0;
		}
		td.nbgroup_2{
			background-color: #C0C0C0;
		}
		td.header_2 {
			background-color: #A3A3A3; 
			font-size: 120%;
			padding: 2px 8px;
			font-weight: bold;
		}
			td.group_3{
			background-color: #FFFFFF;
		}
		td.nbgroup_3{
			background-color: #FFFFFF;
		}
		td.header_3 {
			background-color: #D8D8D8; 
			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;
	}
		.grouptotalsrow + :not(.grouptotalsrow) > * {
		border-top:solid #808080 1px; 
	}
	</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}
			{BEGIN expense_date_newgroup}
				<tr class="group-headers">
										<td class="blackshade {$fieldclass_expense_date}">{$label expenses_Report expense_date }</td>
														<td class="blackshade {$fieldclass_category}">{$label expenses_Report category }</td>
														<td class="blackshade {$fieldclass_details}">{$label expenses_Report details }</td>
																																										
																															<td class="blackshade {$fieldclass_expense_id}">{$label expenses_Report expense_id }</td>
														<td class="blackshade {$fieldclass_amount}">{$label expenses_Report amount }</td>
														<td class="blackshade {$fieldclass_reference_no}">{$label expenses_Report reference_no }</td>
														<td class="blackshade {$fieldclass_created_by}">{$label expenses_Report created_by }</td>
														<td class="blackshade {$fieldclass_created_at}">{$label expenses_Report created_at }</td>
									</tr>
		
		<tr class="group-spliter-1"  >
															<td colspan="8" class="header_1">
				<font >
				{$xexpense_date_grval}
								<span data-itemtype="grid_field" data-field="expense_date" data-itemid="grid_field2" data-pageid={$pageid} data-record-id="{$recId}">
{$expense_date_grval}
</span>				</font>
			</td>
																												</tr>
		{END expense_date_newgroup}
			{BEGIN category_newgroup}
		
		<tr class="group-spliter-2"  >
										<td class=" group_1" >&nbsp;</td>
																			<td colspan="7" class="header_2">
				<font >
				{$xcategory_grval}
								<span data-itemtype="grid_field" data-field="category" data-itemid="grid_field3" data-pageid={$pageid} data-record-id="{$recId}">
{$category_grval}
</span>				</font>
			</td>
																					</tr>
		{END category_newgroup}
			{BEGIN details_newgroup}
		
		<tr class="group-spliter-3" {$rowattrs} >
										<td class=" group_1" >&nbsp;</td>
														<td class=" group_2" >&nbsp;</td>
																			<td colspan="6" class="header_3">
				<font>
				{$xdetails_grval}
								<span data-itemtype="grid_field" data-field="details" data-itemid="grid_field4" data-pageid={$pageid} data-record-id="{$recId}">
{$details_grval}
</span>				</font>
			</td>
														</tr>
		{END details_newgroup}
	
		<!--  data-->
		{BEGIN row_data}
		<tr>
								<td class="{$fieldclass_expense_date} group_1">
				{$xexpense_date_value}
								<span data-itemtype="grid_field" data-field="expense_date" data-itemid="grid_field5" data-pageid={$pageid} data-record-id="{$recId}">
{$expense_date_value}
</span>			</td>
											<td class=" group_2" >&nbsp;</td>
											<td class=" group_3" >&nbsp;</td>
																												<td class="data {$fieldclass_expense_id}">
				{$xexpense_id_value}
								<span data-itemtype="grid_field" data-field="expense_id" data-itemid="grid_field6" data-pageid={$pageid} data-record-id="{$recId}">
{$expense_id_value}
</span>			</td>
											<td class="data {$fieldclass_amount}">
				{$xamount_value}
								<span data-itemtype="grid_field" data-field="amount" data-itemid="grid_field7" data-pageid={$pageid} data-record-id="{$recId}">
{$amount_value}
</span>			</td>
											<td class="data {$fieldclass_reference_no}">
				{$xreference_no_value}
								<span data-itemtype="grid_field" data-field="reference_no" data-itemid="grid_field8" data-pageid={$pageid} data-record-id="{$recId}">
{$reference_no_value}
</span>			</td>
											<td class="data {$fieldclass_created_by}">
				{$xcreated_by_value}
								<span data-itemtype="grid_field" data-field="created_by" data-itemid="grid_field9" data-pageid={$pageid} data-record-id="{$recId}">
{$created_by_value}
</span>			</td>
											<td class="data {$fieldclass_created_at}">
				{$xcreated_at_value}
								<span data-itemtype="grid_field" data-field="created_at" data-itemid="grid_field10" data-pageid={$pageid} data-record-id="{$recId}">
{$created_at_value}
</span>			</td>
							</tr>
		{END row_data}
	
				{BEGIN details_endgroup}
		<tr class="summaryrow"  >
										<td class="group_1" style="border-top: none;"></td>
							<td class="group_2" style="border-top: none;"></td>
							
																								<td  class="group_3" colspan=6 >
				Summary for&nbsp;{$label expenses_Report details }&nbsp;{$details_grval}
					- <span class="summary-3" data-type="summary">{$groupdetails_total_cnt}
					</span> records total			</td>
																																												</tr>

		<!--  Sum -->
		<tr class="grouptotalsrow" >
					
						<td class="group_1">&nbsp;</td>
								
						<td class="group_2">&nbsp;</td>
								
						<td class="group_3">Sum</td>
								
						<td class="group_3">&nbsp;</td>
								
						<td class="{$fieldclass_amount} group_3">
				<span class="summary-3" data-type="sum" data-field="amount">
					{$groupdetails_totalamount_sum}
				</span>
			</td>
								
						<td class="group_3">&nbsp;</td>
								
						<td class="group_3">&nbsp;</td>
								
						<td class="group_3">&nbsp;</td>
							</tr>
	
	
	
	
	{END details_endgroup}
						{BEGIN category_endgroup}
		<tr class="summaryrow"  >
										<td class="group_1" style="border-top: none;"></td>
							
																	<td  class="group_2" colspan=7 >
				Summary for&nbsp;{$label expenses_Report category }&nbsp;{$category_grval}
					- <span class="summary-2" data-type="summary">{$groupcategory_total_cnt}
					</span> records total			</td>
																																																			</tr>

		<!--  Sum -->
		<tr class="grouptotalsrow" >
					
						<td class="group_1">&nbsp;</td>
								
						<td class="group_2">Sum</td>
								
						<td class="group_2">&nbsp;</td>
								
						<td class="group_2">&nbsp;</td>
								
						<td class="{$fieldclass_amount} group_2">
				<span class="summary-2" data-type="sum" data-field="amount">
					{$groupcategory_totalamount_sum}
				</span>
			</td>
								
						<td class="group_2">&nbsp;</td>
								
						<td class="group_2">&nbsp;</td>
								
						<td class="group_2">&nbsp;</td>
							</tr>
	
	
	
	
	{END category_endgroup}
						{BEGIN expense_date_endgroup}
		<tr class="summaryrow"  >
			
										<td  class="group_1" colspan=8 >
				Summary for&nbsp;{$label expenses_Report expense_date }&nbsp;{$expense_date_grval}
					- <span class="summary-1" data-type="summary">{$groupexpense_date_total_cnt}
					</span> records total			</td>
																																																										</tr>

		<!--  Sum -->
		<tr class="grouptotalsrow" >
					
						<td class="group_1">Sum</td>
								
						<td class="group_1">&nbsp;</td>
								
						<td class="group_1">&nbsp;</td>
								
						<td class="group_1">&nbsp;</td>
								
						<td class="{$fieldclass_amount} group_1">
				<span class="summary-1" data-type="sum" data-field="amount">
					{$groupexpense_date_totalamount_sum}
				</span>
			</td>
								
						<td class="group_1">&nbsp;</td>
								
						<td class="group_1">&nbsp;</td>
								
						<td class="group_1">&nbsp;</td>
							</tr>
	
	
	
	
	{END expense_date_endgroup}
			
	{END grid_row}


	


    


	</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>
