<!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-add" {$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_add"
		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="add_header" data-itemid="add_header" {$item_add_header}="" data-pageid="{$pageid}" >{$pagetitlelabel sales_detail add}</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_add"
		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
	">
	 
		{BEGIN message_block}
<div data-itemtype="add_message" data-itemid="add_message" {$item_add_message}="" data-pageid="{$pageid}" class="alert {$message_class}" role="alert">
<h5>{$message}</h5>
<div>
{BEGIN message_back_button}
		
	<button class="btn btn-sm btn-default" {$backbutton_attrs}>{mlang_message BACK_TO_LIST}</button>
	{END message_back_button}
{BEGIN view_page_button}
	<button class="btn btn-sm btn-default" {$view_page_button_attrs}>{mlang_message VIEW}</button>
{END view_page_button}
{BEGIN edit_page_button}
	<button class="btn btn-sm btn-default" {$edit_page_button_attrs}>{mlang_message EDIT}</button>
{END edit_page_button}
</div>
</div>
{END message_block}	</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_add" 
	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">
				 
	<div class="panel panel-default form-section" data-itemtype="section" data-itemid="section" {$item_section}="" data-pageid="{$pageid}" data-page="sales_detail_add">
		<div class="panel-heading" role="tab" {$section_section1_headattrs} 
			data-toggle="collapse"  

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

		>
		  <h4 class="panel-title">
		  				<a role="button" >
				Line Info			</a>
					  </h4>
		</div>
		<div  class="panel-collapse collapse in {$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_add" 
	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 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_field3" {$item_integrated_edit_field3}="" 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_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="item_id" {$tooltipAttr sales_detail item_id } >
		<div class="text-muted" >
		{$tooltip sales_detail item_id }		</div>
	</div>
	</div>


{END item_id_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_field5" {$item_integrated_edit_field5}="" 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_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="description" {$tooltipAttr sales_detail description } >
		<div class="text-muted" >
		{$tooltip sales_detail description }		</div>
	</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_field6" {$item_integrated_edit_field6}="" 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_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="uom_code" {$tooltipAttr sales_detail uom_code } >
		<div class="text-muted" >
		{$tooltip sales_detail uom_code }		</div>
	</div>
	</div>


{END uom_code_fieldblock}
	
								</td>
			{END cellblock_section_c1}
								</tr>
			</tbody></table>
{END section_block}
		  </div>
		</div>
	</div>
											 
	<div class="panel panel-default form-section" data-itemtype="section" data-itemid="section1" {$item_section1}="" data-pageid="{$pageid}" data-page="sales_detail_add">
		<div class="panel-heading" role="tab" {$section_section2_headattrs} 
			data-toggle="collapse"  

				href="#section2{$pageid}" aria-expanded="true" aria-controls="section2"

		>
		  <h4 class="panel-title">
		  				<a role="button" >
				Quantity and Price			</a>
					  </h4>
		</div>
		<div  class="panel-collapse collapse in {$section_section2_xtrclass}" role="tabpanel"  {$section_section2_attrs}

				id="section2{$pageid}" 
		>
		  <div class="panel-body">
			{BEGIN section1_block}




 
	 
												<table 
	data-body-align="center"
	data-location="section1" id="form_section1_{$pageid}" data-makeup="small" {$form_section1} data-pageid="{$pageid}" data-page="sales_detail_add" 
	class="r-edit-form" cellpadding="0" cellspacing="0" 
	{$grid_hiddenattr} 
		data-form-width="1"
		
		data-v-width="4"
	>
	<tbody>
										<tr {$row_section1_0} >
										

{BEGIN cellblock_section1_c1}
<td
	{$cell_section1_c1}
	class=" r-ori-vert"
	
			
			data-cellId="section1_c1" data-pageid="{$pageid}"
		data-v-cell="4"
		
>
	<div edit-form-cell class="clearfix">
				
{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_field7" {$item_integrated_edit_field7}="" 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_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="quantity" {$tooltipAttr sales_detail quantity } >
		<div class="text-muted" >
		{$tooltip sales_detail quantity }		</div>
	</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_field8" {$item_integrated_edit_field8}="" 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_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="unit_price" {$tooltipAttr sales_detail unit_price } >
		<div class="text-muted" >
		{$tooltip sales_detail unit_price }		</div>
	</div>
	</div>


{END unit_price_fieldblock}
	
								</td>
			{END cellblock_section1_c1}
								</tr>
			</tbody></table>
{END section1_block}
		  </div>
		</div>
	</div>
											 
	<div class="panel panel-default form-section" data-itemtype="section" data-itemid="section3" {$item_section3}="" data-pageid="{$pageid}" data-page="sales_detail_add">
		<div class="panel-heading" role="tab" {$section_section3_headattrs} 
			data-toggle="collapse"  

				href="#section3{$pageid}" aria-expanded="true" aria-controls="section3"

		>
		  <h4 class="panel-title">
		  				<a role="button" >
				Taxes			</a>
					  </h4>
		</div>
		<div  class="panel-collapse collapse in {$section_section3_xtrclass}" role="tabpanel"  {$section_section3_attrs}

				id="section3{$pageid}" 
		>
		  <div class="panel-body">
			{BEGIN section3_block}




 
	 
												<table 
	data-body-align="center"
	data-location="section3" id="form_section3_{$pageid}" data-makeup="small" {$form_section3} data-pageid="{$pageid}" data-page="sales_detail_add" 
	class="r-edit-form" cellpadding="0" cellspacing="0" 
	{$grid_hiddenattr} 
		data-form-width="1"
		
		data-v-width="4"
	>
	<tbody>
										<tr {$row_section3_0} >
										

{BEGIN cellblock_section3_c1}
<td
	{$cell_section3_c1}
	class=" r-ori-vert"
	
			
			data-cellId="section3_c1" data-pageid="{$pageid}"
		data-v-cell="4"
		
>
	<div edit-form-cell class="clearfix">
				
{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_field16" {$item_integrated_edit_field16}="" 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_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="vat_tax_code_id" {$tooltipAttr sales_detail vat_tax_code_id } >
		<div class="text-muted" >
		{$tooltip sales_detail vat_tax_code_id }		</div>
	</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_field1" {$item_integrated_edit_field1}="" 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_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="vat_rate_snapshot" {$tooltipAttr sales_detail vat_rate_snapshot } >
		<div class="text-muted" >
		{$tooltip sales_detail vat_rate_snapshot }		</div>
	</div>
	</div>


{END vat_rate_snapshot_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_field22" {$item_integrated_edit_field22}="" 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_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="withholding_tax_code_id" {$tooltipAttr sales_detail withholding_tax_code_id } >
		<div class="text-muted" >
		{$tooltip sales_detail withholding_tax_code_id }		</div>
	</div>
	</div>


{END withholding_tax_code_id_fieldblock}
	
								</td>
			{END cellblock_section3_c1}
								</tr>
			</tbody></table>
{END section3_block}
		  </div>
		</div>
	</div>
	
								</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="section4" {$item_section4}="" data-pageid="{$pageid}" data-page="sales_detail_add">
		<div class="panel-heading" role="tab" {$section_section4_headattrs} 
			data-toggle="collapse"  

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

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

				id="section4{$pageid}" 
		>
		  <div class="panel-body">
			{BEGIN section4_block}




 
	 
												<table 
	data-body-align="center"
	data-location="section4" id="form_section4_{$pageid}" data-makeup="small" {$form_section4} data-pageid="{$pageid}" data-page="sales_detail_add" 
	class="r-edit-form" cellpadding="0" cellspacing="0" 
	{$grid_hiddenattr} 
		data-form-width="1"
		
		data-v-width="4"
	>
	<tbody>
										<tr {$row_section4_0} >
										

{BEGIN cellblock_section4_c1}
<td
	{$cell_section4_c1}
	class=" r-ori-vert"
	
			
			data-cellId="section4_c1" data-pageid="{$pageid}"
		data-v-cell="4"
		
>
	<div edit-form-cell class="clearfix">
				
{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_field27" {$item_integrated_edit_field27}="" 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_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="warehouse_id" {$tooltipAttr sales_detail warehouse_id } >
		<div class="text-muted" >
		{$tooltip sales_detail warehouse_id }		</div>
	</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_field28" {$item_integrated_edit_field28}="" 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_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="department_id" {$tooltipAttr sales_detail department_id } >
		<div class="text-muted" >
		{$tooltip sales_detail department_id }		</div>
	</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_field29" {$item_integrated_edit_field29}="" 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_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="cost_center_id" {$tooltipAttr sales_detail cost_center_id } >
		<div class="text-muted" >
		{$tooltip sales_detail cost_center_id }		</div>
	</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_field30" {$item_integrated_edit_field30}="" 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_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="project_id" {$tooltipAttr sales_detail project_id } >
		<div class="text-muted" >
		{$tooltip sales_detail project_id }		</div>
	</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_field31" {$item_integrated_edit_field31}="" 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_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="project_task_id" {$tooltipAttr sales_detail project_task_id } >
		<div class="text-muted" >
		{$tooltip sales_detail project_task_id }		</div>
	</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_field32" {$item_integrated_edit_field32}="" 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_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="sales_agent_id" {$tooltipAttr sales_detail sales_agent_id } >
		<div class="text-muted" >
		{$tooltip sales_detail sales_agent_id }		</div>
	</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_field33" {$item_integrated_edit_field33}="" 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_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="campaign_id" {$tooltipAttr sales_detail campaign_id } >
		<div class="text-muted" >
		{$tooltip sales_detail campaign_id }		</div>
	</div>
	</div>


{END campaign_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_field10" {$item_integrated_edit_field10}="" 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_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="commercial_discount_rate" {$tooltipAttr sales_detail commercial_discount_rate } >
		<div class="text-muted" >
		{$tooltip sales_detail commercial_discount_rate }		</div>
	</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_field11" {$item_integrated_edit_field11}="" 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_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="commercial_discount_amount" {$tooltipAttr sales_detail commercial_discount_amount } >
		<div class="text-muted" >
		{$tooltip sales_detail commercial_discount_amount }		</div>
	</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_field12" {$item_integrated_edit_field12}="" 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_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="discount_type_id" {$tooltipAttr sales_detail discount_type_id } >
		<div class="text-muted" >
		{$tooltip sales_detail discount_type_id }		</div>
	</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_field13" {$item_integrated_edit_field13}="" 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_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="statutory_discount_rate" {$tooltipAttr sales_detail statutory_discount_rate } >
		<div class="text-muted" >
		{$tooltip sales_detail statutory_discount_rate }		</div>
	</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_field14" {$item_integrated_edit_field14}="" 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_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="statutory_discount_amount" {$tooltipAttr sales_detail statutory_discount_amount } >
		<div class="text-muted" >
		{$tooltip sales_detail statutory_discount_amount }		</div>
	</div>
	</div>


{END statutory_discount_amount_fieldblock}
	
								</td>
			{END cellblock_section4_c1}
								</tr>
			</tbody></table>
{END section4_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_add"
		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-12
	">
	 
		<span data-itemtype="add_save" data-itemid="add_save" {$item_add_save}="" data-pageid="{$pageid}" data-small="" data-button-item>
	<a type="button" title="" class="btn btn-primary   
	" {$savebutton_attrs} >
					<span class=""></span>
							{mlang_message SAVE}			</a>
</span>
	 
		{BEGIN reset_button}
<span data-itemtype="add_reset" data-itemid="add_reset" {$item_add_reset}="" data-pageid="{$pageid}" data-small="" data-button-item>
	<a type="button" title="" class="btn btn-default   
	" id="resetButton{$id}" >
							{mlang_message RESET}			</a>
</span>
{END reset_button}
	 
		{BEGIN back_button}
<span data-itemtype="add_back_list" data-itemid="add_back_list" {$item_add_back_list}="" data-pageid="{$pageid}" data-small="" data-button-item>
	<a type="button" title="" class="btn btn-default   
	" id="backButton{$id}" >
							{mlang_message BACK_TO_LIST}			</a>
</span>
{END back_button}
	 
		{BEGIN cancel_button}
<span data-itemtype="add_cancel" data-itemid="add_cancel" {$item_add_cancel}="" data-pageid="{$pageid}" data-small="" data-button-item>
	<a type="button" title="" class="btn btn-default   
	" id="cancelButton{$id}" >
							{mlang_message CANCEL}			</a>
</span>
{END cancel_button}
	</div>					</div>
	</div>		
{END below-grid_block}
			</div>
		{$footer}
	{END body}
	</body>
</html>
