<!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-view" {$bodyattrs}>
	{BEGIN body}
		{$header}
		<style>
			{$containerCss}
		</style>
		{$locking}
		<div class="r-small-page" 
			data-body-align="center"
			data-body-width="standard"
		>
							{BEGIN top_block}
<div class="r-form" data-location="top" id="form_top_{$pageid}" data-makeup="small" {$form_top} data-pageid="{$pageid}" data-page="sales_detail_view"
		data-v-width="4"
	data-v-margin="0"
	
>		
	 
		<div class="row">
			 
				<div 
	data-cellId="top_c1" data-pageid="{$pageid}"	{$cell_top_c1}
	class=" r-ori-vert			col-md-12
	">
	 
		<h2 data-itemtype="view_header" data-itemid="view_header" {$item_view_header}="" data-pageid="{$pageid}" >{$pagetitlelabel sales_detail view}</h2>
	</div>					</div>
	</div>		
{END top_block}
									{BEGIN above-grid_block}
<div class="r-form" data-location="above-grid" id="form_above-grid_{$pageid}" data-makeup="small" {$form_above-grid} data-pageid="{$pageid}" data-page="sales_detail_view"
		data-v-width="4"
	data-v-margin="0"
	
>		
	 
		<div class="row">
			 
				<div 
	data-cellId="above-grid_c1" data-pageid="{$pageid}"	{$cell_above-grid_c1}
	class=" r-ori-vert			col-md-12
	">
	</div>					</div>
	</div>		
{END above-grid_block}
									{BEGIN grid_block}




 
	 
												<table 
	data-body-align="center"
	data-location="grid" id="form_grid_{$pageid}" data-makeup="small" {$form_grid} data-pageid="{$pageid}" data-page="sales_detail_view" 
	class="r-edit-form" cellpadding="0" cellspacing="0" 
	{$grid_hiddenattr} 
		data-form-width="2"
		
		data-v-width="4"
	>
	<tbody>
										<tr {$row_grid_0} >
										

{BEGIN cellblock_grid_c3}
<td
	{$cell_grid_c3}
	class=" r-ori-vert"
	
			
			data-cellId="grid_c3" data-pageid="{$pageid}"
		data-v-cell="2"
		
>
	<div edit-form-cell class="clearfix">
				
{BEGIN line_no_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_line_no}  r-vertical-field" 
	data-signal-error-for="line_no{$id}" {$required_attr_line_no}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field3" {$item_integrated_edit_field3}="" data-pageid="{$pageid}" data-field="line_no" data-fieldname="line_no" >

	<label class="r-edit-label control-label {$line_no_label_class}" for="{$labelfor_line_no}">
		{BEGIN line_no_label}
			{$line_no_forward_control}
			{$label sales_detail line_no }			{END line_no_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$line_no_value}	</div>
	</div>


{END line_no_fieldblock}
											
{BEGIN item_id_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_item_id}  r-vertical-field" 
	data-signal-error-for="item_id{$id}" {$required_attr_item_id}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field4" {$item_integrated_edit_field4}="" data-pageid="{$pageid}" data-field="item_id" data-fieldname="item_id" >

	<label class="r-edit-label control-label {$item_id_label_class}" for="{$labelfor_item_id}">
		{BEGIN item_id_label}
			{$item_id_forward_control}
			{$label sales_detail item_id }			{END item_id_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$item_id_value}	</div>
	</div>


{END item_id_fieldblock}
											
{BEGIN item_code_snapshot_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_item_code_snapshot}  r-vertical-field" 
	data-signal-error-for="item_code_snapshot{$id}" {$required_attr_item_code_snapshot}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field5" {$item_integrated_edit_field5}="" data-pageid="{$pageid}" data-field="item_code_snapshot" data-fieldname="item_code_snapshot" >

	<label class="r-edit-label control-label {$item_code_snapshot_label_class}" for="{$labelfor_item_code_snapshot}">
		{BEGIN item_code_snapshot_label}
			{$item_code_snapshot_forward_control}
			{$label sales_detail item_code_snapshot }			{END item_code_snapshot_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$item_code_snapshot_value}	</div>
	</div>


{END item_code_snapshot_fieldblock}
											
{BEGIN description_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_description}  r-vertical-field" 
	data-signal-error-for="description{$id}" {$required_attr_description}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field6" {$item_integrated_edit_field6}="" data-pageid="{$pageid}" data-field="description" data-fieldname="description" >

	<label class="r-edit-label control-label {$description_label_class}" for="{$labelfor_description}">
		{BEGIN description_label}
			{$description_forward_control}
			{$label sales_detail description }			{END description_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$description_value}	</div>
	</div>


{END description_fieldblock}
											
{BEGIN uom_code_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_uom_code}  r-vertical-field" 
	data-signal-error-for="uom_code{$id}" {$required_attr_uom_code}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field7" {$item_integrated_edit_field7}="" data-pageid="{$pageid}" data-field="uom_code" data-fieldname="uom_code" >

	<label class="r-edit-label control-label {$uom_code_label_class}" for="{$labelfor_uom_code}">
		{BEGIN uom_code_label}
			{$uom_code_forward_control}
			{$label sales_detail uom_code }			{END uom_code_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$uom_code_value}	</div>
	</div>


{END uom_code_fieldblock}
											
{BEGIN quantity_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_quantity}  r-vertical-field" 
	data-signal-error-for="quantity{$id}" {$required_attr_quantity}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field8" {$item_integrated_edit_field8}="" data-pageid="{$pageid}" data-field="quantity" data-fieldname="quantity" >

	<label class="r-edit-label control-label {$quantity_label_class}" for="{$labelfor_quantity}">
		{BEGIN quantity_label}
			{$quantity_forward_control}
			{$label sales_detail quantity }			{END quantity_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$quantity_value}	</div>
	</div>


{END quantity_fieldblock}
											
{BEGIN unit_price_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_unit_price}  r-vertical-field" 
	data-signal-error-for="unit_price{$id}" {$required_attr_unit_price}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field9" {$item_integrated_edit_field9}="" data-pageid="{$pageid}" data-field="unit_price" data-fieldname="unit_price" >

	<label class="r-edit-label control-label {$unit_price_label_class}" for="{$labelfor_unit_price}">
		{BEGIN unit_price_label}
			{$unit_price_forward_control}
			{$label sales_detail unit_price }			{END unit_price_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$unit_price_value}	</div>
	</div>


{END unit_price_fieldblock}
											
{BEGIN gross_amount_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_gross_amount}  r-vertical-field" 
	data-signal-error-for="gross_amount{$id}" {$required_attr_gross_amount}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field10" {$item_integrated_edit_field10}="" data-pageid="{$pageid}" data-field="gross_amount" data-fieldname="gross_amount" >

	<label class="r-edit-label control-label {$gross_amount_label_class}" for="{$labelfor_gross_amount}">
		{BEGIN gross_amount_label}
			{$gross_amount_forward_control}
			{$label sales_detail gross_amount }			{END gross_amount_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$gross_amount_value}	</div>
	</div>


{END gross_amount_fieldblock}
											
{BEGIN vat_tax_code_id_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_vat_tax_code_id}  r-vertical-field" 
	data-signal-error-for="vat_tax_code_id{$id}" {$required_attr_vat_tax_code_id}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field17" {$item_integrated_edit_field17}="" data-pageid="{$pageid}" data-field="vat_tax_code_id" data-fieldname="vat_tax_code_id" >

	<label class="r-edit-label control-label {$vat_tax_code_id_label_class}" for="{$labelfor_vat_tax_code_id}">
		{BEGIN vat_tax_code_id_label}
			{$vat_tax_code_id_forward_control}
			{$label sales_detail vat_tax_code_id }			{END vat_tax_code_id_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$vat_tax_code_id_value}	</div>
	</div>


{END vat_tax_code_id_fieldblock}
											
{BEGIN vat_rate_snapshot_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_vat_rate_snapshot}  r-vertical-field" 
	data-signal-error-for="vat_rate_snapshot{$id}" {$required_attr_vat_rate_snapshot}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field18" {$item_integrated_edit_field18}="" data-pageid="{$pageid}" data-field="vat_rate_snapshot" data-fieldname="vat_rate_snapshot" >

	<label class="r-edit-label control-label {$vat_rate_snapshot_label_class}" for="{$labelfor_vat_rate_snapshot}">
		{BEGIN vat_rate_snapshot_label}
			{$vat_rate_snapshot_forward_control}
			{$label sales_detail vat_rate_snapshot }			{END vat_rate_snapshot_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$vat_rate_snapshot_value}	</div>
	</div>


{END vat_rate_snapshot_fieldblock}
											
{BEGIN vat_amount_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_vat_amount}  r-vertical-field" 
	data-signal-error-for="vat_amount{$id}" {$required_attr_vat_amount}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field22" {$item_integrated_edit_field22}="" data-pageid="{$pageid}" data-field="vat_amount" data-fieldname="vat_amount" >

	<label class="r-edit-label control-label {$vat_amount_label_class}" for="{$labelfor_vat_amount}">
		{BEGIN vat_amount_label}
			{$vat_amount_forward_control}
			{$label sales_detail vat_amount }			{END vat_amount_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$vat_amount_value}	</div>
	</div>


{END vat_amount_fieldblock}
											
{BEGIN line_total_amount_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_line_total_amount}  r-vertical-field" 
	data-signal-error-for="line_total_amount{$id}" {$required_attr_line_total_amount}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field26" {$item_integrated_edit_field26}="" data-pageid="{$pageid}" data-field="line_total_amount" data-fieldname="line_total_amount" >

	<label class="r-edit-label control-label {$line_total_amount_label_class}" for="{$labelfor_line_total_amount}">
		{BEGIN line_total_amount_label}
			{$line_total_amount_forward_control}
			{$label sales_detail line_total_amount }			{END line_total_amount_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$line_total_amount_value}	</div>
	</div>


{END line_total_amount_fieldblock}
	
								</td>
			{END cellblock_grid_c3}
			 
																

{BEGIN cellblock_grid_c}
<td
	{$cell_grid_c}
	class=" r-ori-vert"
	
			data-single
			
			data-cellId="grid_c" data-pageid="{$pageid}"
		data-v-cell="2"
		
>
	<div edit-form-cell class="clearfix">
				 
	<div class="panel panel-default form-section" data-itemtype="section" data-itemid="section" {$item_section}="" data-pageid="{$pageid}" data-page="sales_detail_view">
		<div class="panel-heading" role="tab" {$section_section1_headattrs} 
			data-toggle="collapse"  

				href="#section1{$pageid}" aria-expanded="false" aria-controls="section1"

		>
		  <h4 class="panel-title">
		  				<a role="button" >
				Advanced Details			</a>
					  </h4>
		</div>
		<div  class="panel-collapse collapse  {$section_section1_xtrclass}" role="tabpanel"  {$section_section1_attrs}

				id="section1{$pageid}" 
		>
		  <div class="panel-body">
			{BEGIN section_block}




 
	 
												<table 
	data-body-align="center"
	data-location="section" id="form_section_{$pageid}" data-makeup="small" {$form_section} data-pageid="{$pageid}" data-page="sales_detail_view" 
	class="r-edit-form" cellpadding="0" cellspacing="0" 
	{$grid_hiddenattr} 
		data-form-width="1"
		
		data-v-width="4"
	>
	<tbody>
										<tr {$row_section_0} >
										

{BEGIN cellblock_section_c1}
<td
	{$cell_section_c1}
	class=" r-ori-vert"
	
			
			data-cellId="section_c1" data-pageid="{$pageid}"
		data-v-cell="4"
		
>
	<div edit-form-cell class="clearfix">
				
{BEGIN id_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_id}  r-vertical-field" 
	data-signal-error-for="id{$id}" {$required_attr_id}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field" {$item_integrated_edit_field}="" data-pageid="{$pageid}" data-field="id" data-fieldname="id" >

	<label class="r-edit-label control-label {$id_label_class}" for="{$labelfor_id}">
		{BEGIN id_label}
			{$id_forward_control}
			{$label sales_detail id }			{END id_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$id_value}	</div>
	</div>


{END id_fieldblock}
											
{BEGIN sales_detail_uuid_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_sales_detail_uuid}  r-vertical-field" 
	data-signal-error-for="sales_detail_uuid{$id}" {$required_attr_sales_detail_uuid}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field1" {$item_integrated_edit_field1}="" data-pageid="{$pageid}" data-field="sales_detail_uuid" data-fieldname="sales_detail_uuid" >

	<label class="r-edit-label control-label {$sales_detail_uuid_label_class}" for="{$labelfor_sales_detail_uuid}">
		{BEGIN sales_detail_uuid_label}
			{$sales_detail_uuid_forward_control}
			{$label sales_detail sales_detail_uuid }			{END sales_detail_uuid_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$sales_detail_uuid_value}	</div>
	</div>


{END sales_detail_uuid_fieldblock}
											
{BEGIN sales_id_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_sales_id}  r-vertical-field" 
	data-signal-error-for="sales_id{$id}" {$required_attr_sales_id}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field2" {$item_integrated_edit_field2}="" data-pageid="{$pageid}" data-field="sales_id" data-fieldname="sales_id" >

	<label class="r-edit-label control-label {$sales_id_label_class}" for="{$labelfor_sales_id}">
		{BEGIN sales_id_label}
			{$sales_id_forward_control}
			{$label sales_detail sales_id }			{END sales_id_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$sales_id_value}	</div>
	</div>


{END sales_id_fieldblock}
											
{BEGIN commercial_discount_rate_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_commercial_discount_rate}  r-vertical-field" 
	data-signal-error-for="commercial_discount_rate{$id}" {$required_attr_commercial_discount_rate}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field11" {$item_integrated_edit_field11}="" data-pageid="{$pageid}" data-field="commercial_discount_rate" data-fieldname="commercial_discount_rate" >

	<label class="r-edit-label control-label {$commercial_discount_rate_label_class}" for="{$labelfor_commercial_discount_rate}">
		{BEGIN commercial_discount_rate_label}
			{$commercial_discount_rate_forward_control}
			{$label sales_detail commercial_discount_rate }			{END commercial_discount_rate_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$commercial_discount_rate_value}	</div>
	</div>


{END commercial_discount_rate_fieldblock}
											
{BEGIN commercial_discount_amount_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_commercial_discount_amount}  r-vertical-field" 
	data-signal-error-for="commercial_discount_amount{$id}" {$required_attr_commercial_discount_amount}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field12" {$item_integrated_edit_field12}="" data-pageid="{$pageid}" data-field="commercial_discount_amount" data-fieldname="commercial_discount_amount" >

	<label class="r-edit-label control-label {$commercial_discount_amount_label_class}" for="{$labelfor_commercial_discount_amount}">
		{BEGIN commercial_discount_amount_label}
			{$commercial_discount_amount_forward_control}
			{$label sales_detail commercial_discount_amount }			{END commercial_discount_amount_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$commercial_discount_amount_value}	</div>
	</div>


{END commercial_discount_amount_fieldblock}
											
{BEGIN discount_type_id_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_discount_type_id}  r-vertical-field" 
	data-signal-error-for="discount_type_id{$id}" {$required_attr_discount_type_id}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field13" {$item_integrated_edit_field13}="" data-pageid="{$pageid}" data-field="discount_type_id" data-fieldname="discount_type_id" >

	<label class="r-edit-label control-label {$discount_type_id_label_class}" for="{$labelfor_discount_type_id}">
		{BEGIN discount_type_id_label}
			{$discount_type_id_forward_control}
			{$label sales_detail discount_type_id }			{END discount_type_id_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$discount_type_id_value}	</div>
	</div>


{END discount_type_id_fieldblock}
											
{BEGIN statutory_discount_rate_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_statutory_discount_rate}  r-vertical-field" 
	data-signal-error-for="statutory_discount_rate{$id}" {$required_attr_statutory_discount_rate}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field14" {$item_integrated_edit_field14}="" data-pageid="{$pageid}" data-field="statutory_discount_rate" data-fieldname="statutory_discount_rate" >

	<label class="r-edit-label control-label {$statutory_discount_rate_label_class}" for="{$labelfor_statutory_discount_rate}">
		{BEGIN statutory_discount_rate_label}
			{$statutory_discount_rate_forward_control}
			{$label sales_detail statutory_discount_rate }			{END statutory_discount_rate_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$statutory_discount_rate_value}	</div>
	</div>


{END statutory_discount_rate_fieldblock}
											
{BEGIN statutory_discount_amount_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_statutory_discount_amount}  r-vertical-field" 
	data-signal-error-for="statutory_discount_amount{$id}" {$required_attr_statutory_discount_amount}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field15" {$item_integrated_edit_field15}="" data-pageid="{$pageid}" data-field="statutory_discount_amount" data-fieldname="statutory_discount_amount" >

	<label class="r-edit-label control-label {$statutory_discount_amount_label_class}" for="{$labelfor_statutory_discount_amount}">
		{BEGIN statutory_discount_amount_label}
			{$statutory_discount_amount_forward_control}
			{$label sales_detail statutory_discount_amount }			{END statutory_discount_amount_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$statutory_discount_amount_value}	</div>
	</div>


{END statutory_discount_amount_fieldblock}
											
{BEGIN net_before_tax_amount_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_net_before_tax_amount}  r-vertical-field" 
	data-signal-error-for="net_before_tax_amount{$id}" {$required_attr_net_before_tax_amount}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field16" {$item_integrated_edit_field16}="" data-pageid="{$pageid}" data-field="net_before_tax_amount" data-fieldname="net_before_tax_amount" >

	<label class="r-edit-label control-label {$net_before_tax_amount_label_class}" for="{$labelfor_net_before_tax_amount}">
		{BEGIN net_before_tax_amount_label}
			{$net_before_tax_amount_forward_control}
			{$label sales_detail net_before_tax_amount }			{END net_before_tax_amount_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$net_before_tax_amount_value}	</div>
	</div>


{END net_before_tax_amount_fieldblock}
											
{BEGIN vatable_amount_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_vatable_amount}  r-vertical-field" 
	data-signal-error-for="vatable_amount{$id}" {$required_attr_vatable_amount}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field19" {$item_integrated_edit_field19}="" data-pageid="{$pageid}" data-field="vatable_amount" data-fieldname="vatable_amount" >

	<label class="r-edit-label control-label {$vatable_amount_label_class}" for="{$labelfor_vatable_amount}">
		{BEGIN vatable_amount_label}
			{$vatable_amount_forward_control}
			{$label sales_detail vatable_amount }			{END vatable_amount_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$vatable_amount_value}	</div>
	</div>


{END vatable_amount_fieldblock}
											
{BEGIN vat_exempt_amount_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_vat_exempt_amount}  r-vertical-field" 
	data-signal-error-for="vat_exempt_amount{$id}" {$required_attr_vat_exempt_amount}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field20" {$item_integrated_edit_field20}="" data-pageid="{$pageid}" data-field="vat_exempt_amount" data-fieldname="vat_exempt_amount" >

	<label class="r-edit-label control-label {$vat_exempt_amount_label_class}" for="{$labelfor_vat_exempt_amount}">
		{BEGIN vat_exempt_amount_label}
			{$vat_exempt_amount_forward_control}
			{$label sales_detail vat_exempt_amount }			{END vat_exempt_amount_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$vat_exempt_amount_value}	</div>
	</div>


{END vat_exempt_amount_fieldblock}
											
{BEGIN zero_rated_amount_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_zero_rated_amount}  r-vertical-field" 
	data-signal-error-for="zero_rated_amount{$id}" {$required_attr_zero_rated_amount}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field21" {$item_integrated_edit_field21}="" data-pageid="{$pageid}" data-field="zero_rated_amount" data-fieldname="zero_rated_amount" >

	<label class="r-edit-label control-label {$zero_rated_amount_label_class}" for="{$labelfor_zero_rated_amount}">
		{BEGIN zero_rated_amount_label}
			{$zero_rated_amount_forward_control}
			{$label sales_detail zero_rated_amount }			{END zero_rated_amount_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$zero_rated_amount_value}	</div>
	</div>


{END zero_rated_amount_fieldblock}
											
{BEGIN withholding_tax_code_id_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_withholding_tax_code_id}  r-vertical-field" 
	data-signal-error-for="withholding_tax_code_id{$id}" {$required_attr_withholding_tax_code_id}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field23" {$item_integrated_edit_field23}="" data-pageid="{$pageid}" data-field="withholding_tax_code_id" data-fieldname="withholding_tax_code_id" >

	<label class="r-edit-label control-label {$withholding_tax_code_id_label_class}" for="{$labelfor_withholding_tax_code_id}">
		{BEGIN withholding_tax_code_id_label}
			{$withholding_tax_code_id_forward_control}
			{$label sales_detail withholding_tax_code_id }			{END withholding_tax_code_id_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$withholding_tax_code_id_value}	</div>
	</div>


{END withholding_tax_code_id_fieldblock}
											
{BEGIN withholding_rate_snapshot_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_withholding_rate_snapshot}  r-vertical-field" 
	data-signal-error-for="withholding_rate_snapshot{$id}" {$required_attr_withholding_rate_snapshot}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field24" {$item_integrated_edit_field24}="" data-pageid="{$pageid}" data-field="withholding_rate_snapshot" data-fieldname="withholding_rate_snapshot" >

	<label class="r-edit-label control-label {$withholding_rate_snapshot_label_class}" for="{$labelfor_withholding_rate_snapshot}">
		{BEGIN withholding_rate_snapshot_label}
			{$withholding_rate_snapshot_forward_control}
			{$label sales_detail withholding_rate_snapshot }			{END withholding_rate_snapshot_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$withholding_rate_snapshot_value}	</div>
	</div>


{END withholding_rate_snapshot_fieldblock}
											
{BEGIN withholding_amount_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_withholding_amount}  r-vertical-field" 
	data-signal-error-for="withholding_amount{$id}" {$required_attr_withholding_amount}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field25" {$item_integrated_edit_field25}="" data-pageid="{$pageid}" data-field="withholding_amount" data-fieldname="withholding_amount" >

	<label class="r-edit-label control-label {$withholding_amount_label_class}" for="{$labelfor_withholding_amount}">
		{BEGIN withholding_amount_label}
			{$withholding_amount_forward_control}
			{$label sales_detail withholding_amount }			{END withholding_amount_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$withholding_amount_value}	</div>
	</div>


{END withholding_amount_fieldblock}
											
{BEGIN base_line_total_amount_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_base_line_total_amount}  r-vertical-field" 
	data-signal-error-for="base_line_total_amount{$id}" {$required_attr_base_line_total_amount}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field27" {$item_integrated_edit_field27}="" data-pageid="{$pageid}" data-field="base_line_total_amount" data-fieldname="base_line_total_amount" >

	<label class="r-edit-label control-label {$base_line_total_amount_label_class}" for="{$labelfor_base_line_total_amount}">
		{BEGIN base_line_total_amount_label}
			{$base_line_total_amount_forward_control}
			{$label sales_detail base_line_total_amount }			{END base_line_total_amount_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$base_line_total_amount_value}	</div>
	</div>


{END base_line_total_amount_fieldblock}
											
{BEGIN warehouse_id_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_warehouse_id}  r-vertical-field" 
	data-signal-error-for="warehouse_id{$id}" {$required_attr_warehouse_id}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field28" {$item_integrated_edit_field28}="" data-pageid="{$pageid}" data-field="warehouse_id" data-fieldname="warehouse_id" >

	<label class="r-edit-label control-label {$warehouse_id_label_class}" for="{$labelfor_warehouse_id}">
		{BEGIN warehouse_id_label}
			{$warehouse_id_forward_control}
			{$label sales_detail warehouse_id }			{END warehouse_id_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$warehouse_id_value}	</div>
	</div>


{END warehouse_id_fieldblock}
											
{BEGIN department_id_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_department_id}  r-vertical-field" 
	data-signal-error-for="department_id{$id}" {$required_attr_department_id}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field29" {$item_integrated_edit_field29}="" data-pageid="{$pageid}" data-field="department_id" data-fieldname="department_id" >

	<label class="r-edit-label control-label {$department_id_label_class}" for="{$labelfor_department_id}">
		{BEGIN department_id_label}
			{$department_id_forward_control}
			{$label sales_detail department_id }			{END department_id_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$department_id_value}	</div>
	</div>


{END department_id_fieldblock}
											
{BEGIN cost_center_id_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_cost_center_id}  r-vertical-field" 
	data-signal-error-for="cost_center_id{$id}" {$required_attr_cost_center_id}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field30" {$item_integrated_edit_field30}="" data-pageid="{$pageid}" data-field="cost_center_id" data-fieldname="cost_center_id" >

	<label class="r-edit-label control-label {$cost_center_id_label_class}" for="{$labelfor_cost_center_id}">
		{BEGIN cost_center_id_label}
			{$cost_center_id_forward_control}
			{$label sales_detail cost_center_id }			{END cost_center_id_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$cost_center_id_value}	</div>
	</div>


{END cost_center_id_fieldblock}
											
{BEGIN project_id_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_project_id}  r-vertical-field" 
	data-signal-error-for="project_id{$id}" {$required_attr_project_id}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field31" {$item_integrated_edit_field31}="" data-pageid="{$pageid}" data-field="project_id" data-fieldname="project_id" >

	<label class="r-edit-label control-label {$project_id_label_class}" for="{$labelfor_project_id}">
		{BEGIN project_id_label}
			{$project_id_forward_control}
			{$label sales_detail project_id }			{END project_id_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$project_id_value}	</div>
	</div>


{END project_id_fieldblock}
											
{BEGIN project_task_id_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_project_task_id}  r-vertical-field" 
	data-signal-error-for="project_task_id{$id}" {$required_attr_project_task_id}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field32" {$item_integrated_edit_field32}="" data-pageid="{$pageid}" data-field="project_task_id" data-fieldname="project_task_id" >

	<label class="r-edit-label control-label {$project_task_id_label_class}" for="{$labelfor_project_task_id}">
		{BEGIN project_task_id_label}
			{$project_task_id_forward_control}
			{$label sales_detail project_task_id }			{END project_task_id_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$project_task_id_value}	</div>
	</div>


{END project_task_id_fieldblock}
											
{BEGIN sales_agent_id_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_sales_agent_id}  r-vertical-field" 
	data-signal-error-for="sales_agent_id{$id}" {$required_attr_sales_agent_id}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field33" {$item_integrated_edit_field33}="" data-pageid="{$pageid}" data-field="sales_agent_id" data-fieldname="sales_agent_id" >

	<label class="r-edit-label control-label {$sales_agent_id_label_class}" for="{$labelfor_sales_agent_id}">
		{BEGIN sales_agent_id_label}
			{$sales_agent_id_forward_control}
			{$label sales_detail sales_agent_id }			{END sales_agent_id_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$sales_agent_id_value}	</div>
	</div>


{END sales_agent_id_fieldblock}
											
{BEGIN campaign_id_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_campaign_id}  r-vertical-field" 
	data-signal-error-for="campaign_id{$id}" {$required_attr_campaign_id}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field34" {$item_integrated_edit_field34}="" data-pageid="{$pageid}" data-field="campaign_id" data-fieldname="campaign_id" >

	<label class="r-edit-label control-label {$campaign_id_label_class}" for="{$labelfor_campaign_id}">
		{BEGIN campaign_id_label}
			{$campaign_id_forward_control}
			{$label sales_detail campaign_id }			{END campaign_id_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$campaign_id_value}	</div>
	</div>


{END campaign_id_fieldblock}
											
{BEGIN created_at_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_created_at}  r-vertical-field" 
	data-signal-error-for="created_at{$id}" {$required_attr_created_at}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field35" {$item_integrated_edit_field35}="" data-pageid="{$pageid}" data-field="created_at" data-fieldname="created_at" >

	<label class="r-edit-label control-label {$created_at_label_class}" for="{$labelfor_created_at}">
		{BEGIN created_at_label}
			{$created_at_forward_control}
			{$label sales_detail created_at }			{END created_at_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$created_at_value}	</div>
	</div>


{END created_at_fieldblock}
											
{BEGIN updated_at_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_updated_at}  r-vertical-field" 
	data-signal-error-for="updated_at{$id}" {$required_attr_updated_at}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field36" {$item_integrated_edit_field36}="" data-pageid="{$pageid}" data-field="updated_at" data-fieldname="updated_at" >

	<label class="r-edit-label control-label {$updated_at_label_class}" for="{$labelfor_updated_at}">
		{BEGIN updated_at_label}
			{$updated_at_forward_control}
			{$label sales_detail updated_at }			{END updated_at_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$updated_at_value}	</div>
	</div>


{END updated_at_fieldblock}
	
								</td>
			{END cellblock_section_c1}
								</tr>
			</tbody></table>
{END section_block}
		  </div>
		</div>
	</div>
	
								</td>
			{END cellblock_grid_c}
								</tr>
			</tbody></table>
{END grid_block}
									{BEGIN below-grid_block}
<div class="r-form" data-location="below-grid" id="form_below-grid_{$pageid}" data-makeup="small" {$form_below-grid} data-pageid="{$pageid}" data-page="sales_detail_view"
		data-v-width="4"
	data-v-margin="0"
	
>		
	 
		<div class="row">
			 
				<div 
	data-cellId="below-grid_c1" data-pageid="{$pageid}"	{$cell_below-grid_c1}
	class="			col-md-6
	">
	 
		{BEGIN back_button}
<span data-itemtype="view_back_list" data-itemid="view_back_list" {$item_view_back_list}="" data-pageid="{$pageid}" data-small="" data-button-item>
	<a type="button" title="" class="btn btn-default   
	" {$backbutton_attrs} >
							{mlang_message BACK_TO_LIST}			</a>
</span>
{END back_button}
	 
		{BEGIN close_button}
<span data-itemtype="view_close" data-itemid="view_close" {$item_view_close}="" data-pageid="{$pageid}" data-small="" data-button-item>
	<a type="button" title="" class="btn btn-default   
	" href="#" {$closebutton_attrs} >
							{mlang_message CLOSE_WINDOW}			</a>
</span>
{END close_button}
	</div>			 
				<div 
	data-cellId="below-grid_c2" data-pageid="{$pageid}"	{$cell_below-grid_c2}
	class="r-align-right r-ori-vert			col-md-6
	">
	 
		<span data-itemtype="hamburger" data-itemid="hamburger" {$item_hamburger}="" data-pageid="{$pageid}" data-small="" data-button-item>
	<span class="dropdown dropup">
		<button type="button" title="" class="btn btn-default   dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">		
										<span class="glyphicon glyphicon-menu-hamburger"></span>
												<span class="caret"></span>
		</button>
		<ul class="dropdown-menu">
							{BEGIN edit_page_button}
	<li data-itemtype="view_edit" data-itemid="view_edit" {$item_view_edit}="" data-pageid="{$pageid}" data-small="" >
				<a  href="sales_detail_edit.php?{$editlink}" {$edit_page_button_attrs}  title="" >
				
		{mlang_message EDIT}		
		</a>
	</li>
{END edit_page_button}
					</ul>
	</span>
</span>
	</div>					</div>
	</div>		
{END below-grid_block}
			</div>
		{$footer}
	{END body}
	</body>
</html>
