<!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}">
		{BEGIN styleCSSFiles}
<link REL="stylesheet" href="{$stylepath}" type="text/css">
{END styleCSSFiles}
			
	</head>

	<body class="{$stylename} function-list" {$bodyattrs}  
		>
	{BEGIN body}
		<style>
		{$containerCss}
		</style>
		<div class="r-vbar-page">
			<div data-width="300px" data-fixed class="r-left clearfix {$leftbar_class}" >
								<div data-location="left" id="form_left_{$pageid}" data-makeup="leftbar" {$form_left} data-pageid="{$pageid}" data-page="sales_list">
{BEGIN left_block}
 
     
         

			<div data-cellId="left_c0" data-pageid="{$pageid}" data-logo-cell class="clearfix " data-itemid="logo" {$item_logo}>
				{BEGIN logo_block}
	<A data-itemtype="logo" data-itemid="logo" {$item_logo}="" data-pageid="{$pageid}" class="navbar-brand" href="{$home_link}" data-pageid="{$pageid}" {$logo_hiddenattr}>
		{$logo}
	</A>
{END logo_block}
				<button data-pageid="1" type="button" class="navbar-toggle collapsed" data-runner-toggle="collapse" data-target="[data-mobile-controlled]">	
					<span class="sr-only">Toggle navigation</span>	
					<span class="icon-bar"></span>					
				</button>				
			</div>
		
 

			<div class="clearfix " data-cellId="left_c0" data-pageid="{$pageid}" data-logo-cell data-itemid="expand_button" {$item_expand_button} data-topcell-item-type="expand_button" >
				<span data-itemtype="expand_button" data-itemid="expand_button" {$item_expand_button}="" data-pageid="{$pageid}" data-small="" data-button-item>
	<a type="button" title="{mlang_message EXPAND}" class="btn btn-link   
	" href="#" >
					<span class="glyphicon glyphicon-triangle-right"></span>
										</a>
</span>
			</div>
		
     
     
         

			<div data-cellId="left_c1" data-pageid="{$pageid}" class="clearfix  r-ori-vert " data-itemtype="menu" data-itemid="menu" {$item_menu}="" data-pageid="{$pageid}">
				{BEGIN menuitems_main}
<ul data-itemtype="menu" data-itemid="menu" {$item_menu}="" data-pageid="{$pageid}"	class="r-menu nav menu-treelike" 
	data-menulevel="1"
>

{BEGIN item_children1}
<li class="
	{$item_current}">
<a {$item_attrs} title="{$item_tooltip}" data-menu-link data-menu-v data-menu-inline data-menu-top >
	{$item_separator}
	<span class="r-menu-link r-menu-expanded "> 
		<span class="r-menu-title">
		{$item_icon} {$item_title}
		</span>
		{BEGIN item_haschildren2}
		{BEGIN item_expand_icon}
		<span class="r-menu-expand-icon fa fa-angle-left"></span>
		<span class="r-menu-mobile-expand-icon fa fa-angle-left"></span>
		{END item_expand_icon}
		{END item_haschildren2}
	</span>
		<span class="r-menu-collapsed">{$item_collicon}{$item_firstcap}</span>
	</a>
{BEGIN item_showchildren2}
<ul class="
			nav collapse 
			{$submenu_class}" 
		id="submenu{$item_id}" data-menulevel="2">
	{BEGIN item_children2}
		{BEGIN item_menulink2}
		<li class="
						{$item_current}"
		>
			<a {$item_attrs} title="{$item_tooltip}" data-menu-link data-menu-v data-menu-inline >
	{$item_separator}
	<span class="r-menu-link  "> 
		<span class="r-menu-title">
		{$item_icon} {$item_title}
		</span>
		{BEGIN item_haschildren2}
		{BEGIN item_expand_icon}
		<span class="r-menu-expand-icon fa fa-angle-left"></span>
		<span class="r-menu-mobile-expand-icon fa fa-angle-left"></span>
		{END item_expand_icon}
		{END item_haschildren2}
	</span>
	</a>
			{BEGIN item_showchildren3}
<ul class="
			nav collapse 
			{$submenu_class}" 
		id="submenu{$item_id}" data-menulevel="3">
	{BEGIN item_children3}
		{BEGIN item_menulink3}
		<li class="
						{$item_current}"
		>
			<a {$item_attrs} title="{$item_tooltip}" data-menu-link data-menu-v data-menu-inline >
	{$item_separator}
	<span class="r-menu-link  "> 
		<span class="r-menu-title">
		{$item_icon} {$item_title}
		</span>
		{BEGIN item_haschildren3}
		{BEGIN item_expand_icon}
		<span class="r-menu-expand-icon fa fa-angle-left"></span>
		<span class="r-menu-mobile-expand-icon fa fa-angle-left"></span>
		{END item_expand_icon}
		{END item_haschildren3}
	</span>
	</a>
			{BEGIN item_showchildren4}
<ul class="
			nav collapse 
			{$submenu_class}" 
		id="submenu{$item_id}" data-menulevel="4">
	{BEGIN item_children4}
		{BEGIN item_menulink4}
		<li class="
						{$item_current}"
		>
			<a {$item_attrs} title="{$item_tooltip}" data-menu-link data-menu-v data-menu-inline >
	{$item_separator}
	<span class="r-menu-link  "> 
		<span class="r-menu-title">
		{$item_icon} {$item_title}
		</span>
		{BEGIN item_haschildren4}
		{BEGIN item_expand_icon}
		<span class="r-menu-expand-icon fa fa-angle-left"></span>
		<span class="r-menu-mobile-expand-icon fa fa-angle-left"></span>
		{END item_expand_icon}
		{END item_haschildren4}
	</span>
	</a>
			{BEGIN item_showchildren5}
<ul class="
			nav collapse 
			{$submenu_class}" 
		id="submenu{$item_id}" data-menulevel="5">
	{BEGIN item_children5}
		{BEGIN item_menulink5}
		<li class="
						{$item_current}"
		>
			<a {$item_attrs} title="{$item_tooltip}" data-menu-link data-menu-v data-menu-inline >
	{$item_separator}
	<span class="r-menu-link  "> 
		<span class="r-menu-title">
		{$item_icon} {$item_title}
		</span>
		{BEGIN item_haschildren5}
		{BEGIN item_expand_icon}
		<span class="r-menu-expand-icon fa fa-angle-left"></span>
		<span class="r-menu-mobile-expand-icon fa fa-angle-left"></span>
		{END item_expand_icon}
		{END item_haschildren5}
	</span>
	</a>
					</li>
		{END item_menulink5}
	{END item_children5}
</ul>
{END item_showchildren5}
		</li>
		{END item_menulink4}
	{END item_children4}
</ul>
{END item_showchildren4}
		</li>
		{END item_menulink3}
	{END item_children3}
</ul>
{END item_showchildren3}
		</li>
		{END item_menulink2}
	{END item_children2}
</ul>
{END item_showchildren2}
</li>
{END item_children1}
</ul>
{END menuitems_main}
			</div>
		
 

			<div class="clearfix  r-ori-vert" data-cellId="left_c1" data-pageid="{$pageid}" data-itemid="search_panel" {$item_search_panel} data-topcell-item-type="search_panel" >
				<!-- Begin Search panel content -->
<div class="searchOptions panel panel-primary searchPanelContainer " {$srchOpt_attrs} data-itemtype="search_panel" data-itemid="search_panel" {$item_search_panel}="" data-pageid="{$pageid}"	 >

	<div class="panel-heading">
		<div class="btn-group r-sp-addfield" id="addSearchFieldButton{$id}">
			<button id="showHideControlChooseMenu{$id}" type="button" class="btn btn-default dropdown-toggle btn-sm )" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
			{mlang_message SEARCH_IN}			<span class="caret"></span>
			</button>
		</div>


		<div class="btn-group r-sp-options" id="searchPanelOptions{$id}">
			<button type="button" class="btn btn-default dropdown-toggle btn-sm" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
				<span class="glyphicon glyphicon glyphicon-option-vertical"></span>
			</button>
			<ul class="dropdown-menu dropdown-left">
				<li id="showHideSearchType{$id}" {$showHideCtrlsOpt_attrs}><a>{mlang_message SEARCH_SHOW_OPTIONS_BUTTON}</a></li>
				<li role="separator" class="divider"></li>
				<li class="srchCritTop" style="display: none;"><a><input type="radio" name="srchType{$id}" id="radioAll" {$all_checkbox}><label for="radioAll"><span class="glyphicon">&nbsp;</span>{mlang_message SEARCH_ALL_CONDITIONS}</label></a></li>
				<li class="srchCritTop" style="display: none;"><a><input type="radio" name="srchType{$id}" id="radioAny" {$any_checkbox}><label for="radioAny"><span class="glyphicon">&nbsp;</span>{mlang_message SEARCH_ANY_CONDITIONS}</label></a></li>
				<li role="separator" class="divider"></li>
				<li><a class="close-button"><span class="glyphicon glyphicon-remove">&nbsp;</span>{mlang_message HIDE}</a></li>
			</ul>
		</div>


		</div>
	<div class="panel-body controlsBlock" {$bottomSearchButt_attrs} >


		
		{BEGIN searchCtrlBlock}
		<div class="srchPanelRow form-group" {$filterRow_attrs}>
			<label>{$fLabel}</label>	{$delCtrlButt}
				<span class="rnr-searchtype">{$searchtype}</span>
				<span class="rnr-searchcontrol">{$searchcontrol}</span>
				<span class="rnr-searchcontrol">{$searchcontrol1}</span>
		</div>
		{END searchCtrlBlock}
																		{BEGIN searchCtrlBlock_id}


		<div class="form-group srchPanelRow {$filterRow_class_id}" {$filterRow_attrs_id}>
			<label>{$label sales id }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_id}</span>
						</div>
		{END searchCtrlBlock_id}
																{BEGIN searchCtrlBlock_cancelled_at}


		<div class="form-group srchPanelRow {$filterRow_class_cancelled_at}" {$filterRow_attrs_cancelled_at}>
			<label>{$label sales cancelled_at }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_cancelled_at}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_cancelled_at}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_cancelled_at}</span>
						</div>
		{END searchCtrlBlock_cancelled_at}
																{BEGIN searchCtrlBlock_posted_at}


		<div class="form-group srchPanelRow {$filterRow_class_posted_at}" {$filterRow_attrs_posted_at}>
			<label>{$label sales posted_at }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_posted_at}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_posted_at}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_posted_at}</span>
						</div>
		{END searchCtrlBlock_posted_at}
																{BEGIN searchCtrlBlock_approved_at}


		<div class="form-group srchPanelRow {$filterRow_class_approved_at}" {$filterRow_attrs_approved_at}>
			<label>{$label sales approved_at }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_approved_at}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_approved_at}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_approved_at}</span>
						</div>
		{END searchCtrlBlock_approved_at}
																{BEGIN searchCtrlBlock_updated_at}


		<div class="form-group srchPanelRow {$filterRow_class_updated_at}" {$filterRow_attrs_updated_at}>
			<label>{$label sales updated_at }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_updated_at}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_updated_at}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_updated_at}</span>
						</div>
		{END searchCtrlBlock_updated_at}
																{BEGIN searchCtrlBlock_created_at}


		<div class="form-group srchPanelRow {$filterRow_class_created_at}" {$filterRow_attrs_created_at}>
			<label>{$label sales created_at }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_created_at}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_created_at}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_created_at}</span>
						</div>
		{END searchCtrlBlock_created_at}
																{BEGIN searchCtrlBlock_posted_by_platform_user_id}


		<div class="form-group srchPanelRow {$filterRow_class_posted_by_platform_user_id}" {$filterRow_attrs_posted_by_platform_user_id}>
			<label>{$label sales posted_by_platform_user_id }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_posted_by_platform_user_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_posted_by_platform_user_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_posted_by_platform_user_id}</span>
						</div>
		{END searchCtrlBlock_posted_by_platform_user_id}
																{BEGIN searchCtrlBlock_approved_by_platform_user_id}


		<div class="form-group srchPanelRow {$filterRow_class_approved_by_platform_user_id}" {$filterRow_attrs_approved_by_platform_user_id}>
			<label>{$label sales approved_by_platform_user_id }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_approved_by_platform_user_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_approved_by_platform_user_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_approved_by_platform_user_id}</span>
						</div>
		{END searchCtrlBlock_approved_by_platform_user_id}
																{BEGIN searchCtrlBlock_created_by_platform_user_id}


		<div class="form-group srchPanelRow {$filterRow_class_created_by_platform_user_id}" {$filterRow_attrs_created_by_platform_user_id}>
			<label>{$label sales created_by_platform_user_id }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_created_by_platform_user_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_created_by_platform_user_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_created_by_platform_user_id}</span>
						</div>
		{END searchCtrlBlock_created_by_platform_user_id}
																{BEGIN searchCtrlBlock_remarks}


		<div class="form-group srchPanelRow {$filterRow_class_remarks}" {$filterRow_attrs_remarks}>
			<label>{$label sales remarks }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_remarks}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_remarks}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_remarks}</span>
						</div>
		{END searchCtrlBlock_remarks}
																{BEGIN searchCtrlBlock_electronic_invoice_issued_at}


		<div class="form-group srchPanelRow {$filterRow_class_electronic_invoice_issued_at}" {$filterRow_attrs_electronic_invoice_issued_at}>
			<label>{$label sales electronic_invoice_issued_at }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_electronic_invoice_issued_at}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_electronic_invoice_issued_at}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_electronic_invoice_issued_at}</span>
						</div>
		{END searchCtrlBlock_electronic_invoice_issued_at}
																{BEGIN searchCtrlBlock_eis_status}


		<div class="form-group srchPanelRow {$filterRow_class_eis_status}" {$filterRow_attrs_eis_status}>
			<label>{$label sales eis_status }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_eis_status}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_eis_status}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_eis_status}</span>
						</div>
		{END searchCtrlBlock_eis_status}
																{BEGIN searchCtrlBlock_posting_status}


		<div class="form-group srchPanelRow {$filterRow_class_posting_status}" {$filterRow_attrs_posting_status}>
			<label>{$label sales posting_status }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_posting_status}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_posting_status}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_posting_status}</span>
						</div>
		{END searchCtrlBlock_posting_status}
																{BEGIN searchCtrlBlock_document_status}


		<div class="form-group srchPanelRow {$filterRow_class_document_status}" {$filterRow_attrs_document_status}>
			<label>{$label sales document_status }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_document_status}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_document_status}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_document_status}</span>
						</div>
		{END searchCtrlBlock_document_status}
																{BEGIN searchCtrlBlock_approval_status}


		<div class="form-group srchPanelRow {$filterRow_class_approval_status}" {$filterRow_attrs_approval_status}>
			<label>{$label sales approval_status }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_approval_status}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_approval_status}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_approval_status}</span>
						</div>
		{END searchCtrlBlock_approval_status}
																{BEGIN searchCtrlBlock_beneficiary_id_type}


		<div class="form-group srchPanelRow {$filterRow_class_beneficiary_id_type}" {$filterRow_attrs_beneficiary_id_type}>
			<label>{$label sales beneficiary_id_type }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_beneficiary_id_type}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_beneficiary_id_type}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_beneficiary_id_type}</span>
						</div>
		{END searchCtrlBlock_beneficiary_id_type}
																{BEGIN searchCtrlBlock_beneficiary_id_no}


		<div class="form-group srchPanelRow {$filterRow_class_beneficiary_id_no}" {$filterRow_attrs_beneficiary_id_no}>
			<label>{$label sales beneficiary_id_no }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_beneficiary_id_no}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_beneficiary_id_no}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_beneficiary_id_no}</span>
						</div>
		{END searchCtrlBlock_beneficiary_id_no}
																{BEGIN searchCtrlBlock_beneficiary_name}


		<div class="form-group srchPanelRow {$filterRow_class_beneficiary_name}" {$filterRow_attrs_beneficiary_name}>
			<label>{$label sales beneficiary_name }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_beneficiary_name}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_beneficiary_name}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_beneficiary_name}</span>
						</div>
		{END searchCtrlBlock_beneficiary_name}
																{BEGIN searchCtrlBlock_benefit_type}


		<div class="form-group srchPanelRow {$filterRow_class_benefit_type}" {$filterRow_attrs_benefit_type}>
			<label>{$label sales benefit_type }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_benefit_type}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_benefit_type}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_benefit_type}</span>
						</div>
		{END searchCtrlBlock_benefit_type}
																{BEGIN searchCtrlBlock_base_grand_total_amount}


		<div class="form-group srchPanelRow {$filterRow_class_base_grand_total_amount}" {$filterRow_attrs_base_grand_total_amount}>
			<label>{$label sales base_grand_total_amount }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_base_grand_total_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_base_grand_total_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_base_grand_total_amount}</span>
						</div>
		{END searchCtrlBlock_base_grand_total_amount}
																{BEGIN searchCtrlBlock_grand_total_amount}


		<div class="form-group srchPanelRow {$filterRow_class_grand_total_amount}" {$filterRow_attrs_grand_total_amount}>
			<label>{$label sales grand_total_amount }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_grand_total_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_grand_total_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_grand_total_amount}</span>
						</div>
		{END searchCtrlBlock_grand_total_amount}
																{BEGIN searchCtrlBlock_withholding_amount}


		<div class="form-group srchPanelRow {$filterRow_class_withholding_amount}" {$filterRow_attrs_withholding_amount}>
			<label>{$label sales withholding_amount }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_withholding_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_withholding_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_withholding_amount}</span>
						</div>
		{END searchCtrlBlock_withholding_amount}
																{BEGIN searchCtrlBlock_vat_amount}


		<div class="form-group srchPanelRow {$filterRow_class_vat_amount}" {$filterRow_attrs_vat_amount}>
			<label>{$label sales vat_amount }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_vat_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_vat_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_vat_amount}</span>
						</div>
		{END searchCtrlBlock_vat_amount}
																{BEGIN searchCtrlBlock_zero_rated_amount}


		<div class="form-group srchPanelRow {$filterRow_class_zero_rated_amount}" {$filterRow_attrs_zero_rated_amount}>
			<label>{$label sales zero_rated_amount }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_zero_rated_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_zero_rated_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_zero_rated_amount}</span>
						</div>
		{END searchCtrlBlock_zero_rated_amount}
																{BEGIN searchCtrlBlock_vat_exempt_amount}


		<div class="form-group srchPanelRow {$filterRow_class_vat_exempt_amount}" {$filterRow_attrs_vat_exempt_amount}>
			<label>{$label sales vat_exempt_amount }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_vat_exempt_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_vat_exempt_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_vat_exempt_amount}</span>
						</div>
		{END searchCtrlBlock_vat_exempt_amount}
																{BEGIN searchCtrlBlock_vatable_amount}


		<div class="form-group srchPanelRow {$filterRow_class_vatable_amount}" {$filterRow_attrs_vatable_amount}>
			<label>{$label sales vatable_amount }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_vatable_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_vatable_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_vatable_amount}</span>
						</div>
		{END searchCtrlBlock_vatable_amount}
																{BEGIN searchCtrlBlock_statutory_discount_amount}


		<div class="form-group srchPanelRow {$filterRow_class_statutory_discount_amount}" {$filterRow_attrs_statutory_discount_amount}>
			<label>{$label sales statutory_discount_amount }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_statutory_discount_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_statutory_discount_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_statutory_discount_amount}</span>
						</div>
		{END searchCtrlBlock_statutory_discount_amount}
																{BEGIN searchCtrlBlock_commercial_discount_amount}


		<div class="form-group srchPanelRow {$filterRow_class_commercial_discount_amount}" {$filterRow_attrs_commercial_discount_amount}>
			<label>{$label sales commercial_discount_amount }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_commercial_discount_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_commercial_discount_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_commercial_discount_amount}</span>
						</div>
		{END searchCtrlBlock_commercial_discount_amount}
																{BEGIN searchCtrlBlock_subtotal_amount}


		<div class="form-group srchPanelRow {$filterRow_class_subtotal_amount}" {$filterRow_attrs_subtotal_amount}>
			<label>{$label sales subtotal_amount }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_subtotal_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_subtotal_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_subtotal_amount}</span>
						</div>
		{END searchCtrlBlock_subtotal_amount}
																{BEGIN searchCtrlBlock_project_task_id}


		<div class="form-group srchPanelRow {$filterRow_class_project_task_id}" {$filterRow_attrs_project_task_id}>
			<label>{$label sales project_task_id }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_project_task_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_project_task_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_project_task_id}</span>
						</div>
		{END searchCtrlBlock_project_task_id}
																{BEGIN searchCtrlBlock_project_id}


		<div class="form-group srchPanelRow {$filterRow_class_project_id}" {$filterRow_attrs_project_id}>
			<label>{$label sales project_id }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_project_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_project_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_project_id}</span>
						</div>
		{END searchCtrlBlock_project_id}
																{BEGIN searchCtrlBlock_cost_center_id}


		<div class="form-group srchPanelRow {$filterRow_class_cost_center_id}" {$filterRow_attrs_cost_center_id}>
			<label>{$label sales cost_center_id }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_cost_center_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_cost_center_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_cost_center_id}</span>
						</div>
		{END searchCtrlBlock_cost_center_id}
																{BEGIN searchCtrlBlock_department_id}


		<div class="form-group srchPanelRow {$filterRow_class_department_id}" {$filterRow_attrs_department_id}>
			<label>{$label sales department_id }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_department_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_department_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_department_id}</span>
						</div>
		{END searchCtrlBlock_department_id}
																{BEGIN searchCtrlBlock_campaign_id}


		<div class="form-group srchPanelRow {$filterRow_class_campaign_id}" {$filterRow_attrs_campaign_id}>
			<label>{$label sales campaign_id }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_campaign_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_campaign_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_campaign_id}</span>
						</div>
		{END searchCtrlBlock_campaign_id}
																{BEGIN searchCtrlBlock_sales_agent_id}


		<div class="form-group srchPanelRow {$filterRow_class_sales_agent_id}" {$filterRow_attrs_sales_agent_id}>
			<label>{$label sales sales_agent_id }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_sales_agent_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_sales_agent_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_sales_agent_id}</span>
						</div>
		{END searchCtrlBlock_sales_agent_id}
																{BEGIN searchCtrlBlock_exchange_rate}


		<div class="form-group srchPanelRow {$filterRow_class_exchange_rate}" {$filterRow_attrs_exchange_rate}>
			<label>{$label sales exchange_rate }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_exchange_rate}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_exchange_rate}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_exchange_rate}</span>
						</div>
		{END searchCtrlBlock_exchange_rate}
																{BEGIN searchCtrlBlock_base_currency_code}


		<div class="form-group srchPanelRow {$filterRow_class_base_currency_code}" {$filterRow_attrs_base_currency_code}>
			<label>{$label sales base_currency_code }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_base_currency_code}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_base_currency_code}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_base_currency_code}</span>
						</div>
		{END searchCtrlBlock_base_currency_code}
																{BEGIN searchCtrlBlock_currency_code}


		<div class="form-group srchPanelRow {$filterRow_class_currency_code}" {$filterRow_attrs_currency_code}>
			<label>{$label sales currency_code }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_currency_code}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_currency_code}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_currency_code}</span>
						</div>
		{END searchCtrlBlock_currency_code}
																{BEGIN searchCtrlBlock_shipping_address}


		<div class="form-group srchPanelRow {$filterRow_class_shipping_address}" {$filterRow_attrs_shipping_address}>
			<label>{$label sales shipping_address }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_shipping_address}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_shipping_address}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_shipping_address}</span>
						</div>
		{END searchCtrlBlock_shipping_address}
																{BEGIN searchCtrlBlock_billing_address}


		<div class="form-group srchPanelRow {$filterRow_class_billing_address}" {$filterRow_attrs_billing_address}>
			<label>{$label sales billing_address }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_billing_address}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_billing_address}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_billing_address}</span>
						</div>
		{END searchCtrlBlock_billing_address}
																{BEGIN searchCtrlBlock_payment_terms_days}


		<div class="form-group srchPanelRow {$filterRow_class_payment_terms_days}" {$filterRow_attrs_payment_terms_days}>
			<label>{$label sales payment_terms_days }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_payment_terms_days}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_payment_terms_days}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_payment_terms_days}</span>
						</div>
		{END searchCtrlBlock_payment_terms_days}
																{BEGIN searchCtrlBlock_customer_branch_code_snapshot}


		<div class="form-group srchPanelRow {$filterRow_class_customer_branch_code_snapshot}" {$filterRow_attrs_customer_branch_code_snapshot}>
			<label>{$label sales customer_branch_code_snapshot }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_customer_branch_code_snapshot}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_customer_branch_code_snapshot}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_customer_branch_code_snapshot}</span>
						</div>
		{END searchCtrlBlock_customer_branch_code_snapshot}
																{BEGIN searchCtrlBlock_customer_tin_snapshot}


		<div class="form-group srchPanelRow {$filterRow_class_customer_tin_snapshot}" {$filterRow_attrs_customer_tin_snapshot}>
			<label>{$label sales customer_tin_snapshot }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_customer_tin_snapshot}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_customer_tin_snapshot}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_customer_tin_snapshot}</span>
						</div>
		{END searchCtrlBlock_customer_tin_snapshot}
																{BEGIN searchCtrlBlock_customer_name_snapshot}


		<div class="form-group srchPanelRow {$filterRow_class_customer_name_snapshot}" {$filterRow_attrs_customer_name_snapshot}>
			<label>{$label sales customer_name_snapshot }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_customer_name_snapshot}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_customer_name_snapshot}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_customer_name_snapshot}</span>
						</div>
		{END searchCtrlBlock_customer_name_snapshot}
																{BEGIN searchCtrlBlock_customer_id}


		<div class="form-group srchPanelRow {$filterRow_class_customer_id}" {$filterRow_attrs_customer_id}>
			<label>{$label sales customer_id }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_customer_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_customer_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_customer_id}</span>
						</div>
		{END searchCtrlBlock_customer_id}
																{BEGIN searchCtrlBlock_due_date}


		<div class="form-group srchPanelRow {$filterRow_class_due_date}" {$filterRow_attrs_due_date}>
			<label>{$label sales due_date }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_due_date}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_due_date}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_due_date}</span>
						</div>
		{END searchCtrlBlock_due_date}
																{BEGIN searchCtrlBlock_transaction_date}


		<div class="form-group srchPanelRow {$filterRow_class_transaction_date}" {$filterRow_attrs_transaction_date}>
			<label>{$label sales transaction_date }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_transaction_date}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_transaction_date}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_transaction_date}</span>
						</div>
		{END searchCtrlBlock_transaction_date}
																{BEGIN searchCtrlBlock_draft_reference}


		<div class="form-group srchPanelRow {$filterRow_class_draft_reference}" {$filterRow_attrs_draft_reference}>
			<label>{$label sales draft_reference }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_draft_reference}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_draft_reference}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_draft_reference}</span>
						</div>
		{END searchCtrlBlock_draft_reference}
																{BEGIN searchCtrlBlock_registered_document_series_id}


		<div class="form-group srchPanelRow {$filterRow_class_registered_document_series_id}" {$filterRow_attrs_registered_document_series_id}>
			<label>{$label sales registered_document_series_id }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_registered_document_series_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_registered_document_series_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_registered_document_series_id}</span>
						</div>
		{END searchCtrlBlock_registered_document_series_id}
																{BEGIN searchCtrlBlock_document_no}


		<div class="form-group srchPanelRow {$filterRow_class_document_no}" {$filterRow_attrs_document_no}>
			<label>{$label sales document_no }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_document_no}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_document_no}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_document_no}</span>
						</div>
		{END searchCtrlBlock_document_no}
																{BEGIN searchCtrlBlock_original_sales_id}


		<div class="form-group srchPanelRow {$filterRow_class_original_sales_id}" {$filterRow_attrs_original_sales_id}>
			<label>{$label sales original_sales_id }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_original_sales_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_original_sales_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_original_sales_id}</span>
						</div>
		{END searchCtrlBlock_original_sales_id}
																{BEGIN searchCtrlBlock_transaction_type}


		<div class="form-group srchPanelRow {$filterRow_class_transaction_type}" {$filterRow_attrs_transaction_type}>
			<label>{$label sales transaction_type }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_transaction_type}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_transaction_type}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_transaction_type}</span>
						</div>
		{END searchCtrlBlock_transaction_type}
																{BEGIN searchCtrlBlock_accounting_period_id}


		<div class="form-group srchPanelRow {$filterRow_class_accounting_period_id}" {$filterRow_attrs_accounting_period_id}>
			<label>{$label sales accounting_period_id }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_accounting_period_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_accounting_period_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_accounting_period_id}</span>
						</div>
		{END searchCtrlBlock_accounting_period_id}
																{BEGIN searchCtrlBlock_branch_scope_id}


		<div class="form-group srchPanelRow {$filterRow_class_branch_scope_id}" {$filterRow_attrs_branch_scope_id}>
			<label>{$label sales branch_scope_id }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_branch_scope_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_branch_scope_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_branch_scope_id}</span>
						</div>
		{END searchCtrlBlock_branch_scope_id}
																{BEGIN searchCtrlBlock_branch_id}


		<div class="form-group srchPanelRow {$filterRow_class_branch_id}" {$filterRow_attrs_branch_id}>
			<label>{$label sales branch_id }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_branch_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_branch_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_branch_id}</span>
						</div>
		{END searchCtrlBlock_branch_id}
																{BEGIN searchCtrlBlock_company_id}


		<div class="form-group srchPanelRow {$filterRow_class_company_id}" {$filterRow_attrs_company_id}>
			<label>{$label sales company_id }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_company_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_company_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_company_id}</span>
						</div>
		{END searchCtrlBlock_company_id}
																{BEGIN searchCtrlBlock_sales_uuid}


		<div class="form-group srchPanelRow {$filterRow_class_sales_uuid}" {$filterRow_attrs_sales_uuid}>
			<label>{$label sales sales_uuid }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_sales_uuid}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_sales_uuid}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_sales_uuid}</span>
						</div>
		{END searchCtrlBlock_sales_uuid}
		

	</div>

	<div class="panel-footer bottomSearchButt" {$bottomSearchButt_attrs}>
		<button class="btn btn-primary btn-sm" id="searchButton{$id}" {$searchbutton_attrs}>{mlang_message SEARCH}</button>

				<button class="btn btn-default btn-sm" {$showAllCont_attrs} {$showallbutton_attrs}>{mlang_message SHOW_ALL}</button>
	</div>
</div>
<!-- End Search panel content -->
			</div>
		
    {END left_block}
</div>				</div>
			<div class="r-content-col" data-resize-left="leftbar">
				<div  class="r-topheader" data-resize-name="topbar">
									{BEGIN supertop_block}
<nav class="navbar navbar-default" 
	data-location="supertop" id="form_supertop_{$pageid}" data-makeup="leftbar" {$form_supertop} data-pageid="{$pageid}" data-page="sales_list" >
			 
							 
				<span class="navbar-form  navbar-header" data-cellId="supertop_c1" data-pageid="{$pageid}" data-itemid="expand_menu_button" {$item_expand_menu_button} data-topcell-item-type="expand_menu_button" >
				<span data-itemtype="expand_menu_button" data-itemid="expand_menu_button" {$item_expand_menu_button}="" data-pageid="{$pageid}" data-small="" data-button-item>
	<a type="button" title="{mlang_message SHOW_MENU}" class="btn-link   
	 glyphicon glyphicon-menu-hamburger" href="#" >		
				
								</a>
</span>
			</span>
		 
				<span class="navbar-form  navbar-collapse" data-cellId="supertop_c1" data-pageid="{$pageid}" data-itemid="collapse_button" {$item_collapse_button} data-topcell-item-type="collapse_button" >
				<span data-itemtype="collapse_button" data-itemid="collapse_button" {$item_collapse_button}="" data-pageid="{$pageid}" data-small="" data-button-item>
	<a type="button" title="{mlang_message COLLAPSE}" class="btn-link   
	 glyphicon glyphicon-triangle-left" href="#" >		
				
								</a>
</span>
			</span>
		 
				<span class="navbar-form  navbar-collapse" data-cellId="supertop_c1" data-pageid="{$pageid}" data-itemid="breadcrumb" {$item_breadcrumb} data-topcell-item-type="breadcrumb" >
				{BEGIN breadcrumb}
<ol class="breadcrumb" data-itemtype="breadcrumb" data-itemid="breadcrumb" {$item_breadcrumb}="" data-pageid="{$pageid}">
<li ><a href="{$crumb_home_link}"><span class="glyphicon glyphicon-home"></span></a>{$crumb_dropdown}</li>
{BEGIN crumb}
  <li class="{$crumb_item_class}">
{BEGIN crumb_title_link}
	<a {$crumb_attrs}>{$crumb_title}</a>
{END crumb_title_link}
{BEGIN crumb_title_span}
	<span {$crumb_attrs}>{$crumb_title}</span>
{END crumb_title_span}	
	{$crumb_dropdown}
  </li>
{END crumb}
</ol>
{END breadcrumb}			</span>
							 
							 
				<span class="navbar-form r-align-right navbar-collapse" data-cellId="supertop_c2" data-pageid="{$pageid}" data-itemid="simple_search" {$item_simple_search} data-topcell-item-type="simple_search" >
				<span data-itemtype="simple_search" data-itemid="simple_search" {$item_simple_search}="" data-pageid="{$pageid}" class="form-group">

<div  class="input-group">
{BEGIN searchform_text}
	<input type="search" class="form-control" {$searchfor_attrs} size="25">
{END searchform_text}
	<span class="input-group-btn">
	{BEGIN searchform_showall}
				<button class="btn btn-default" {$showAllCont_attrs} {$showallbutton_attrs} title="{mlang_message SHOW_ALL}">
			<span class="glyphicon glyphicon-remove"></span>
		</button>
	{END searchform_showall}

	{BEGIN searchform_search}
	<button {$searchbutton_attrs} class="btn btn-primary" >
		<span class="glyphicon glyphicon-search"></span>
	</button>
	{END searchform_search}
	</span>
</div>
		
</span>			</span>
		 
				<span class="navbar-form r-align-right navbar-collapse" data-cellId="supertop_c2" data-pageid="{$pageid}" data-itemid="list_options" {$item_list_options} data-topcell-item-type="list_options" >
				<span data-itemtype="list_options" data-itemid="list_options" {$item_list_options}="" data-pageid="{$pageid}" data-small="" data-button-item>
	<span class="dropdown ">
		<button type="button" title="" class="btn btn-default   dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">		
										<span class="glyphicon glyphicon-cog"></span>
												<span class="caret"></span>
		</button>
		<ul class="dropdown-menu">
							{BEGIN editselected_link}
	<li data-itemtype="edit_selected" data-itemid="edit_selected" {$item_edit_selected}="" data-pageid="{$pageid}" data-small="" >
				<a  href="#" {$editselectedlink_attrs} {$editselectedlink_span}  title="" >
				
		{mlang_message EDIT_SELECTED}		
		</a>
	</li>
{END editselected_link}
							{BEGIN exportselected_link}
	<li data-itemtype="export_selected" data-itemid="export_selected" {$item_export_selected}="" data-pageid="{$pageid}" data-small="" >
				<a  href="#" {$exportselectedlink_attrs} {$exportselectedlink_span}  title="" >
				
		{mlang_message EXPORT_SELECTED}		
		</a>
	</li>
{END exportselected_link}
							{BEGIN deleteselected_link}
	<li data-itemtype="delete_selected" data-itemid="delete_selected" {$item_delete_selected}="" data-pageid="{$pageid}" data-small="" >
				<a  href="#" {$deleteselectedlink_attrs} {$deleteselectedlink_span}  title="" >
				
		{mlang_message DELETE_SELECTED}		
		</a>
	</li>
{END deleteselected_link}
							<li role="separator" class="divider"></li>							{BEGIN searchPanelTopButtons}
	<li data-itemtype="show_search_panel" data-itemid="show_search_panel" {$item_show_search_panel}="" data-pageid="{$pageid}" data-small="" >
				<a  id="showOptPanel{$id}"  title="" >
				
		{mlang_message SHOW_SEARCH_PANEL}		
		</a>
	</li>
{END searchPanelTopButtons}
							{BEGIN searchPanelTopButtons}
	<li data-itemtype="hide_search_panel" data-itemid="hide_search_panel" {$item_hide_search_panel}="" data-pageid="{$pageid}" data-small="" >
				<a  id="hideOptPanel{$id}"  title="" >
				
		{mlang_message HIDE_SEARCH_PANEL}		
		</a>
	</li>
{END searchPanelTopButtons}
							<li role="separator" class="divider"></li>							{BEGIN export_link}
	<li data-itemtype="export" data-itemid="export" {$item_export}="" data-pageid="{$pageid}" data-small="" >
				<a  href="#" {$exportlink_attrs}  title="" >
				
		{mlang_message EXPORT_RESULTS}		
		</a>
	</li>
{END export_link}
							<li role="separator" class="divider"></li>							{BEGIN import_link}
	<li data-itemtype="import" data-itemid="import" {$item_import}="" data-pageid="{$pageid}" data-small="" >
				<a  {$importlink_attrs} href="sales_import.php{$stateLink_full}"  title="" >
				
		{mlang_message IMPORT}		
		</a>
	</li>
{END import_link}
					</ul>
	</span>
</span>
			</span>
		 
				<span class="navbar-form r-align-right navbar-collapse" data-cellId="supertop_c2" data-pageid="{$pageid}" data-itemid="loginform_login" {$item_loginform_login} data-topcell-item-type="loginform_login" >
				{BEGIN guestloginbutton}
<span data-itemtype="loginform_login" data-itemid="loginform_login" {$item_loginform_login}="" data-pageid="{$pageid}" data-small="" data-button-item>
	<a type="button" title="" class="btn btn-primary   
	" href="#" {$guestloginlink_attrs} >
							{mlang_message LOGIN}			</a>
</span>
{END guestloginbutton}
			</span>
		 
				<span class="navbar-form r-align-right navbar-collapse" data-cellId="supertop_c2" data-pageid="{$pageid}" data-itemid="username_button" {$item_username_button} data-topcell-item-type="username_button" >
				{BEGIN loggedas_message}
<span data-itemtype="username_button" data-itemid="username_button" {$item_username_button}="" data-pageid="{$pageid}" data-small="" data-button-item>
	<span class="dropdown ">
		<button type="button" title="" class="btn btn-default   dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">		
			{BEGIN userbutton_icon}							<span class="glyphicon glyphicon-user"></span>
						{END userbutton_icon}{$userbutton_image}			{$mlp_push}{$mlparam username var username}{$mltext %username%}{$mlp_pop}			<span class="caret"></span>
		</button>
		<ul class="dropdown-menu">
							{BEGIN logoutbutton}
	<li data-itemtype="logout_link" data-itemid="logout_link" {$item_logout_link}="" data-pageid="{$pageid}" data-small="" >
				<a  href="#" {$logoutlink_attrs}  title="" >
				
		{mlang_message LOG_OUT}		
		</a>
	</li>
{END logoutbutton}
					</ul>
	</span>
</span>
{END loggedas_message}
			</span>
								</nav>
{END supertop_block}
						{$locking}
				</div>
				<div class="r-body" data-resize-top="topbar" data-body-width="standard">
					{$header}
					<div class="r-top">
									{BEGIN top_block}
<div class="r-form" data-location="top" id="form_top_{$pageid}" data-makeup="leftbar" {$form_top} data-pageid="{$pageid}" data-page="sales_list" >		
	</div>		
{END top_block}
						</div>
											<div class="r-above">
					{BEGIN above-grid_block}
<div class="r-form" data-location="above-grid" id="form_above-grid_{$pageid}" data-makeup="leftbar" {$form_above-grid} data-pageid="{$pageid}" data-page="sales_list" >		
	 
				<div class="row">
			 
				<div 
	data-cellId="above-grid_c1" data-pageid="{$pageid}"	{$cell_above-grid_c1}
	class="			col-md-6
	
">
		{BEGIN firstAboveGridCell}
		 
		{BEGIN add_link}
<span data-itemtype="add" data-itemid="add" {$item_add}="" data-pageid="{$pageid}" data-small="" data-button-item>
	<a type="button" title="" class="btn btn-primary   
	" {$addlink_attrs} href="sales_add.php{$stateLink_full}" >
							{mlang_message ADD_NEW}			</a>
</span>
{END add_link}
	 
		{BEGIN inlineadd_link}
<span data-itemtype="inline_add" data-itemid="inline_add" {$item_inline_add}="" data-pageid="{$pageid}" data-small="" data-button-item>
	<a type="button" title="" class="btn btn-primary   
	" {$inlineaddlink_attrs} >
							{mlang_message INLINE_ADD}			</a>
</span>
{END inlineadd_link}
	 
		{BEGIN saveall_link}
<span data-itemtype="inline_save_all" data-itemid="inline_save_all" {$item_inline_save_all}="" data-pageid="{$pageid}" data-small="" data-button-item>
	<a type="button" title="" class="btn btn-primary   
	" {$savealllink_attrs} {$savealllink_span} >
							{mlang_message SAVE_ALL}			</a>
</span>
{END saveall_link}
	 
		{BEGIN cancelall_link}
<span data-itemtype="inline_cancel_all" data-itemid="inline_cancel_all" {$item_inline_cancel_all}="" data-pageid="{$pageid}" data-small="" data-button-item>
	<a type="button" title="" class="btn btn-default   
	" {$cancelalllink_attrs} {$cancelalllink_span} >
							{mlang_message CANCEL_ALL}			</a>
</span>
{END cancelall_link}
	 
		{BEGIN deleteselected_link}
<span data-itemtype="delete" data-itemid="delete" {$item_delete}="" data-pageid="{$pageid}" data-small="" data-button-item>
	<a type="button" title="" class="btn btn-default   
	" {$deleteselectedlink_attrs} {$deleteselectedlink_span} disabled >
							{mlang_message DELETE}			</a>
</span>
{END deleteselected_link}
			{END firstAboveGridCell}	
	</div>			 
				<div 
	data-cellId="above-grid_c2" data-pageid="{$pageid}"	{$cell_above-grid_c2}
	class="r-align-right			col-md-6
	
">
		 
		<span data-itemtype="details_found" data-itemid="details_found" {$item_details_found}="" data-pageid="{$pageid}" >
{$mlp_push}{$mlparam first var first_shown}{$mlparam last var last_shown}{$mlparam total var records_found}{mlang_message DISPLAYING}{$mlp_pop}</span>	 
		<span data-itemtype="page_size" data-itemid="page_size" {$item_page_size}="" data-pageid="{$pageid}" >
		{$recsPerPage}
</span>	 
		{BEGIN print_friendly}
<span id="printpanelblock{$id}"  data-pageid="{$pageid}" {$printpanel_hiddenattr} data-itemtype="print_panel" data-itemid="print_panel" {$item_print_panel}="" data-pageid="{$pageid}">
	<button title="{mlang_message WR_PRINT_FRIENDLY}" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
					<span class="glyphicon glyphicon-print"></span>
				<span class="caret"></span>
	</button>
	<ul class="dropdown-menu pull-right">
										 
				 
					<li class="container-fluid 
										">
									<div id="print_friendly_scope{$id}">
	<div class="row">
		<div class="col-md-4">
			{mlang_message PPANEL_SCOPE}		</div>

			 
		{BEGIN print_friendly_all}
		<div class="col-md-8">
			<label for="printAll{$id}">
				<input type="radio" id="printAll{$id}" data-href="_print.php?all=1&amp;{$crosstable_attrs}" name="printScope" >
									{mlang_message PPANEL_ALL_PAGES}							</label>
		</div>
		{END print_friendly_all}
		</div>
		<div class="row">
		<div class="col-md-4">&nbsp;</div>
		<div class="col-md-8">
			<label for="printPage{$id}">
				<input name="printScope" id="printPage{$id}" type="radio" checked data-href="sales_print.php?{$crosstable_attrs}">
				{mlang_message PPANEL_THIS_PAGE}			</label>
		</div>
	</div>
		
		 
	<div class="row">
		<div class="col-md-4">
			&nbsp;
		</div>
		<div class="col-md-8">
			<label style="color: gray;" for="printSelection{$id}">
			<input name="printScope" disabled="disabled" id="printSelection{$id}" type="radio" >
			{mlang_message PPANEL_SELECTED}			</label>
		</div>
	</div>
	</div>
				 
					</li>
											<li class="divider" role="separator"></li>
																				 
				 
					<li class="container-fluid 
										">
									{BEGIN print_details}
<div>
	<label for="printDetailsToggler{$id}">
		<input type="checkbox" id="printDetailsToggler{$id}">
		{mlang_message PPANEL_DETAILS}	</label>
	<div  id="printdetailstables{$id}" style="display:none;">
											{BEGIN print_details_sales_detail}
			<div>
				<label for="printDetailssales_detail{$id}">
					<input type="checkbox" value="sales_detail" id="printDetailssales_detail{$id}" checked>
					{$caption sales_detail }				</label>
			</div>
			{END print_details_sales_detail}
						</div>
</div>
{END print_details}
				 
					</li>
											<li class="divider" role="separator"></li>
																				 
				 
					<li class="container-fluid 
										">
									<div>
	<label for="printPerPage{$id}">
					{mlang_message RECORDS_PP}							
	</label>
	<input type="number" id="printPerPage{$id}" value="{$print_recspp}" class="form-control input-sm rnr-printrecspp">		
</div>
				 
					</li>
											<li class="divider" role="separator"></li>
																				 
				 
					<li class="container-fluid 
					 text-center 					">
									<span data-itemtype="print_button" data-itemid="print_button" {$item_print_button}="" data-pageid="{$pageid}" data-small="" data-button-item>
	<a type="button" title="" class="btn btn-primary   
	" id="print_friendly_button{$id}" >
							{mlang_message PPANEL_PRINT}			</a>
</span>
				 
					</li>
															</ul>
</span>
{END print_friendly}
		</div>					</div>
			</div>		
{END above-grid_block}
	</div>
<div class="r-grid">
	{BEGIN grid_tabs}
  <ul class="nav nav-tabs bsgrid_tabs">
	{$grid_tabs_content}
  </ul>
{END grid_tabs}
					{BEGIN grid_block}
{BEGIN message_block}
<div data-grid-message data-pageid="{$pageid}" class="alert {$message_class}" role="alert" {$grid_message_attrs}>{$message}</div>
{END message_block}	<style>
@media screen and (max-width: 767px) {
								[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="transaction_type"]:before {
		content: "{$label sales transaction_type}";
	}
				[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="document_no"]:before {
		content: "{$label sales document_no}";
	}
				[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="draft_reference"]:before {
		content: "{$label sales draft_reference}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="transaction_date"]:before {
		content: "{$label sales transaction_date}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="due_date"]:before {
		content: "{$label sales due_date}";
	}
				[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="customer_name_snapshot"]:before {
		content: "{$label sales customer_name_snapshot}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="customer_tin_snapshot"]:before {
		content: "{$label sales customer_tin_snapshot}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="customer_branch_code_snapshot"]:before {
		content: "{$label sales customer_branch_code_snapshot}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="payment_terms_days"]:before {
		content: "{$label sales payment_terms_days}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="billing_address"]:before {
		content: "{$label sales billing_address}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="shipping_address"]:before {
		content: "{$label sales shipping_address}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="currency_code"]:before {
		content: "{$label sales currency_code}";
	}
				[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="exchange_rate"]:before {
		content: "{$label sales exchange_rate}";
	}
									[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="subtotal_amount"]:before {
		content: "{$label sales subtotal_amount}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="commercial_discount_amount"]:before {
		content: "{$label sales commercial_discount_amount}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="statutory_discount_amount"]:before {
		content: "{$label sales statutory_discount_amount}";
	}
						[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="vat_amount"]:before {
		content: "{$label sales vat_amount}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="withholding_amount"]:before {
		content: "{$label sales withholding_amount}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="grand_total_amount"]:before {
		content: "{$label sales grand_total_amount}";
	}
								[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="approval_status"]:before {
		content: "{$label sales approval_status}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="document_status"]:before {
		content: "{$label sales document_status}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="posting_status"]:before {
		content: "{$label sales posting_status}";
	}
												}
</style>
<table data-location="grid" id="form_grid_{$pageid}" data-makeup="leftbar" {$form_grid} data-pageid="{$pageid}" data-page="sales_list" class=" table table-striped table-bordered r-horizontal-grid  r-flexgrid rnr-b-grid rnr-gridtable"
	cellpadding="0"
	data-body-height="2"
>
						<thead>
			{BEGIN grid_header}
			
																														<tr {$rowattrs} {$row_grid_0} class="{$rowclass}
									{$gridHeader_class}
					
								r-gridrow
							">
									{BEGIN cellblock_grid_headcell_icons}
	<th
	
	{$cell_grid_headcell_icons}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_headcell_icons" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="sales_list"		data-control-cell
	
	>

	
	</th>
	{END cellblock_grid_headcell_icons}
									{BEGIN cellblock_grid_headcell_checkbox}
	<th
	
	{$cell_grid_headcell_checkbox}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_headcell_checkbox" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="sales_list"	
		data-checkbox-cell
	>

	 
		{BEGIN checkbox_column}
<span data-itemtype="grid_checkbox_head" data-itemid="grid_checkbox_head" {$item_grid_checkbox_head}="" data-pageid="{$pageid}" data-record-id="{$recId}" >
	<input type="checkbox" {$checkboxheader_attrs}>
</span>
{END checkbox_column}
	
	</th>
	{END cellblock_grid_headcell_checkbox}
									{BEGIN cellblock_grid_headcell_details}
	<th
	
	{$cell_grid_headcell_details}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_headcell_details" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	
	</th>
	{END cellblock_grid_headcell_details}
									{BEGIN cellblock_grid_headcell_field}
	<th
	
	{$cell_grid_headcell_field}
	{$recordattrs}
	class="
		 r-ori-vert		 {$document_no_class}	"

			data-field="document_no"
	
	data-cellId="grid_headcell_field" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN document_no_fieldheadercolumn}
	{BEGIN document_no_fieldheader}
<span 
	data-itemtype="grid_field_label" data-itemid="simple_grid_field9" {$item_simple_grid_field9}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="document_no" data-fieldname="document_no" 

			{$document_no_orderlinkattrs}
	
	
	>
	<span class="text-label">
		<span>{$label sales document_no }</span>
					{$arrow_icon_document_no}
			</span>
	</span>
	{END document_no_fieldheader}
{END document_no_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field}
									{BEGIN cellblock_grid_headcell_field1}
	<th
	
	{$cell_grid_headcell_field1}
	{$recordattrs}
	class="
		 r-ori-vert		 {$transaction_type_class}	"

			data-field="transaction_type"
	
	data-cellId="grid_headcell_field1" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN transaction_type_fieldheadercolumn}
	{BEGIN transaction_type_fieldheader}
<span 
	data-itemtype="grid_field_label" data-itemid="simple_grid_field7" {$item_simple_grid_field7}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="transaction_type" data-fieldname="transaction_type" 

			{$transaction_type_orderlinkattrs}
	
	
	>
	<span class="text-label">
		<span>{$label sales transaction_type }</span>
					{$arrow_icon_transaction_type}
			</span>
	</span>
	{END transaction_type_fieldheader}
{END transaction_type_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field1}
									{BEGIN cellblock_grid_headcell_field2}
	<th
	
	{$cell_grid_headcell_field2}
	{$recordattrs}
	class="
		 r-ori-vert		 {$customer_name_snapshot_class}	"

			data-field="customer_name_snapshot"
	
	data-cellId="grid_headcell_field2" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN customer_name_snapshot_fieldheadercolumn}
	{BEGIN customer_name_snapshot_fieldheader}
<span 
	data-itemtype="grid_field_label" data-itemid="simple_grid_field21" {$item_simple_grid_field21}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="customer_name_snapshot" data-fieldname="customer_name_snapshot" 

			{$customer_name_snapshot_orderlinkattrs}
	
	
	>
	<span class="text-label">
		<span>{$label sales customer_name_snapshot }</span>
					{$arrow_icon_customer_name_snapshot}
			</span>
	</span>
	{END customer_name_snapshot_fieldheader}
{END customer_name_snapshot_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field2}
									{BEGIN cellblock_grid_headcell_field3}
	<th
	
	{$cell_grid_headcell_field3}
	{$recordattrs}
	class="
		 r-ori-vert		 {$customer_tin_snapshot_class}	"

			data-field="customer_tin_snapshot"
	
	data-cellId="grid_headcell_field3" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN customer_tin_snapshot_fieldheadercolumn}
	{BEGIN customer_tin_snapshot_fieldheader}
<span 
	data-itemtype="grid_field_label" data-itemid="simple_grid_field23" {$item_simple_grid_field23}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="customer_tin_snapshot" data-fieldname="customer_tin_snapshot" 

			{$customer_tin_snapshot_orderlinkattrs}
	
	
	>
	<span class="text-label">
		<span>{$label sales customer_tin_snapshot }</span>
					{$arrow_icon_customer_tin_snapshot}
			</span>
	</span>
	{END customer_tin_snapshot_fieldheader}
{END customer_tin_snapshot_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field3}
									{BEGIN cellblock_grid_headcell_field4}
	<th
	
	{$cell_grid_headcell_field4}
	{$recordattrs}
	class="
		 r-ori-vert		 {$currency_code_class}	"

			data-field="currency_code"
	
	data-cellId="grid_headcell_field4" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN currency_code_fieldheadercolumn}
	{BEGIN currency_code_fieldheader}
<span 
	data-itemtype="grid_field_label" data-itemid="simple_grid_field24" {$item_simple_grid_field24}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="currency_code" data-fieldname="currency_code" 

			{$currency_code_orderlinkattrs}
	
	
	>
	<span class="text-label">
		<span>{$label sales currency_code }</span>
					{$arrow_icon_currency_code}
			</span>
	</span>
	{END currency_code_fieldheader}
{END currency_code_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field4}
									{BEGIN cellblock_grid_headcell_field5}
	<th
	
	{$cell_grid_headcell_field5}
	{$recordattrs}
	class="
		 r-ori-vert		 {$subtotal_amount_class}	"

			data-field="subtotal_amount"
	
	data-cellId="grid_headcell_field5" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN subtotal_amount_fieldheadercolumn}
	{BEGIN subtotal_amount_fieldheader}
<span 
	data-itemtype="grid_field_label" data-itemid="simple_grid_field30" {$item_simple_grid_field30}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="subtotal_amount" data-fieldname="subtotal_amount" 

			{$subtotal_amount_orderlinkattrs}
	
	
	>
	<span class="text-label">
		<span>{$label sales subtotal_amount }</span>
					{$arrow_icon_subtotal_amount}
			</span>
	</span>
	{END subtotal_amount_fieldheader}
{END subtotal_amount_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field5}
									{BEGIN cellblock_grid_headcell_field6}
	<th
	
	{$cell_grid_headcell_field6}
	{$recordattrs}
	class="
		 r-ori-vert		 {$vat_amount_class}	"

			data-field="vat_amount"
	
	data-cellId="grid_headcell_field6" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN vat_amount_fieldheadercolumn}
	{BEGIN vat_amount_fieldheader}
<span 
	data-itemtype="grid_field_label" data-itemid="simple_grid_field38" {$item_simple_grid_field38}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="vat_amount" data-fieldname="vat_amount" 

			{$vat_amount_orderlinkattrs}
	
	
	>
	<span class="text-label">
		<span>{$label sales vat_amount }</span>
					{$arrow_icon_vat_amount}
			</span>
	</span>
	{END vat_amount_fieldheader}
{END vat_amount_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field6}
									{BEGIN cellblock_grid_headcell_field7}
	<th
	
	{$cell_grid_headcell_field7}
	{$recordattrs}
	class="
		 r-ori-vert		 {$withholding_amount_class}	"

			data-field="withholding_amount"
	
	data-cellId="grid_headcell_field7" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN withholding_amount_fieldheadercolumn}
	{BEGIN withholding_amount_fieldheader}
<span 
	data-itemtype="grid_field_label" data-itemid="simple_grid_field39" {$item_simple_grid_field39}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="withholding_amount" data-fieldname="withholding_amount" 

			{$withholding_amount_orderlinkattrs}
	
	
	>
	<span class="text-label">
		<span>{$label sales withholding_amount }</span>
					{$arrow_icon_withholding_amount}
			</span>
	</span>
	{END withholding_amount_fieldheader}
{END withholding_amount_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field7}
									{BEGIN cellblock_grid_headcell_field8}
	<th
	
	{$cell_grid_headcell_field8}
	{$recordattrs}
	class="
		 r-ori-vert		 {$grand_total_amount_class}	"

			data-field="grand_total_amount"
	
	data-cellId="grid_headcell_field8" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN grand_total_amount_fieldheadercolumn}
	{BEGIN grand_total_amount_fieldheader}
<span 
	data-itemtype="grid_field_label" data-itemid="simple_grid_field40" {$item_simple_grid_field40}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="grand_total_amount" data-fieldname="grand_total_amount" 

			{$grand_total_amount_orderlinkattrs}
	
	
	>
	<span class="text-label">
		<span>{$label sales grand_total_amount }</span>
					{$arrow_icon_grand_total_amount}
			</span>
	</span>
	{END grand_total_amount_fieldheader}
{END grand_total_amount_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field8}
									{BEGIN cellblock_grid_headcell_field9}
	<th
	
	{$cell_grid_headcell_field9}
	{$recordattrs}
	class="
		 r-ori-vert		 {$approval_status_class}	"

			data-field="approval_status"
	
	data-cellId="grid_headcell_field9" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN approval_status_fieldheadercolumn}
	{BEGIN approval_status_fieldheader}
<span 
	data-itemtype="grid_field_label" data-itemid="simple_grid_field46" {$item_simple_grid_field46}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="approval_status" data-fieldname="approval_status" 

			{$approval_status_orderlinkattrs}
	
	
	>
	<span class="text-label">
		<span>{$label sales approval_status }</span>
					{$arrow_icon_approval_status}
			</span>
	</span>
	{END approval_status_fieldheader}
{END approval_status_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field9}
									{BEGIN cellblock_grid_headcell_field10}
	<th
	
	{$cell_grid_headcell_field10}
	{$recordattrs}
	class="
		 r-ori-vert		 {$document_status_class}	"

			data-field="document_status"
	
	data-cellId="grid_headcell_field10" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN document_status_fieldheadercolumn}
	{BEGIN document_status_fieldheader}
<span 
	data-itemtype="grid_field_label" data-itemid="simple_grid_field47" {$item_simple_grid_field47}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="document_status" data-fieldname="document_status" 

			{$document_status_orderlinkattrs}
	
	
	>
	<span class="text-label">
		<span>{$label sales document_status }</span>
					{$arrow_icon_document_status}
			</span>
	</span>
	{END document_status_fieldheader}
{END document_status_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field10}
									{BEGIN cellblock_grid_headcell_field11}
	<th
	
	{$cell_grid_headcell_field11}
	{$recordattrs}
	class="
		 r-ori-vert		 {$posting_status_class}	"

			data-field="posting_status"
	
	data-cellId="grid_headcell_field11" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN posting_status_fieldheadercolumn}
	{BEGIN posting_status_fieldheader}
<span 
	data-itemtype="grid_field_label" data-itemid="simple_grid_field48" {$item_simple_grid_field48}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="posting_status" data-fieldname="posting_status" 

			{$posting_status_orderlinkattrs}
	
	
	>
	<span class="text-label">
		<span>{$label sales posting_status }</span>
					{$arrow_icon_posting_status}
			</span>
	</span>
	{END posting_status_fieldheader}
{END posting_status_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field11}
									{BEGIN cellblock_grid_headcell_field12}
	<th
	
	{$cell_grid_headcell_field12}
	{$recordattrs}
	class="
		 r-ori-vert		 {$draft_reference_class}	"

			data-field="draft_reference"
	
	data-cellId="grid_headcell_field12" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN draft_reference_fieldheadercolumn}
	{BEGIN draft_reference_fieldheader}
<span 
	data-itemtype="grid_field_label" data-itemid="simple_grid_field13" {$item_simple_grid_field13}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="draft_reference" data-fieldname="draft_reference" 

			{$draft_reference_orderlinkattrs}
	
	
	>
	<span class="text-label">
		<span>{$label sales draft_reference }</span>
					{$arrow_icon_draft_reference}
			</span>
	</span>
	{END draft_reference_fieldheader}
{END draft_reference_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field12}
									{BEGIN cellblock_grid_headcell_field13}
	<th
	
	{$cell_grid_headcell_field13}
	{$recordattrs}
	class="
		 r-ori-vert		 {$transaction_date_class}	"

			data-field="transaction_date"
	
	data-cellId="grid_headcell_field13" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN transaction_date_fieldheadercolumn}
	{BEGIN transaction_date_fieldheader}
<span 
	data-itemtype="grid_field_label" data-itemid="simple_grid_field25" {$item_simple_grid_field25}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="transaction_date" data-fieldname="transaction_date" 

			{$transaction_date_orderlinkattrs}
	
	
	>
	<span class="text-label">
		<span>{$label sales transaction_date }</span>
					{$arrow_icon_transaction_date}
			</span>
	</span>
	{END transaction_date_fieldheader}
{END transaction_date_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field13}
									{BEGIN cellblock_grid_headcell_field14}
	<th
	
	{$cell_grid_headcell_field14}
	{$recordattrs}
	class="
		 r-ori-vert		 {$due_date_class}	"

			data-field="due_date"
	
	data-cellId="grid_headcell_field14" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN due_date_fieldheadercolumn}
	{BEGIN due_date_fieldheader}
<span 
	data-itemtype="grid_field_label" data-itemid="simple_grid_field26" {$item_simple_grid_field26}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="due_date" data-fieldname="due_date" 

			{$due_date_orderlinkattrs}
	
	
	>
	<span class="text-label">
		<span>{$label sales due_date }</span>
					{$arrow_icon_due_date}
			</span>
	</span>
	{END due_date_fieldheader}
{END due_date_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field14}
									{BEGIN cellblock_grid_headcell_field15}
	<th
	
	{$cell_grid_headcell_field15}
	{$recordattrs}
	class="
		 r-ori-vert		 {$customer_branch_code_snapshot_class}	"

			data-field="customer_branch_code_snapshot"
	
	data-cellId="grid_headcell_field15" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN customer_branch_code_snapshot_fieldheadercolumn}
	{BEGIN customer_branch_code_snapshot_fieldheader}
<span 
	data-itemtype="grid_field_label" data-itemid="simple_grid_field27" {$item_simple_grid_field27}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="customer_branch_code_snapshot" data-fieldname="customer_branch_code_snapshot" 

			{$customer_branch_code_snapshot_orderlinkattrs}
	
	
	>
	<span class="text-label">
		<span>{$label sales customer_branch_code_snapshot }</span>
					{$arrow_icon_customer_branch_code_snapshot}
			</span>
	</span>
	{END customer_branch_code_snapshot_fieldheader}
{END customer_branch_code_snapshot_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field15}
									{BEGIN cellblock_grid_headcell_field16}
	<th
	
	{$cell_grid_headcell_field16}
	{$recordattrs}
	class="
		 r-ori-vert		 {$payment_terms_days_class}	"

			data-field="payment_terms_days"
	
	data-cellId="grid_headcell_field16" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN payment_terms_days_fieldheadercolumn}
	{BEGIN payment_terms_days_fieldheader}
<span 
	data-itemtype="grid_field_label" data-itemid="simple_grid_field28" {$item_simple_grid_field28}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="payment_terms_days" data-fieldname="payment_terms_days" 

			{$payment_terms_days_orderlinkattrs}
	
	
	>
	<span class="text-label">
		<span>{$label sales payment_terms_days }</span>
					{$arrow_icon_payment_terms_days}
			</span>
	</span>
	{END payment_terms_days_fieldheader}
{END payment_terms_days_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field16}
									{BEGIN cellblock_grid_headcell_field17}
	<th
	
	{$cell_grid_headcell_field17}
	{$recordattrs}
	class="
		 r-ori-vert		 {$billing_address_class}	"

			data-field="billing_address"
	
	data-cellId="grid_headcell_field17" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN billing_address_fieldheadercolumn}
	{BEGIN billing_address_fieldheader}
<span 
	data-itemtype="grid_field_label" data-itemid="simple_grid_field31" {$item_simple_grid_field31}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="billing_address" data-fieldname="billing_address" 

			{$billing_address_orderlinkattrs}
	
	
	>
	<span class="text-label">
		<span>{$label sales billing_address }</span>
					{$arrow_icon_billing_address}
			</span>
	</span>
	{END billing_address_fieldheader}
{END billing_address_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field17}
									{BEGIN cellblock_grid_headcell_field18}
	<th
	
	{$cell_grid_headcell_field18}
	{$recordattrs}
	class="
		 r-ori-vert		 {$shipping_address_class}	"

			data-field="shipping_address"
	
	data-cellId="grid_headcell_field18" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN shipping_address_fieldheadercolumn}
	{BEGIN shipping_address_fieldheader}
<span 
	data-itemtype="grid_field_label" data-itemid="simple_grid_field32" {$item_simple_grid_field32}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="shipping_address" data-fieldname="shipping_address" 

			{$shipping_address_orderlinkattrs}
	
	
	>
	<span class="text-label">
		<span>{$label sales shipping_address }</span>
					{$arrow_icon_shipping_address}
			</span>
	</span>
	{END shipping_address_fieldheader}
{END shipping_address_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field18}
									{BEGIN cellblock_grid_headcell_field19}
	<th
	
	{$cell_grid_headcell_field19}
	{$recordattrs}
	class="
		 r-ori-vert		 {$exchange_rate_class}	"

			data-field="exchange_rate"
	
	data-cellId="grid_headcell_field19" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN exchange_rate_fieldheadercolumn}
	{BEGIN exchange_rate_fieldheader}
<span 
	data-itemtype="grid_field_label" data-itemid="simple_grid_field33" {$item_simple_grid_field33}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="exchange_rate" data-fieldname="exchange_rate" 

			{$exchange_rate_orderlinkattrs}
	
	
	>
	<span class="text-label">
		<span>{$label sales exchange_rate }</span>
					{$arrow_icon_exchange_rate}
			</span>
	</span>
	{END exchange_rate_fieldheader}
{END exchange_rate_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field19}
									{BEGIN cellblock_grid_headcell_field20}
	<th
	
	{$cell_grid_headcell_field20}
	{$recordattrs}
	class="
		 r-ori-vert		 {$commercial_discount_amount_class}	"

			data-field="commercial_discount_amount"
	
	data-cellId="grid_headcell_field20" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN commercial_discount_amount_fieldheadercolumn}
	{BEGIN commercial_discount_amount_fieldheader}
<span 
	data-itemtype="grid_field_label" data-itemid="simple_grid_field2" {$item_simple_grid_field2}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="commercial_discount_amount" data-fieldname="commercial_discount_amount" 

			{$commercial_discount_amount_orderlinkattrs}
	
	
	>
	<span class="text-label">
		<span>{$label sales commercial_discount_amount }</span>
					{$arrow_icon_commercial_discount_amount}
			</span>
	</span>
	{END commercial_discount_amount_fieldheader}
{END commercial_discount_amount_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field20}
									{BEGIN cellblock_grid_headcell_field21}
	<th
	
	{$cell_grid_headcell_field21}
	{$recordattrs}
	class="
		 r-ori-vert		 {$statutory_discount_amount_class}	"

			data-field="statutory_discount_amount"
	
	data-cellId="grid_headcell_field21" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN statutory_discount_amount_fieldheadercolumn}
	{BEGIN statutory_discount_amount_fieldheader}
<span 
	data-itemtype="grid_field_label" data-itemid="simple_grid_field3" {$item_simple_grid_field3}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="statutory_discount_amount" data-fieldname="statutory_discount_amount" 

			{$statutory_discount_amount_orderlinkattrs}
	
	
	>
	<span class="text-label">
		<span>{$label sales statutory_discount_amount }</span>
					{$arrow_icon_statutory_discount_amount}
			</span>
	</span>
	{END statutory_discount_amount_fieldheader}
{END statutory_discount_amount_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field21}
							</tr>
																				
					{END grid_header}
			</thead>
															<tbody>
					{BEGIN grid_row}
							
																																			<tr {$rowattrs} {$row_grid_1} class="{$rowclass}
				
								r-gridrow
							">
									{BEGIN cellblock_grid_cell_icons}
	<td
	
	{$cell_grid_cell_icons}
	{$recordattrs}
	class="
					"

	
	data-cellId="grid_cell_icons" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="sales_list"		data-control-cell
	
	>

	 
		{BEGIN edit_column}
{BEGIN edit_link}
<span data-itemtype="grid_edit" data-itemid="grid_edit" {$item_grid_edit}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-small="" data-button-item>
	<a type="button" title="{mlang_message EDIT}" class="btn-link   
	 glyphicon glyphicon-pencil" href="sales_edit.php?{$editlink}" {$editlink_attrs} title="{mlang_message EDIT}" >		
				
								</a>
</span>
{END edit_link}
{END edit_column}
	 
		{BEGIN inlineedit_column}
{BEGIN inlineedit_link}
<span data-itemtype="grid_inline_edit" data-itemid="grid_inline_edit" {$item_grid_inline_edit}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-small="" data-button-item>
	<a type="button" title="{mlang_message INLINE_EDIT}" class="btn-link   
	 glyphicon glyphicon-edit" {$inlineeditlink_attrs} title="{mlang_message INLINE_EDIT}" >		
				
								</a>
</span>
{END inlineedit_link}
{END inlineedit_column}
	 
		{BEGIN inline_save}
<span data-itemtype="grid_inline_save" data-itemid="grid_inline_save" {$item_grid_inline_save}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-small="" data-button-item>
	<a type="button" title="{mlang_message SAVE}" class="btn-link   
	 glyphicon glyphicon-ok" {$inlinesavelink_attrs} title="{mlang_message SAVE}" >		
				
								</a>
</span>
{END inline_save}
	 
		{BEGIN inline_cancel}
<span data-itemtype="grid_inline_cancel" data-itemid="grid_inline_cancel" {$item_grid_inline_cancel}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-small="" data-button-item>
	<a type="button" title="{mlang_message CANCEL}" class="btn-link   
	 glyphicon glyphicon-remove" {$inlinerevertlink_attrs} title="{mlang_message CANCEL}" >		
				
								</a>
</span>
{END inline_cancel}
	 
		{BEGIN view_column}
{BEGIN view_link}
<span data-itemtype="grid_view" data-itemid="grid_view" {$item_grid_view}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-small="" data-button-item>
	<a type="button" title="{mlang_message VIEW_RECORD}" class="btn-link   
	 glyphicon glyphicon-search" href="sales_view.php?{$editlink}" {$viewlink_attrs} title="{mlang_message VIEW}" >		
				
								</a>
</span>
{END view_link}
{END view_column}
	
	</td>
	{END cellblock_grid_cell_icons}
									{BEGIN cellblock_grid_cell_checkbox}
	<td
	
	{$cell_grid_cell_checkbox}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_cell_checkbox" data-pageid="{$pageid}" data-record-id="{$recId}"		data-control-cell
	
		data-checkbox-cell
	>

	 
		{BEGIN checkbox_column}
<span data-itemtype="grid_checkbox" data-itemid="grid_checkbox" {$item_grid_checkbox}="" data-pageid="{$pageid}" data-record-id="{$recId}" >
	<input type="checkbox" {$checkbox_attrs}
		>
</span>	
{END checkbox_column}
	
	</td>
	{END cellblock_grid_cell_checkbox}
									{BEGIN cellblock_grid_cell_details}
	<td
	
	{$cell_grid_cell_details}
	{$recordattrs}
	class="
					"

	
	data-cellId="grid_cell_details" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="sales_list"		data-control-cell
	
	>

	 
			 
		
	{BEGIN dtables_link}
				<span data-itemtype="grid_details_link" data-itemid="grid_details_link" {$item_grid_details_link}="" data-pageid="{$pageid}" data-record-id="{$recId}">
		<a 
			{$sales_detail_link_attrs} 
			class="{$dtables_link_class} details-badge badge sales_detail_badge" 
			title="{mlang_message SHOW_DETAILS}"
						
		>
							<span class="glyphicon glyphicon-th-list"></span>
									<span class="{$sales_detail_cntspan_class}" {$sales_detail_childnumber_attr}>
				{$sales_detail_childnumber}				
			</span>
		</a>
		</span>
	{END dtables_link}

	
	</td>
	{END cellblock_grid_cell_details}
									{BEGIN cellblock_grid_cell_field}
	<td
	
	{$cell_grid_cell_field}
	{$recordattrs}
	class="
		 r-ori-vert		 {$document_no_class}	"

			data-field="document_no"
	
	data-cellId="grid_cell_field" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN document_no_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field8" {$item_simple_grid_field8}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="document_no" data-fieldname="document_no" data-default-width="" >
{$document_no_value}
</span>
{END document_no_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field}
									{BEGIN cellblock_grid_cell_field1}
	<td
	
	{$cell_grid_cell_field1}
	{$recordattrs}
	class="
		 r-ori-vert		 {$transaction_type_class}	"

			data-field="transaction_type"
	
	data-cellId="grid_cell_field1" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN transaction_type_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field6" {$item_simple_grid_field6}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="transaction_type" data-fieldname="transaction_type" data-default-width="" >
{$transaction_type_value}
</span>
{END transaction_type_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field1}
									{BEGIN cellblock_grid_cell_field2}
	<td
	
	{$cell_grid_cell_field2}
	{$recordattrs}
	class="
		 r-ori-vert		 {$customer_name_snapshot_class}	"

			data-field="customer_name_snapshot"
	
	data-cellId="grid_cell_field2" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN customer_name_snapshot_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field14" {$item_simple_grid_field14}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="customer_name_snapshot" data-fieldname="customer_name_snapshot" data-default-width="" >
{$customer_name_snapshot_value}
</span>
{END customer_name_snapshot_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field2}
									{BEGIN cellblock_grid_cell_field3}
	<td
	
	{$cell_grid_cell_field3}
	{$recordattrs}
	class="
		 r-ori-vert		 {$customer_tin_snapshot_class}	"

			data-field="customer_tin_snapshot"
	
	data-cellId="grid_cell_field3" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN customer_tin_snapshot_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field15" {$item_simple_grid_field15}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="customer_tin_snapshot" data-fieldname="customer_tin_snapshot" data-default-width="" >
{$customer_tin_snapshot_value}
</span>
{END customer_tin_snapshot_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field3}
									{BEGIN cellblock_grid_cell_field4}
	<td
	
	{$cell_grid_cell_field4}
	{$recordattrs}
	class="
		 r-ori-vert		 {$currency_code_class}	"

			data-field="currency_code"
	
	data-cellId="grid_cell_field4" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN currency_code_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field20" {$item_simple_grid_field20}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="currency_code" data-fieldname="currency_code" data-default-width="" >
{$currency_code_value}
</span>
{END currency_code_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field4}
									{BEGIN cellblock_grid_cell_field5}
	<td
	
	{$cell_grid_cell_field5}
	{$recordattrs}
	class="
		 r-ori-vert		 {$subtotal_amount_class}	"

			data-field="subtotal_amount"
	
	data-cellId="grid_cell_field5" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN subtotal_amount_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field29" {$item_simple_grid_field29}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="subtotal_amount" data-fieldname="subtotal_amount" data-default-width="" >
{$subtotal_amount_value}
</span>
{END subtotal_amount_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field5}
									{BEGIN cellblock_grid_cell_field6}
	<td
	
	{$cell_grid_cell_field6}
	{$recordattrs}
	class="
		 r-ori-vert		 {$vat_amount_class}	"

			data-field="vat_amount"
	
	data-cellId="grid_cell_field6" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN vat_amount_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field35" {$item_simple_grid_field35}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="vat_amount" data-fieldname="vat_amount" data-default-width="" >
{$vat_amount_value}
</span>
{END vat_amount_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field6}
									{BEGIN cellblock_grid_cell_field7}
	<td
	
	{$cell_grid_cell_field7}
	{$recordattrs}
	class="
		 r-ori-vert		 {$withholding_amount_class}	"

			data-field="withholding_amount"
	
	data-cellId="grid_cell_field7" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN withholding_amount_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field36" {$item_simple_grid_field36}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="withholding_amount" data-fieldname="withholding_amount" data-default-width="" >
{$withholding_amount_value}
</span>
{END withholding_amount_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field7}
									{BEGIN cellblock_grid_cell_field8}
	<td
	
	{$cell_grid_cell_field8}
	{$recordattrs}
	class="
		 r-ori-vert		 {$grand_total_amount_class}	"

			data-field="grand_total_amount"
	
	data-cellId="grid_cell_field8" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN grand_total_amount_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field37" {$item_simple_grid_field37}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="grand_total_amount" data-fieldname="grand_total_amount" data-default-width="" >
{$grand_total_amount_value}
</span>
{END grand_total_amount_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field8}
									{BEGIN cellblock_grid_cell_field9}
	<td
	
	{$cell_grid_cell_field9}
	{$recordattrs}
	class="
		 r-ori-vert		 {$approval_status_class}	"

			data-field="approval_status"
	
	data-cellId="grid_cell_field9" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN approval_status_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field43" {$item_simple_grid_field43}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="approval_status" data-fieldname="approval_status" data-default-width="" >
{$approval_status_value}
</span>
{END approval_status_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field9}
									{BEGIN cellblock_grid_cell_field10}
	<td
	
	{$cell_grid_cell_field10}
	{$recordattrs}
	class="
		 r-ori-vert		 {$document_status_class}	"

			data-field="document_status"
	
	data-cellId="grid_cell_field10" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN document_status_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field44" {$item_simple_grid_field44}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="document_status" data-fieldname="document_status" data-default-width="" >
{$document_status_value}
</span>
{END document_status_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field10}
									{BEGIN cellblock_grid_cell_field11}
	<td
	
	{$cell_grid_cell_field11}
	{$recordattrs}
	class="
		 r-ori-vert		 {$posting_status_class}	"

			data-field="posting_status"
	
	data-cellId="grid_cell_field11" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN posting_status_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field45" {$item_simple_grid_field45}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="posting_status" data-fieldname="posting_status" data-default-width="" >
{$posting_status_value}
</span>
{END posting_status_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field11}
									{BEGIN cellblock_grid_cell_field12}
	<td
	
	{$cell_grid_cell_field12}
	{$recordattrs}
	class="
		 r-ori-vert		 {$draft_reference_class}	"

			data-field="draft_reference"
	
	data-cellId="grid_cell_field12" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN draft_reference_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field10" {$item_simple_grid_field10}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="draft_reference" data-fieldname="draft_reference" data-default-width="" >
{$draft_reference_value}
</span>
{END draft_reference_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field12}
									{BEGIN cellblock_grid_cell_field13}
	<td
	
	{$cell_grid_cell_field13}
	{$recordattrs}
	class="
		 r-ori-vert		 {$transaction_date_class}	"

			data-field="transaction_date"
	
	data-cellId="grid_cell_field13" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN transaction_date_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field11" {$item_simple_grid_field11}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="transaction_date" data-fieldname="transaction_date" data-default-width="" >
{$transaction_date_value}
</span>
{END transaction_date_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field13}
									{BEGIN cellblock_grid_cell_field14}
	<td
	
	{$cell_grid_cell_field14}
	{$recordattrs}
	class="
		 r-ori-vert		 {$due_date_class}	"

			data-field="due_date"
	
	data-cellId="grid_cell_field14" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN due_date_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field12" {$item_simple_grid_field12}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="due_date" data-fieldname="due_date" data-default-width="" >
{$due_date_value}
</span>
{END due_date_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field14}
									{BEGIN cellblock_grid_cell_field15}
	<td
	
	{$cell_grid_cell_field15}
	{$recordattrs}
	class="
		 r-ori-vert		 {$customer_branch_code_snapshot_class}	"

			data-field="customer_branch_code_snapshot"
	
	data-cellId="grid_cell_field15" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN customer_branch_code_snapshot_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field16" {$item_simple_grid_field16}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="customer_branch_code_snapshot" data-fieldname="customer_branch_code_snapshot" data-default-width="" >
{$customer_branch_code_snapshot_value}
</span>
{END customer_branch_code_snapshot_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field15}
									{BEGIN cellblock_grid_cell_field16}
	<td
	
	{$cell_grid_cell_field16}
	{$recordattrs}
	class="
		 r-ori-vert		 {$payment_terms_days_class}	"

			data-field="payment_terms_days"
	
	data-cellId="grid_cell_field16" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN payment_terms_days_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field17" {$item_simple_grid_field17}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="payment_terms_days" data-fieldname="payment_terms_days" data-default-width="" >
{$payment_terms_days_value}
</span>
{END payment_terms_days_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field16}
									{BEGIN cellblock_grid_cell_field17}
	<td
	
	{$cell_grid_cell_field17}
	{$recordattrs}
	class="
		 r-ori-vert		 {$billing_address_class}	"

			data-field="billing_address"
	
	data-cellId="grid_cell_field17" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN billing_address_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field18" {$item_simple_grid_field18}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="billing_address" data-fieldname="billing_address" data-default-width="" >
{$billing_address_value}
</span>
{END billing_address_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field17}
									{BEGIN cellblock_grid_cell_field18}
	<td
	
	{$cell_grid_cell_field18}
	{$recordattrs}
	class="
		 r-ori-vert		 {$shipping_address_class}	"

			data-field="shipping_address"
	
	data-cellId="grid_cell_field18" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN shipping_address_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field19" {$item_simple_grid_field19}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="shipping_address" data-fieldname="shipping_address" data-default-width="" >
{$shipping_address_value}
</span>
{END shipping_address_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field18}
									{BEGIN cellblock_grid_cell_field19}
	<td
	
	{$cell_grid_cell_field19}
	{$recordattrs}
	class="
		 r-ori-vert		 {$exchange_rate_class}	"

			data-field="exchange_rate"
	
	data-cellId="grid_cell_field19" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN exchange_rate_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field22" {$item_simple_grid_field22}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="exchange_rate" data-fieldname="exchange_rate" data-default-width="" >
{$exchange_rate_value}
</span>
{END exchange_rate_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field19}
									{BEGIN cellblock_grid_cell_field20}
	<td
	
	{$cell_grid_cell_field20}
	{$recordattrs}
	class="
		 r-ori-vert		 {$commercial_discount_amount_class}	"

			data-field="commercial_discount_amount"
	
	data-cellId="grid_cell_field20" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN commercial_discount_amount_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field" {$item_simple_grid_field}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="commercial_discount_amount" data-fieldname="commercial_discount_amount" data-default-width="" >
{$commercial_discount_amount_value}
</span>
{END commercial_discount_amount_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field20}
									{BEGIN cellblock_grid_cell_field21}
	<td
	
	{$cell_grid_cell_field21}
	{$recordattrs}
	class="
		 r-ori-vert		 {$statutory_discount_amount_class}	"

			data-field="statutory_discount_amount"
	
	data-cellId="grid_cell_field21" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN statutory_discount_amount_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field1" {$item_simple_grid_field1}="" data-pageid="{$pageid}" data-record-id="{$recId}" data-field="statutory_discount_amount" data-fieldname="statutory_discount_amount" data-default-width="" >
{$statutory_discount_amount_value}
</span>
{END statutory_discount_amount_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field21}
							</tr>
											<tr {$rowattrs} {$row_grid_2} class="{$rowclass}
				
							">
									{BEGIN cellblock_grid_cell_dpreview}
	<td
	
	{$cell_grid_cell_dpreview}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_cell_dpreview" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
			<div data-itemtype="details_preview" data-itemid="details_preview" {$item_details_preview}="" data-pageid="{$pageid}" data-record-id="{$recId}" 
	data-orders="sales_detail"
			data-details-sales_detail	>
		<span data-details-inside data-short-table="sales_detail">
			</span>
		<div data-details-preview>
	</div>
</div>
	
	</td>
	{END cellblock_grid_cell_dpreview}
							</tr>
										
											{END grid_row}
					</tbody>
													<tfoot>
			
																																													<tr {$rowattrs} {$row_grid_3} class="{$rowclass}
									{$gridFooter_class}
					
								r-gridrow
							">
									{BEGIN cellblock_grid_footcell_icons}
	<td
	
	{$cell_grid_footcell_icons}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_footcell_icons" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	
	</td>
	{END cellblock_grid_footcell_icons}
									{BEGIN cellblock_grid_footcell_checkbox}
	<td
	
	{$cell_grid_footcell_checkbox}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_footcell_checkbox" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	
	</td>
	{END cellblock_grid_footcell_checkbox}
									{BEGIN cellblock_grid_footcell_details}
	<td
	
	{$cell_grid_footcell_details}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_footcell_details" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	
	</td>
	{END cellblock_grid_footcell_details}
									{BEGIN cellblock_grid_footcell_field}
	<td
	
	{$cell_grid_footcell_field}
	{$recordattrs}
	class="
		 r-ori-vert		 {$document_no_class}	"

	
	data-cellId="grid_footcell_field" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="sales_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field}
									{BEGIN cellblock_grid_footcell_field1}
	<td
	
	{$cell_grid_footcell_field1}
	{$recordattrs}
	class="
		 r-ori-vert		 {$transaction_type_class}	"

	
	data-cellId="grid_footcell_field1" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="sales_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field1}
									{BEGIN cellblock_grid_footcell_field2}
	<td
	
	{$cell_grid_footcell_field2}
	{$recordattrs}
	class="
		 r-ori-vert		 {$customer_name_snapshot_class}	"

	
	data-cellId="grid_footcell_field2" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="sales_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field2}
									{BEGIN cellblock_grid_footcell_field3}
	<td
	
	{$cell_grid_footcell_field3}
	{$recordattrs}
	class="
		 r-ori-vert		 {$customer_tin_snapshot_class}	"

	
	data-cellId="grid_footcell_field3" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="sales_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field3}
									{BEGIN cellblock_grid_footcell_field4}
	<td
	
	{$cell_grid_footcell_field4}
	{$recordattrs}
	class="
		 r-ori-vert		 {$currency_code_class}	"

	
	data-cellId="grid_footcell_field4" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="sales_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field4}
									{BEGIN cellblock_grid_footcell_field5}
	<td
	
	{$cell_grid_footcell_field5}
	{$recordattrs}
	class="
		 r-ori-vert		 {$subtotal_amount_class}	"

	
	data-cellId="grid_footcell_field5" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="sales_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field5}
									{BEGIN cellblock_grid_footcell_field6}
	<td
	
	{$cell_grid_footcell_field6}
	{$recordattrs}
	class="
		 r-ori-vert		 {$vat_amount_class}	"

	
	data-cellId="grid_footcell_field6" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="sales_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field6}
									{BEGIN cellblock_grid_footcell_field7}
	<td
	
	{$cell_grid_footcell_field7}
	{$recordattrs}
	class="
		 r-ori-vert		 {$withholding_amount_class}	"

	
	data-cellId="grid_footcell_field7" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="sales_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field7}
									{BEGIN cellblock_grid_footcell_field8}
	<td
	
	{$cell_grid_footcell_field8}
	{$recordattrs}
	class="
		 r-ori-vert		 {$grand_total_amount_class}	"

	
	data-cellId="grid_footcell_field8" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="sales_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field8}
									{BEGIN cellblock_grid_footcell_field9}
	<td
	
	{$cell_grid_footcell_field9}
	{$recordattrs}
	class="
		 r-ori-vert		 {$approval_status_class}	"

	
	data-cellId="grid_footcell_field9" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="sales_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field9}
									{BEGIN cellblock_grid_footcell_field10}
	<td
	
	{$cell_grid_footcell_field10}
	{$recordattrs}
	class="
		 r-ori-vert		 {$document_status_class}	"

	
	data-cellId="grid_footcell_field10" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="sales_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field10}
									{BEGIN cellblock_grid_footcell_field11}
	<td
	
	{$cell_grid_footcell_field11}
	{$recordattrs}
	class="
		 r-ori-vert		 {$posting_status_class}	"

	
	data-cellId="grid_footcell_field11" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="sales_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field11}
									{BEGIN cellblock_grid_footcell_field12}
	<td
	
	{$cell_grid_footcell_field12}
	{$recordattrs}
	class="
		 r-ori-vert		 {$draft_reference_class}	"

	
	data-cellId="grid_footcell_field12" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="sales_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field12}
									{BEGIN cellblock_grid_footcell_field13}
	<td
	
	{$cell_grid_footcell_field13}
	{$recordattrs}
	class="
		 r-ori-vert		 {$transaction_date_class}	"

	
	data-cellId="grid_footcell_field13" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="sales_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field13}
									{BEGIN cellblock_grid_footcell_field14}
	<td
	
	{$cell_grid_footcell_field14}
	{$recordattrs}
	class="
		 r-ori-vert		 {$due_date_class}	"

	
	data-cellId="grid_footcell_field14" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="sales_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field14}
									{BEGIN cellblock_grid_footcell_field15}
	<td
	
	{$cell_grid_footcell_field15}
	{$recordattrs}
	class="
		 r-ori-vert		 {$customer_branch_code_snapshot_class}	"

	
	data-cellId="grid_footcell_field15" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="sales_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field15}
									{BEGIN cellblock_grid_footcell_field16}
	<td
	
	{$cell_grid_footcell_field16}
	{$recordattrs}
	class="
		 r-ori-vert		 {$payment_terms_days_class}	"

	
	data-cellId="grid_footcell_field16" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="sales_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field16}
									{BEGIN cellblock_grid_footcell_field17}
	<td
	
	{$cell_grid_footcell_field17}
	{$recordattrs}
	class="
		 r-ori-vert		 {$billing_address_class}	"

	
	data-cellId="grid_footcell_field17" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="sales_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field17}
									{BEGIN cellblock_grid_footcell_field18}
	<td
	
	{$cell_grid_footcell_field18}
	{$recordattrs}
	class="
		 r-ori-vert		 {$shipping_address_class}	"

	
	data-cellId="grid_footcell_field18" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="sales_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field18}
									{BEGIN cellblock_grid_footcell_field19}
	<td
	
	{$cell_grid_footcell_field19}
	{$recordattrs}
	class="
		 r-ori-vert		 {$exchange_rate_class}	"

	
	data-cellId="grid_footcell_field19" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="sales_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field19}
									{BEGIN cellblock_grid_footcell_field20}
	<td
	
	{$cell_grid_footcell_field20}
	{$recordattrs}
	class="
		 r-ori-vert		 {$commercial_discount_amount_class}	"

	
	data-cellId="grid_footcell_field20" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="sales_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field20}
									{BEGIN cellblock_grid_footcell_field21}
	<td
	
	{$cell_grid_footcell_field21}
	{$recordattrs}
	class="
		 r-ori-vert		 {$statutory_discount_amount_class}	"

	
	data-cellId="grid_footcell_field21" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="sales_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field21}
							</tr>
					
					</tfoot>
				</table>
{END grid_block}
	</div>
<div class="r-below">
					{BEGIN below-grid_block}
<div class="r-form" data-location="below-grid" id="form_below-grid_{$pageid}" data-makeup="leftbar" {$form_below-grid} data-pageid="{$pageid}" data-page="sales_list" >		
	 
				<div class="row">
			 
				<div 
	data-cellId="below-grid_c1" data-pageid="{$pageid}"	{$cell_below-grid_c1}
	class="r-align-center r-ori-vert			col-md-12
	
">
		 
		{BEGIN pagination_block}
<span data-itemtype="pagination" data-itemid="pagination" {$item_pagination}="" data-pageid="{$pageid}" >
{$pagination}
</span>
{END pagination_block}
		</div>					</div>
			</div>		
{END below-grid_block}
	</div>




										{$footer}
				</div>
			</div>
			<div class="r-body-shadow">
			</div>
		</div>
	{END body}
	</body>
</html>
