<!doctype html>
<html  {$html_attrs}>
	<head>
				<meta http-equiv="X-UA-Compatible" content="IE=Edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>{$pagetitle}</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<base href="{$projectPath}">
		<link REL="stylesheet" href="styles/default.css?{$wizardBuildKey}" type="text/css">
	{BEGIN rtlCSS}
	<link REL="stylesheet" href="styles/defaultRTL.css?{$wizardBuildKey}" type="text/css">
	{END rtlCSS}
	{BEGIN styleCSSFiles}
	<link REL="stylesheet" href="{$stylepath}" type="text/css">
	{END styleCSSFiles}
	</head>

	<body class="{$stylename} function-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-v-width="4"
	data-v-margin="1"
	
>		
	 
		<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 sale_master 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-v-width="4"
	data-v-margin="1"
	
>		
	 
		<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}" 
	class="r-edit-form" cellpadding="0" cellspacing="0" 
	{$grid_hiddenattr} 
		data-form-width="1"
		
		data-v-width="4"
	>
	<tbody>
										<tr>
										

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


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


	<label class="r-edit-label control-label" for="{$labelfor_sale_date}">
		{BEGIN sale_date_label}{$label sale_master sale_date }{END sale_date_label}
	</label>
	<div class="r-edit-field">
		{$sale_date_editcontrol}	</div>
	<div class="r-edit-tooltip" data-helpfor="sale_date">
		<div class="text-muted" >
		{$tooltip sale_master sale_date }		</div>
	</div>
</div>


{END sale_date_fieldblock}
											
{BEGIN buyer_code_fieldblock}


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


	<label class="r-edit-label control-label" for="{$labelfor_buyer_code}">
		{BEGIN buyer_code_label}{$label sale_master buyer_code }{END buyer_code_label}
	</label>
	<div class="r-edit-field">
		{$buyer_code_editcontrol}	</div>
	<div class="r-edit-tooltip" data-helpfor="buyer_code">
		<div class="text-muted" >
		{$tooltip sale_master buyer_code }		</div>
	</div>
</div>


{END buyer_code_fieldblock}
										</td>
			{END cellblock_grid_c3}
										</tr>
										</tbody></table>
				
{BEGIN details_sale_details}
<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">
							{$caption sale_details }				
							<span>
					{$detailslButtons_sale_details}
																				</span>
			</h4>
		</div>
		<div class="panel-body">
			{$displayDetailTable_sale_details}
		</div>
	</div>
</div>
{END details_sale_details}
											<table 
	data-body-align="center"
	data-location="grid" id="form_grid_{$pageid}" data-makeup="small" {$form_grid} data-pageid="{$pageid}" 
	class="r-edit-form" cellpadding="0" cellspacing="0" 
	{$grid_hiddenattr} 
		data-form-width="1"
		
		data-v-width="4"
	>
	<tbody>
										<tr>
										

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


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


	<label class="r-edit-label control-label" for="{$labelfor_amount_paid}">
		{BEGIN amount_paid_label}{$label sale_master amount_paid }{END amount_paid_label}
	</label>
	<div class="r-edit-field">
		{$amount_paid_editcontrol}	</div>
	<div class="r-edit-tooltip" data-helpfor="amount_paid">
		<div class="text-muted" >
		{$tooltip sale_master amount_paid }		</div>
	</div>
</div>


{END amount_paid_fieldblock}
											
{BEGIN note_fieldblock}


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


	<label class="r-edit-label control-label" for="{$labelfor_note}">
		{BEGIN note_label}{$label sale_master note }{END note_label}
	</label>
	<div class="r-edit-field">
		{$note_editcontrol}	</div>
	<div class="r-edit-tooltip" data-helpfor="note">
		<div class="text-muted" >
		{$tooltip sale_master note }		</div>
	</div>
</div>


{END note_fieldblock}
											
{BEGIN seller_id_fieldblock}


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


	<label class="r-edit-label control-label" for="{$labelfor_seller_id}">
		{BEGIN seller_id_label}{$label sale_master seller_id }{END seller_id_label}
	</label>
	<div class="r-edit-field">
		{$seller_id_editcontrol}	</div>
	<div class="r-edit-tooltip" data-helpfor="seller_id">
		<div class="text-muted" >
		{$tooltip sale_master seller_id }		</div>
	</div>
</div>


{END seller_id_fieldblock}
	
								</td>
			{END cellblock_grid_c3}
								</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-v-width="4"
	data-v-margin="1"
	
>		
	 
		<div class="row">
			 
				<div 
	data-cellId="below-grid_c1" data-pageid="{$pageid}"	{$cell_below-grid_c1}
	class="r-align-center			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} >
							Next >			</a>
</span>
	 
		{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}" >
							< 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}" >
							Cancel			</a>
</span>
{END cancel_button}
	</div>					</div>
	</div>		
{END below-grid_block}
			</div>
		{$footer}
	{END body}
	</body>
</html>
