0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.135.209.20


Current Path : /var/www/oasis/js_old/
Upload File :
Current File : /var/www/oasis/js_old/entryexitevents.js

	
function InsertIntoGroupEntryTable()
{
$mul_g_arr=$g_user_schema_details_array.data.all_multi_groups;
	for($k=0;$k<$mul_g_arr.length;$k++)
	{
		if($mul_g_arr[$k]['group_name']=='Order Items')
			$entry_table_name=	$mul_g_arr[$k]['group_table_name'];
		else if($mul_g_arr[$k]['group_name']=='Order Indents')
			{
			$order_indent_table=$mul_g_arr[$k]['group_table_name'];
			$table_name=$order_indent_table.replace(/entry/g, "group"); 
			$div_group_id=$mul_g_arr[$k]['group_id'];
			}
	}
	$group_details_arr=$g_edit_str[$entry_table_name]['elements'];
	for($g=0;$g<$group_details_arr.length;$g++)
	{
		if($group_details_arr[$g]['system_name']=='Order Item')
			$order_item_id=	"details_"+$group_details_arr[$g]['internal_code'];
	}
	
	$.ajax({
	       type: "POST",
		    url:$host_url+'insertIndentsIntoGroupTable',
	         data: "entry_table_name="+$order_indent_table+"&item_code="+$("#"+$order_item_id).val()+'&login_ctr='+$("#login_counter").val(),
	       success: function insertIndentsIntoGroupTableResponse($responce)
					{ 
						$responce = eval('(' + $responce + ')');
						if($responce.error_code==0)
						{
						displayUserSchemaModuleGroupDetails($table_name,0,$div_group_id,'main_group_grid_'+$div_group_id);
						}
					}
	    });  
}