<!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}
		<style>
		{$containerCss}
		</style>
		<div class="r-vbar-page">
			<div data-width="" data-fixed class="r-left clearfix {$leftbar_class}" >
								<div data-location="left" id="form_left_{$pageid}" data-makeup="leftbar" {$form_left} data-pageid="{$pageid}">
{BEGIN left_block}
 
     
         

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

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

			<div data-cellId="left_c1" data-pageid="{$pageid}" class="clearfix  r-ori-vert " data-itemtype="menu" data-itemid="menu" {$item_menu} data-pageid="{$pageid}">
				{$menu main}			</div>
		
    {END left_block}
</div>				</div>	
			<div class="r-content-col" data-resize-left="leftbar">
				<div  class="r-topheader" data-resize-name="topbar">
									{BEGIN supertop_block}
<nav class="navbar navbar-default" 
	data-location="supertop" id="form_supertop_{$pageid}" data-makeup="leftbar" {$form_supertop} data-pageid="{$pageid}" >
			 
							 
				<span class="navbar-form  r-ori-vert navbar-header" data-cellId="supertop_c1" data-pageid="{$pageid}" data-itemid="collapse_button" {$item_collapse_button} data-topcell-item-type="collapse_button" >
				<span data-itemtype="collapse_button" data-itemid="collapse_button" {$item_collapse_button} data-pageid="{$pageid}" data-small data-button-item>
	<a type="button" title="Collapse" class="btn-link   
	 glyphicon glyphicon-triangle-left" href="#" >		
				
								</a>
</span>
			</span>
							 
							 
				<span class="navbar-form r-align-right navbar-collapse" data-cellId="supertop_c2" data-pageid="{$pageid}" data-itemid="loginform_login" {$item_loginform_login} data-topcell-item-type="loginform_login" >
				{BEGIN guestloginbutton}
<span data-itemtype="loginform_login" data-itemid="loginform_login" {$item_loginform_login} data-pageid="{$pageid}" data-small data-button-item>
	<a type="button" title="" class="btn btn-primary   
	" href="#" {$guestloginlink_attrs} >
							Login			</a>
</span>
{END guestloginbutton}
			</span>
		 
				<span class="navbar-form r-align-right navbar-collapse" data-cellId="supertop_c2" data-pageid="{$pageid}" data-itemid="username_button" {$item_username_button} data-topcell-item-type="username_button" >
				{BEGIN loggedas_message}
<span data-itemtype="username_button" data-itemid="username_button" {$item_username_button} data-pageid="{$pageid}" data-small data-button-item>
	<span class="dropdown ">
		<button type="button" title="" class="btn btn-default   dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">		
							<span class="glyphicon glyphicon-user"></span>
						{$username}			<span class="caret"></span>
		</button>
		<ul class="dropdown-menu">
							{BEGIN logoutbutton}
	<li data-itemtype="logout_link" data-itemid="logout_link" {$item_logout_link} data-pageid="{$pageid}" data-small >
				<a  href="#" {$logoutlink_attrs}  title="" >
				
		Log out		
		</a>
	</li>
{END logoutbutton}
							{BEGIN changepwd_link}
	<li data-itemtype="changepassword_link" data-itemid="changepassword_link" {$item_changepassword_link} data-pageid="{$pageid}" data-small >
				<a  href="#" {$changepwdlink_attrs}  title="" >
				
		Change password		
		</a>
	</li>
{END changepwd_link}
					</ul>
	</span>
</span>
{END loggedas_message}
			</span>
								</nav>
{END supertop_block}
						{$locking}
				</div>	
				<div class="r-body" data-resize-top="topbar" data-body-width="standard">
					{$header}
					<div class="r-top">
									{BEGIN top_block}
<div class="r-form" data-location="top" id="form_top_{$pageid}" data-makeup="leftbar" {$form_top} data-pageid="{$pageid}" >		
	 
		<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 purchasing_details1 add}</h2>
		</div>					</div>
	</div>		
{END top_block}
						</div>
					<div class="r-above">
										{BEGIN above-grid_block}
<div class="r-form" data-location="above-grid" id="form_above-grid_{$pageid}" data-makeup="leftbar" {$form_above-grid} data-pageid="{$pageid}" >		
	 
		<div class="row">
			 
				<div 
	data-cellId="above-grid_c1" data-pageid="{$pageid}"	{$cell_above-grid_c1}
	class=" r-ori-vert			col-md-12
	
">
		{BEGIN firstAboveGridCell}
		 
		{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 back_button}
		
	<button class="btn btn-sm btn-default" {$backbutton_attrs}>Back to list</button>
	{END back_button}
{BEGIN view_page_button}
	<button class="btn btn-sm btn-default" {$view_page_button_attrs}>View</button>
{END view_page_button}
{BEGIN edit_page_button}
	<button class="btn btn-sm btn-default" {$edit_page_button_attrs}>Edit</button>
{END edit_page_button}
</div>
</div>
{END message_block}			{END firstAboveGridCell}	
	</div>					</div>
	</div>		
{END above-grid_block}
						</div>
					<div class="r-grid">
										{BEGIN grid_block}




 
	 
												<table 
	data-body-align="left"
	data-location="grid" id="form_grid_{$pageid}" data-makeup="leftbar" {$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 pur_id_fieldblock}


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


	<label class="r-edit-label control-label" for="{$labelfor_pur_id}">
		{BEGIN pur_id_label}{$label purchasing_details1 pur_id }{END pur_id_label}
	</label>
	<div class="r-edit-field">
		{$pur_id_editcontrol}	</div>
	<div class="r-edit-tooltip" data-helpfor="pur_id">
		<div class="text-muted" >
		{$tooltip purchasing_details1 pur_id }		</div>
	</div>
</div>


{END pur_id_fieldblock}
											
{BEGIN bar_code_fieldblock}


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


	<label class="r-edit-label control-label" for="{$labelfor_bar_code}">
		{BEGIN bar_code_label}{$label purchasing_details1 bar_code }{END bar_code_label}
	</label>
	<div class="r-edit-field">
		{$bar_code_editcontrol}	</div>
	<div class="r-edit-tooltip" data-helpfor="bar_code">
		<div class="text-muted" >
		{$tooltip purchasing_details1 bar_code }		</div>
	</div>
</div>


{END bar_code_fieldblock}
											
{BEGIN unit_fieldblock}


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


	<label class="r-edit-label control-label" for="{$labelfor_unit}">
		{BEGIN unit_label}{$label purchasing_details1 unit }{END unit_label}
	</label>
	<div class="r-edit-field">
		{$unit_editcontrol}	</div>
	<div class="r-edit-tooltip" data-helpfor="unit">
		<div class="text-muted" >
		{$tooltip purchasing_details1 unit }		</div>
	</div>
</div>


{END unit_fieldblock}
											
{BEGIN gross_fieldblock}


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


	<label class="r-edit-label control-label" for="{$labelfor_gross}">
		{BEGIN gross_label}{$label purchasing_details1 gross }{END gross_label}
	</label>
	<div class="r-edit-field">
		{$gross_editcontrol}	</div>
	<div class="r-edit-tooltip" data-helpfor="gross">
		<div class="text-muted" >
		{$tooltip purchasing_details1 gross }		</div>
	</div>
</div>


{END gross_fieldblock}
											
{BEGIN price_fieldblock}


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


	<label class="r-edit-label control-label" for="{$labelfor_price}">
		{BEGIN price_label}{$label purchasing_details1 price }{END price_label}
	</label>
	<div class="r-edit-field">
		{$price_editcontrol}	</div>
	<div class="r-edit-tooltip" data-helpfor="price">
		<div class="text-muted" >
		{$tooltip purchasing_details1 price }		</div>
	</div>
</div>


{END price_fieldblock}
											
{BEGIN tar_fieldblock}


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


	<label class="r-edit-label control-label" for="{$labelfor_tar}">
		{BEGIN tar_label}{$label purchasing_details1 tar }{END tar_label}
	</label>
	<div class="r-edit-field">
		{$tar_editcontrol}	</div>
	<div class="r-edit-tooltip" data-helpfor="tar">
		<div class="text-muted" >
		{$tooltip purchasing_details1 tar }		</div>
	</div>
</div>


{END tar_fieldblock}
											
{BEGIN net_fieldblock}


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


	<label class="r-edit-label control-label" for="{$labelfor_net}">
		{BEGIN net_label}{$label purchasing_details1 net }{END net_label}
	</label>
	<div class="r-edit-field">
		{$net_editcontrol}	</div>
	<div class="r-edit-tooltip" data-helpfor="net">
		<div class="text-muted" >
		{$tooltip purchasing_details1 net }		</div>
	</div>
</div>


{END net_fieldblock}
											
{BEGIN sub_total_fieldblock}


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


	<label class="r-edit-label control-label" for="{$labelfor_sub_total}">
		{BEGIN sub_total_label}{$label purchasing_details1 sub_total }{END sub_total_label}
	</label>
	<div class="r-edit-field">
		{$sub_total_editcontrol}	</div>
	<div class="r-edit-tooltip" data-helpfor="sub_total">
		<div class="text-muted" >
		{$tooltip purchasing_details1 sub_total }		</div>
	</div>
</div>


{END sub_total_fieldblock}
											
{BEGIN product_fieldblock}


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


	<label class="r-edit-label control-label" for="{$labelfor_product}">
		{BEGIN product_label}{$label purchasing_details1 product }{END product_label}
	</label>
	<div class="r-edit-field">
		{$product_editcontrol}	</div>
	<div class="r-edit-tooltip" data-helpfor="product">
		<div class="text-muted" >
		{$tooltip purchasing_details1 product }		</div>
	</div>
</div>


{END product_fieldblock}
											
{BEGIN details_fieldblock}


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


	<label class="r-edit-label control-label" for="{$labelfor_details}">
		{BEGIN details_label}{$label purchasing_details1 details }{END details_label}
	</label>
	<div class="r-edit-field">
		{$details_editcontrol}	</div>
	<div class="r-edit-tooltip" data-helpfor="details">
		<div class="text-muted" >
		{$tooltip purchasing_details1 details }		</div>
	</div>
</div>


{END details_fieldblock}
											
{BEGIN cstatus_fieldblock}


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


	<label class="r-edit-label control-label" for="{$labelfor_cstatus}">
		{BEGIN cstatus_label}{$label purchasing_details1 cstatus }{END cstatus_label}
	</label>
	<div class="r-edit-field">
		{$cstatus_editcontrol}	</div>
	<div class="r-edit-tooltip" data-helpfor="cstatus">
		<div class="text-muted" >
		{$tooltip purchasing_details1 cstatus }		</div>
	</div>
</div>


{END cstatus_fieldblock}
											
{BEGIN outlet_code_fieldblock}


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


	<label class="r-edit-label control-label" for="{$labelfor_outlet_code}">
		{BEGIN outlet_code_label}{$label purchasing_details1 outlet_code }{END outlet_code_label}
	</label>
	<div class="r-edit-field">
		{$outlet_code_editcontrol}	</div>
	<div class="r-edit-tooltip" data-helpfor="outlet_code">
		<div class="text-muted" >
		{$tooltip purchasing_details1 outlet_code }		</div>
	</div>
</div>


{END outlet_code_fieldblock}
											
{BEGIN user_fieldblock}


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


	<label class="r-edit-label control-label" for="{$labelfor_user}">
		{BEGIN user_label}{$label purchasing_details1 user }{END user_label}
	</label>
	<div class="r-edit-field">
		{$user_editcontrol}	</div>
	<div class="r-edit-tooltip" data-helpfor="user">
		<div class="text-muted" >
		{$tooltip purchasing_details1 user }		</div>
	</div>
</div>


{END user_fieldblock}
	
								</td>
			{END cellblock_grid_c3}
								</tr>
			</tbody></table>
{END grid_block}
						</div>
					<div class="r-below">
										{BEGIN below-grid_block}
<div class="r-form" data-location="below-grid" id="form_below-grid_{$pageid}" data-makeup="leftbar" {$form_below-grid} data-pageid="{$pageid}" >		
	 
		<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} >
							Save			</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}
				</div>	
			</div>	
		</div>
	{END body}
	</body>
</html>
