<!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_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 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_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_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="sec_customer" {$item_sec_customer}="" data-pageid="{$pageid}" data-page="sales_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" >
				Customer			</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 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_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 customer_id_fieldblock}


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

	<label class="r-edit-label control-label {$customer_id_label_class}" for="{$labelfor_customer_id}">
		{BEGIN customer_id_label}
			{$customer_id_forward_control}
			{$label sales customer_id }			{END customer_id_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$customer_id_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="customer_id" {$tooltipAttr sales customer_id } >
		<div class="text-muted" >
		{$tooltip sales customer_id }		</div>
	</div>
	</div>


{END customer_id_fieldblock}
											
{BEGIN customer_name_snapshot_fieldblock}


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

	<label class="r-edit-label control-label {$customer_name_snapshot_label_class}" for="{$labelfor_customer_name_snapshot}">
		{BEGIN customer_name_snapshot_label}
			{$customer_name_snapshot_forward_control}
			{$label sales customer_name_snapshot }			{END customer_name_snapshot_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$customer_name_snapshot_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="customer_name_snapshot" {$tooltipAttr sales customer_name_snapshot } >
		<div class="text-muted" >
		{$tooltip sales customer_name_snapshot }		</div>
	</div>
	</div>


{END customer_name_snapshot_fieldblock}
											
{BEGIN customer_tin_snapshot_fieldblock}


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

	<label class="r-edit-label control-label {$customer_tin_snapshot_label_class}" for="{$labelfor_customer_tin_snapshot}">
		{BEGIN customer_tin_snapshot_label}
			{$customer_tin_snapshot_forward_control}
			{$label sales customer_tin_snapshot }			{END customer_tin_snapshot_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$customer_tin_snapshot_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="customer_tin_snapshot" {$tooltipAttr sales customer_tin_snapshot } >
		<div class="text-muted" >
		{$tooltip sales customer_tin_snapshot }		</div>
	</div>
	</div>


{END customer_tin_snapshot_fieldblock}
											
{BEGIN customer_branch_code_snapshot_fieldblock}


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

	<label class="r-edit-label control-label {$customer_branch_code_snapshot_label_class}" for="{$labelfor_customer_branch_code_snapshot}">
		{BEGIN customer_branch_code_snapshot_label}
			{$customer_branch_code_snapshot_forward_control}
			{$label sales customer_branch_code_snapshot }			{END customer_branch_code_snapshot_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$customer_branch_code_snapshot_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="customer_branch_code_snapshot" {$tooltipAttr sales customer_branch_code_snapshot } >
		<div class="text-muted" >
		{$tooltip sales customer_branch_code_snapshot }		</div>
	</div>
	</div>


{END customer_branch_code_snapshot_fieldblock}
											
{BEGIN payment_terms_days_fieldblock}


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

	<label class="r-edit-label control-label {$payment_terms_days_label_class}" for="{$labelfor_payment_terms_days}">
		{BEGIN payment_terms_days_label}
			{$payment_terms_days_forward_control}
			{$label sales payment_terms_days }			{END payment_terms_days_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$payment_terms_days_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="payment_terms_days" {$tooltipAttr sales payment_terms_days } >
		<div class="text-muted" >
		{$tooltip sales payment_terms_days }		</div>
	</div>
	</div>


{END payment_terms_days_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="sec_address" {$item_sec_address}="" data-pageid="{$pageid}" data-page="sales_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" >
				Address			</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 section2_block}




 
	 
												<table 
	data-body-align="center"
	data-location="section2" id="form_section2_{$pageid}" data-makeup="small" {$form_section2} data-pageid="{$pageid}" data-page="sales_add" 
	class="r-edit-form" cellpadding="0" cellspacing="0" 
	{$grid_hiddenattr} 
		data-form-width="1"
		
		data-v-width="4"
	>
	<tbody>
										<tr {$row_section2_0} >
										

{BEGIN cellblock_section2_c1}
<td
	{$cell_section2_c1}
	class=" r-ori-vert"
	
			
			data-cellId="section2_c1" data-pageid="{$pageid}"
		data-v-cell="4"
		
>
	<div edit-form-cell class="clearfix">
				
{BEGIN billing_address_fieldblock}


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

	<label class="r-edit-label control-label {$billing_address_label_class}" for="{$labelfor_billing_address}">
		{BEGIN billing_address_label}
			{$billing_address_forward_control}
			{$label sales billing_address }			{END billing_address_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$billing_address_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="billing_address" {$tooltipAttr sales billing_address } >
		<div class="text-muted" >
		{$tooltip sales billing_address }		</div>
	</div>
	</div>


{END billing_address_fieldblock}
											
{BEGIN shipping_address_fieldblock}


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

	<label class="r-edit-label control-label {$shipping_address_label_class}" for="{$labelfor_shipping_address}">
		{BEGIN shipping_address_label}
			{$shipping_address_forward_control}
			{$label sales shipping_address }			{END shipping_address_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$shipping_address_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="shipping_address" {$tooltipAttr sales shipping_address } >
		<div class="text-muted" >
		{$tooltip sales shipping_address }		</div>
	</div>
	</div>


{END shipping_address_fieldblock}
	
								</td>
			{END cellblock_section2_c1}
								</tr>
			</tbody></table>
{END section2_block}
		  </div>
		</div>
	</div>
											 
	<div class="panel panel-default form-section" data-itemtype="section" data-itemid="sec_remarks" {$item_sec_remarks}="" data-pageid="{$pageid}" data-page="sales_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" >
				Remarks			</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 section6_block}




 
	 
												<table 
	data-body-align="center"
	data-location="section6" id="form_section6_{$pageid}" data-makeup="small" {$form_section6} data-pageid="{$pageid}" data-page="sales_add" 
	class="r-edit-form" cellpadding="0" cellspacing="0" 
	{$grid_hiddenattr} 
		data-form-width="1"
		
		data-v-width="4"
	>
	<tbody>
										<tr {$row_section6_0} >
										

{BEGIN cellblock_section6_c1}
<td
	{$cell_section6_c1}
	class=" r-ori-vert"
	
			data-single
			
			data-cellId="section6_c1" data-pageid="{$pageid}"
		data-v-cell="4"
		
>
	<div edit-form-cell class="clearfix">
				
{BEGIN remarks_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_remarks}  r-vertical-field" 
	data-signal-error-for="remarks{$id}" {$required_attr_remarks}
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field47" {$item_integrated_edit_field47}="" data-pageid="{$pageid}" data-field="remarks" data-fieldname="remarks" >

	<label class="r-edit-label control-label {$remarks_label_class}" for="{$labelfor_remarks}">
		{BEGIN remarks_label}
			{$remarks_forward_control}
			{$label sales remarks }			{END remarks_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$remarks_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="remarks" {$tooltipAttr sales remarks } >
		<div class="text-muted" >
		{$tooltip sales remarks }		</div>
	</div>
	</div>


{END remarks_fieldblock}
	
								</td>
			{END cellblock_section6_c1}
								</tr>
			</tbody></table>
{END section6_block}
		  </div>
		</div>
	</div>
	
								</td>
			{END cellblock_grid_c3}
			 
																

{BEGIN cellblock_grid_c}
<td
	{$cell_grid_c}
	class=" r-ori-vert"
	
			
			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="sec_document" {$item_sec_document}="" data-pageid="{$pageid}" data-page="sales_add">
		<div class="panel-heading" role="tab" {$section_section4_headattrs} 
			data-toggle="collapse"  

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

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

				id="section4{$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_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 branch_id_fieldblock}


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

	<label class="r-edit-label control-label {$branch_id_label_class}" for="{$labelfor_branch_id}">
		{BEGIN branch_id_label}
			{$branch_id_forward_control}
			{$label sales branch_id }			{END branch_id_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$branch_id_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="branch_id" {$tooltipAttr sales branch_id } >
		<div class="text-muted" >
		{$tooltip sales branch_id }		</div>
	</div>
	</div>


{END branch_id_fieldblock}
											
{BEGIN transaction_type_fieldblock}


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

	<label class="r-edit-label control-label {$transaction_type_label_class}" for="{$labelfor_transaction_type}">
		{BEGIN transaction_type_label}
			{$transaction_type_forward_control}
			{$label sales transaction_type }			{END transaction_type_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$transaction_type_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="transaction_type" {$tooltipAttr sales transaction_type } >
		<div class="text-muted" >
		{$tooltip sales transaction_type }		</div>
	</div>
	</div>


{END transaction_type_fieldblock}
											
{BEGIN transaction_date_fieldblock}


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

	<label class="r-edit-label control-label {$transaction_date_label_class}" for="{$labelfor_transaction_date}">
		{BEGIN transaction_date_label}
			{$transaction_date_forward_control}
			{$label sales transaction_date }			{END transaction_date_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$transaction_date_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="transaction_date" {$tooltipAttr sales transaction_date } >
		<div class="text-muted" >
		{$tooltip sales transaction_date }		</div>
	</div>
	</div>


{END transaction_date_fieldblock}
											
{BEGIN due_date_fieldblock}


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

	<label class="r-edit-label control-label {$due_date_label_class}" for="{$labelfor_due_date}">
		{BEGIN due_date_label}
			{$due_date_forward_control}
			{$label sales due_date }			{END due_date_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$due_date_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="due_date" {$tooltipAttr sales due_date } >
		<div class="text-muted" >
		{$tooltip sales due_date }		</div>
	</div>
	</div>


{END due_date_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="sec_currency" {$item_sec_currency}="" data-pageid="{$pageid}" data-page="sales_add">
		<div class="panel-heading" role="tab" {$section_section5_headattrs} 
			data-toggle="collapse"  

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

		>
		  <h4 class="panel-title">
		  				<a role="button" >
				Currency			</a>
					  </h4>
		</div>
		<div  class="panel-collapse collapse in {$section_section5_xtrclass}" role="tabpanel"  {$section_section5_attrs}

				id="section5{$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_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 currency_code_fieldblock}


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

	<label class="r-edit-label control-label {$currency_code_label_class}" for="{$labelfor_currency_code}">
		{BEGIN currency_code_label}
			{$currency_code_forward_control}
			{$label sales currency_code }			{END currency_code_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$currency_code_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="currency_code" {$tooltipAttr sales currency_code } >
		<div class="text-muted" >
		{$tooltip sales currency_code }		</div>
	</div>
	</div>


{END currency_code_fieldblock}
											
{BEGIN exchange_rate_fieldblock}


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

	<label class="r-edit-label control-label {$exchange_rate_label_class}" for="{$labelfor_exchange_rate}">
		{BEGIN exchange_rate_label}
			{$exchange_rate_forward_control}
			{$label sales exchange_rate }			{END exchange_rate_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$exchange_rate_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="exchange_rate" {$tooltipAttr sales exchange_rate } >
		<div class="text-muted" >
		{$tooltip sales exchange_rate }		</div>
	</div>
	</div>


{END exchange_rate_fieldblock}
	
								</td>
			{END cellblock_section3_c1}
								</tr>
			</tbody></table>
{END section3_block}
		  </div>
		</div>
	</div>
											 
	<div class="panel panel-default form-section" data-itemtype="section" data-itemid="sec_summary" {$item_sec_summary}="" data-pageid="{$pageid}" data-page="sales_add">
		<div class="panel-heading" role="tab" {$section_section6_headattrs} 
			data-toggle="collapse"  

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

		>
		  <h4 class="panel-title">
		  				<a role="button" >
				Invoice Summary			</a>
					  </h4>
		</div>
		<div  class="panel-collapse collapse in {$section_section6_xtrclass}" role="tabpanel"  {$section_section6_attrs}

				id="section6{$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_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 subtotal_amount_fieldblock}


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

	<label class="r-edit-label control-label {$subtotal_amount_label_class}" for="{$labelfor_subtotal_amount}">
		{BEGIN subtotal_amount_label}
			{$subtotal_amount_forward_control}
			{$label sales subtotal_amount }			{END subtotal_amount_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$subtotal_amount_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="subtotal_amount" {$tooltipAttr sales subtotal_amount } >
		<div class="text-muted" >
		{$tooltip sales subtotal_amount }		</div>
	</div>
	</div>


{END subtotal_amount_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_field1" {$item_integrated_edit_field1}="" 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 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 commercial_discount_amount } >
		<div class="text-muted" >
		{$tooltip sales commercial_discount_amount }		</div>
	</div>
	</div>


{END commercial_discount_amount_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_field3" {$item_integrated_edit_field3}="" 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 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 statutory_discount_amount } >
		<div class="text-muted" >
		{$tooltip sales statutory_discount_amount }		</div>
	</div>
	</div>


{END statutory_discount_amount_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_field4" {$item_integrated_edit_field4}="" 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 vat_amount }			{END vat_amount_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$vat_amount_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="vat_amount" {$tooltipAttr sales vat_amount } >
		<div class="text-muted" >
		{$tooltip sales vat_amount }		</div>
	</div>
	</div>


{END vat_amount_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_field6" {$item_integrated_edit_field6}="" 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 withholding_amount }			{END withholding_amount_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$withholding_amount_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="withholding_amount" {$tooltipAttr sales withholding_amount } >
		<div class="text-muted" >
		{$tooltip sales withholding_amount }		</div>
	</div>
	</div>


{END withholding_amount_fieldblock}
											
{BEGIN grand_total_amount_fieldblock}


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

	<label class="r-edit-label control-label {$grand_total_amount_label_class}" for="{$labelfor_grand_total_amount}">
		{BEGIN grand_total_amount_label}
			{$grand_total_amount_forward_control}
			{$label sales grand_total_amount }			{END grand_total_amount_label}
		<span class="icon-required"></span>
	</label>
	<div class="r-edit-field">
		{$grand_total_amount_editcontrol}	</div>
		<div class="r-edit-tooltip" data-helpfor="grand_total_amount" {$tooltipAttr sales grand_total_amount } >
		<div class="text-muted" >
		{$tooltip sales grand_total_amount }		</div>
	</div>
	</div>


{END grand_total_amount_fieldblock}
	
								</td>
			{END cellblock_section4_c1}
								</tr>
			</tbody></table>
{END section4_block}
		  </div>
		</div>
	</div>
	
								</td>
			{END cellblock_grid_c}
								</tr>
	 
	 
																</tbody></table>
				
{BEGIN details_sales_detail}
<div data-itemtype="details_preview" data-itemid="details_preview" {$item_details_preview}="" data-pageid="{$pageid}" class="bs-details"> 
	<div class="panel panel-info details-grid">
		<div class="panel-heading">
			<h4 class="panel-title">
							{$details_pagetitle_sales_detail}			
							<span>
					{$detailslButtons_sales_detail}
																				</span>
			</h4>
		</div>
		<div class="panel-body">
			{$displayDetailTable_sales_detail}
		</div>
	</div>
</div>
{END details_sales_detail}
	
				{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_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} >
							{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>
