<?php


//Main Configuration ====================================
//Database Field (Columns)
$form_key_id="pdt_id";
$sys_field_id=1;


$form_field_separator[$sys_field_id]="Product Info";


//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="pdt_code";
$form_field_label[$sys_field_id]="Product Code";
$form_field_hints[$sys_field_id]="Product Code";
$form_field_value[$sys_field_id]="";
$form_field_unique[$sys_field_id]="YES";
$form_field_checking[$sys_field_id]="COMPULSORY"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="textbox textbox-m"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="TEXT"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]=""; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]=""; //SQL String(select XX as value, YY as text from...) or Keyword 
$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
$sys_field_id++;


//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="pdt_barcode";
$form_field_label[$sys_field_id]="Barcode";
$form_field_hints[$sys_field_id]="Barcode";
$form_field_value[$sys_field_id]="";
$form_field_unique[$sys_field_id]="YES";
$form_field_checking[$sys_field_id]="OPTIONAL"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="textbox textbox-m"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="TEXT"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]=""; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]=""; //SQL String(select XX as value, YY as text from...) or Keyword 
$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
$sys_field_id++;




//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="pdt_name";
$form_field_label[$sys_field_id]="Product Name";
$form_field_hints[$sys_field_id]="Product Name";
$form_field_value[$sys_field_id]="";
$form_field_unique[$sys_field_id]="";
$form_field_checking[$sys_field_id]="COMPULSORY"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="textbox textbox-l"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="TEXT"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]=""; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]=""; //SQL String(select XX as value, YY as text from...) or Keyword 
$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
$sys_field_id++;



//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="pdt_category_code";
$form_field_label[$sys_field_id]="Category";
$form_field_hints[$sys_field_id]="Product Category";
$form_field_value[$sys_field_id]="";
$form_field_unique[$sys_field_id]="";
$form_field_checking[$sys_field_id]="OPTIONAL"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="dropdown dropdown-auto"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="DROPDOWN"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]="SQL"; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]="select cat_code as value, cat_name as text from t_".$key_table_prefix."_category "; //SQL String(select XX as value, YY as text from...) or Keyword
$form_field_dropdown_option_values_where[$sys_field_id]="where cat_id>=0  order by cat_code "; //SQL row ID
$form_field_dropdown_option_values_key[$sys_field_id]="cat_code"; //SQL row ID
$sys_field_id++;



//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="pdt_description";
$form_field_label[$sys_field_id]="Product Description (Internal Use)";
$form_field_hints[$sys_field_id]="";
$form_field_value[$sys_field_id]="";
$form_field_unique[$sys_field_id]="";
$form_field_checking[$sys_field_id]="OPTIONAL"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="textarea textarea-l"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="TEXTAREA"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]=""; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]=""; //SQL String(select XX as value, YY as text from...) or Keyword 
$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
$sys_field_id++;





$form_field_separator[$sys_field_id]="Pricing Info";


//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="pdt_price";
$form_field_label[$sys_field_id]="Unit Price (Standard)";
$form_field_hints[$sys_field_id]="Unit Price";
$form_field_value[$sys_field_id]="";
$form_field_unique[$sys_field_id]="";
$form_field_checking[$sys_field_id]="COMPULSORY"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="textbox textbox-m"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="PRICE"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]=""; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]=""; //SQL String(select XX as value, YY as text from...) or Keyword 
$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
$sys_field_id++;




//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="pdt_uom";
$form_field_label[$sys_field_id]="UOM";
$form_field_hints[$sys_field_id]="Unit of Measurement";
$form_field_value[$sys_field_id]="";
$form_field_unique[$sys_field_id]="";
$form_field_checking[$sys_field_id]="OPTIONAL"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="textbox textbox-m"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="TEXT"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]=""; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]=""; //SQL String(select XX as value, YY as text from...) or Keyword 
$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
$sys_field_id++;


$form_field_separator[$sys_field_id]="Costing Info";


//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="pdt_cost";
$form_field_label[$sys_field_id]="Unit Cost";
$form_field_hints[$sys_field_id]="Unit Cost";
$form_field_value[$sys_field_id]="0.00";
$form_field_unique[$sys_field_id]="";
$form_field_checking[$sys_field_id]="OPTIONAL"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="textbox textbox-m"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="PRICE"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]=""; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]=""; //SQL String(select XX as value, YY as text from...) or Keyword 
$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
$sys_field_id++;

$form_field_separator[$sys_field_id]="Inventory Setting";



//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="pdt_inventory_tracking";
$form_field_label[$sys_field_id]="Inventory Tracking";
$form_field_value[$sys_field_id]="YES";
$form_field_checking[$sys_field_id]="COMPULSORY"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="dropdown dropdown-auto"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="DROPDOWN"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]="KEYWORD"; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]="key_yes_no"; //SQL String(select XX as value, YY as text from...) or Keyword 
$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
$sys_field_id++;



//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="pdt_inventory_costing_mode";
$form_field_label[$sys_field_id]="Costing Mode";
$form_field_value[$sys_field_id]="STANDARD";
$form_field_checking[$sys_field_id]="COMPULSORY"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="dropdown dropdown-auto"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="DROPDOWN"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]="KEYWORD"; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]="key_inventory_costing_mode"; //SQL String(select XX as value, YY as text from...) or Keyword 
$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
$sys_field_id++;



//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="pdt_reorder_point_quantity";
$form_field_label[$sys_field_id]="Re-order Point Quantity";
$form_field_value[$sys_field_id]="0.000";
$form_field_checking[$sys_field_id]="OPTIONAL"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="textbox textbox-m"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="PRICE"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]=""; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]=""; //SQL String(select XX as value, YY as text from...) or Keyword 
$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
$sys_field_id++;


//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="pdt_max_quantity";
$form_field_label[$sys_field_id]="Maximum Quantity";
$form_field_value[$sys_field_id]="0.000";
$form_field_checking[$sys_field_id]="OPTIONAL"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="textbox textbox-m"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="PRICE"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]=""; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]=""; //SQL String(select XX as value, YY as text from...) or Keyword 
$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
$sys_field_id++;

$form_field_separator[$sys_field_id]="Picking Operation Setting";



//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="pdt_storage_location";
$form_field_label[$sys_field_id]="Storage Location";
$form_field_value[$sys_field_id]="";
$form_field_checking[$sys_field_id]="OPTIONAL"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="dropdown dropdown-auto"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="DROPDOWN"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]="SQL"; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]="select loc_code as value, concat(loc_code, ' - ',loc_name) as text from t_".$key_table_prefix."_storage_location "; //SQL String(select XX as value, YY as text from...) or Keyword 
$form_field_dropdown_option_values_key[$sys_field_id]="loc_code"; //SQL row ID
$sys_field_id++;





$form_field_separator[$sys_field_id]="Extended Pricing Info (Group Price)";


//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="pdt_price_group_1";
$form_field_label[$sys_field_id]="Price Group 1";
$form_field_hints[$sys_field_id]="";
$form_field_value[$sys_field_id]="";
$form_field_unique[$sys_field_id]="";
$form_field_checking[$sys_field_id]="OPTIONAL"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="textbox textbox-m"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="PRICE"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]=""; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]=""; //SQL String(select XX as value, YY as text from...) or Keyword 
$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
$sys_field_id++;




//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="pdt_price_group_2";
$form_field_label[$sys_field_id]="Price Group 2";
$form_field_hints[$sys_field_id]="";
$form_field_value[$sys_field_id]="";
$form_field_unique[$sys_field_id]="";
$form_field_checking[$sys_field_id]="OPTIONAL"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="textbox textbox-m"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="PRICE"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]=""; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]=""; //SQL String(select XX as value, YY as text from...) or Keyword 
$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
$sys_field_id++;


//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="pdt_price_group_3";
$form_field_label[$sys_field_id]="Price Group 3";
$form_field_hints[$sys_field_id]="";
$form_field_value[$sys_field_id]="";
$form_field_unique[$sys_field_id]="";
$form_field_checking[$sys_field_id]="OPTIONAL"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="textbox textbox-m"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="PRICE"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]=""; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]=""; //SQL String(select XX as value, YY as text from...) or Keyword 
$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
$sys_field_id++;



//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="pdt_price_group_4";
$form_field_label[$sys_field_id]="Price Group 4";
$form_field_hints[$sys_field_id]="";
$form_field_value[$sys_field_id]="";
$form_field_unique[$sys_field_id]="";
$form_field_checking[$sys_field_id]="OPTIONAL"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="textbox textbox-m"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="PRICE"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]=""; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]=""; //SQL String(select XX as value, YY as text from...) or Keyword 
$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
$sys_field_id++;


//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="pdt_price_group_5";
$form_field_label[$sys_field_id]="Price Group 5";
$form_field_hints[$sys_field_id]="";
$form_field_value[$sys_field_id]="";
$form_field_unique[$sys_field_id]="";
$form_field_checking[$sys_field_id]="OPTIONAL"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="textbox textbox-m"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="PRICE"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]=""; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]=""; //SQL String(select XX as value, YY as text from...) or Keyword 
$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
$sys_field_id++;




$form_field_separator[$sys_field_id]="Scale Pricing";

for($s_price=1;$s_price<=5;$s_price++)
{
	
	//---------------------------------------------------------------------------------------------------------------------------
	$form_field[$sys_field_id]="pdt_scale_price_".$s_price."_min_qty";
	$form_field_label[$sys_field_id]="Min Quantity Purchase ".$s_price;
	$form_field_hints[$sys_field_id]="";
	$form_field_value[$sys_field_id]="";
	$form_field_unique[$sys_field_id]="";
	$form_field_checking[$sys_field_id]="OPTIONAL"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
	$form_field_class[$sys_field_id]="textbox textbox-s"; //(textbox/upload/dropdown/textarea/checkbox)
	$form_field_type[$sys_field_id]="PRICE"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
	$form_field_dropdown_option[$sys_field_id]=""; //(KEYWORD = include/keyword.php,  SQL = From database )
	$form_field_dropdown_option_values[$sys_field_id]=""; //SQL String(select XX as value, YY as text from...) or Keyword 
	$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
	$sys_field_id++;
	
	//---------------------------------------------------------------------------------------------------------------------------
	$form_field[$sys_field_id]="pdt_scale_price_".$s_price;
	$form_field_label[$sys_field_id]="Scale Price ".$s_price;
	$form_field_hints[$sys_field_id]="";
	$form_field_value[$sys_field_id]="";
	$form_field_unique[$sys_field_id]="";
	$form_field_checking[$sys_field_id]="OPTIONAL"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
	$form_field_class[$sys_field_id]="textbox textbox-m"; //(textbox/upload/dropdown/textarea/checkbox)
	$form_field_type[$sys_field_id]="PRICE"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
	$form_field_dropdown_option[$sys_field_id]=""; //(KEYWORD = include/keyword.php,  SQL = From database )
	$form_field_dropdown_option_values[$sys_field_id]=""; //SQL String(select XX as value, YY as text from...) or Keyword 
	$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
	$sys_field_id++;
}







$form_field_separator[$sys_field_id]="Discount Setting";

//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="pdt_discount_allow";
$form_field_label[$sys_field_id]="Allow Discount";
$form_field_value[$sys_field_id]="YES";
$form_field_checking[$sys_field_id]="COMPULSORY"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="dropdown dropdown-auto"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="DROPDOWN"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]="KEYWORD"; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]="key_yes_no"; //SQL String(select XX as value, YY as text from...) or Keyword 
$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
$sys_field_id++;



$form_field_separator[$sys_field_id]="Tax Info";

//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="pdt_gst_code";
$form_field_label[$sys_field_id]="Tax Code";
$form_field_value[$sys_field_id]="";
$form_field_checking[$sys_field_id]="OPTIONAL"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="dropdown dropdown-auto"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="DROPDOWN"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]="SQL"; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]="select gst_code as value, gst_name as text from t_".$key_table_prefix."_gst "; //SQL String(select XX as value, YY as text from...) or Keyword
$form_field_dropdown_option_values_where[$sys_field_id]="where client_id = '".$CurrentUserID."' "; //SQL row ID
$form_field_dropdown_option_values_key[$sys_field_id]="gst_code"; //SQL row ID
$sys_field_id++;


//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="pdt_gst_mode";
$form_field_label[$sys_field_id]="Tax Mode";
$form_field_value[$sys_field_id]="";
$form_field_checking[$sys_field_id]="COMPULSORY"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="dropdown dropdown-auto"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="DROPDOWN"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]="KEYWORD"; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]="key_gst_mode"; //SQL String(select XX as value, YY as text from...) or Keyword 
$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
$sys_field_id++;





$form_field_separator[$sys_field_id]="Other Setting";

//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="pdt_featured";
$form_field_label[$sys_field_id]="Featured Product";
$form_field_value[$sys_field_id]="NO";
$form_field_checking[$sys_field_id]="COMPULSORY"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="dropdown dropdown-auto"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="DROPDOWN"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]="KEYWORD"; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]="key_yes_no"; //SQL String(select XX as value, YY as text from...) or Keyword 
$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
$sys_field_id++;




//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="pdt_decimal_quantity";
$form_field_label[$sys_field_id]="Decimal Point for Quantity";
$form_field_value[$sys_field_id]="NO";
$form_field_checking[$sys_field_id]="COMPULSORY"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="dropdown dropdown-auto"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="DROPDOWN"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]="KEYWORD"; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]="key_decimal_point"; //SQL String(select XX as value, YY as text from...) or Keyword 
$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
$sys_field_id++;









$form_field_separator[$sys_field_id]="Status Info";

//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="pdt_status";
$form_field_label[$sys_field_id]="Status";
$form_field_value[$sys_field_id]="ACTIVE";
$form_field_checking[$sys_field_id]="COMPULSORY"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="dropdown dropdown-auto"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="DROPDOWN"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]="KEYWORD"; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]="key_status"; //SQL String(select XX as value, YY as text from...) or Keyword 
$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
$sys_field_id++;



$form_field_separator[$sys_field_id]="Custom Selection Info";

if($sys_system_master_setting_line["set_use_product_color"]=="YES")
{
	
	//---------------------------------------------------------------------------------------------------------------------------
	$form_field[$sys_field_id]="pdt_select_color";
	$form_field_label[$sys_field_id]="Select Color";
	$form_field_value[$sys_field_id]="NO";
	$form_field_checking[$sys_field_id]="COMPULSORY"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
	$form_field_class[$sys_field_id]="dropdown dropdown-auto"; //(textbox/upload/dropdown/textarea/checkbox)
	$form_field_type[$sys_field_id]="DROPDOWN"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
	$form_field_dropdown_option[$sys_field_id]="KEYWORD"; //(KEYWORD = include/keyword.php,  SQL = From database )
	$form_field_dropdown_option_values[$sys_field_id]="key_yes_no"; //SQL String(select XX as value, YY as text from...) or Keyword 
	$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
	$sys_field_id++;

}
if($sys_system_master_setting_line["set_use_product_size"]=="YES")
{
	
	//---------------------------------------------------------------------------------------------------------------------------
	$form_field[$sys_field_id]="pdt_select_size";
	$form_field_label[$sys_field_id]="Select Size";
	$form_field_value[$sys_field_id]="NO";
	$form_field_checking[$sys_field_id]="COMPULSORY"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
	$form_field_class[$sys_field_id]="dropdown dropdown-auto"; //(textbox/upload/dropdown/textarea/checkbox)
	$form_field_type[$sys_field_id]="DROPDOWN"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
	$form_field_dropdown_option[$sys_field_id]="KEYWORD"; //(KEYWORD = include/keyword.php,  SQL = From database )
	$form_field_dropdown_option_values[$sys_field_id]="key_yes_no"; //SQL String(select XX as value, YY as text from...) or Keyword 
	$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
	$sys_field_id++;
	

}

if($sys_system_master_setting_line["set_use_product_pattern"]=="YES")
{
	
	//---------------------------------------------------------------------------------------------------------------------------
	$form_field[$sys_field_id]="pdt_select_pattern";
	$form_field_label[$sys_field_id]="Select Pattern";
	$form_field_value[$sys_field_id]="NO";
	$form_field_checking[$sys_field_id]="COMPULSORY"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
	$form_field_class[$sys_field_id]="dropdown dropdown-auto"; //(textbox/upload/dropdown/textarea/checkbox)
	$form_field_type[$sys_field_id]="DROPDOWN"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
	$form_field_dropdown_option[$sys_field_id]="KEYWORD"; //(KEYWORD = include/keyword.php,  SQL = From database )
	$form_field_dropdown_option_values[$sys_field_id]="key_yes_no"; //SQL String(select XX as value, YY as text from...) or Keyword 
	$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
	$sys_field_id++;

	
}








$form_field_separator[$sys_field_id]="Vendor Info";



//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="pdt_vendor_code";
$form_field_label[$sys_field_id]="Vendor";
$form_field_value[$sys_field_id]="";
$form_field_checking[$sys_field_id]="OPTIONAL"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="dropdown dropdown-auto"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="DROPDOWN"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]="SQL"; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]="select vdr_code as value, vdr_name as text from t_".$key_table_prefix."_vendor "; //SQL String(select XX as value, YY as text from...) or Keyword 
$form_field_dropdown_option_values_key[$sys_field_id]="vdr_code"; //SQL row ID
$sys_field_id++;



/*
$form_field_separator[$sys_field_id]="Photo";



//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="pdt_photo_1";
$form_field_label[$sys_field_id]="Photo";
$form_field_value[$sys_field_id]="";
$form_field_checking[$sys_field_id]="OPTIONAL"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="upload"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="FILE_PHOTO"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]=""; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]=""; //SQL String(select XX as value, YY as text from...) or Keyword 
$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
$sys_field_id++;
*/

//table name
$form_table_name="t_".$key_table_prefix."_product";








?>